mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch 'ent-11808-15891-estados-desconocidos-tras-salida-de-safe-operation-mode' into 'develop'
Ent-11808-15891-estados-desconocidos-tras-salida-de-safe-operation-mode See merge request artica/pandorafms!6559
This commit is contained in:
commit
72738311ec
@ -7689,6 +7689,9 @@ sub safe_mode($$$$$$) {
|
|||||||
elsif ($known_status == MODULE_CRITICAL) {
|
elsif ($known_status == MODULE_CRITICAL) {
|
||||||
logger($pa_config, "Disabling safe mode for agent " . $agent->{'nombre'}, 10);
|
logger($pa_config, "Disabling safe mode for agent " . $agent->{'nombre'}, 10);
|
||||||
db_do($dbh, 'UPDATE tagente_modulo SET disabled=0 WHERE id_agente=? AND id_agente_modulo!=?', $agent->{'id_agente'}, $module->{'id_agente_modulo'});
|
db_do($dbh, 'UPDATE tagente_modulo SET disabled=0 WHERE id_agente=? AND id_agente_modulo!=?', $agent->{'id_agente'}, $module->{'id_agente_modulo'});
|
||||||
|
|
||||||
|
# Prevent the modules from becoming unknown!
|
||||||
|
db_do ($dbh, 'UPDATE tagente_estado SET utimestamp = ? WHERE id_agente = ? AND id_agente_modulo!=?', time(), $agent->{'id_agente'}, $module->{'id_agente_modulo'});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user