I fixed the bug about async_recovery.

When the async module recovers automatically, known_status and last_known_status are updated to 0.
This commit is contained in:
nknsh 2018-05-23 13:49:14 +09:00
parent e015354a99
commit 4a58b8cb7d
1 changed files with 1 additions and 1 deletions

View File

@ -4886,7 +4886,7 @@ sub pandora_module_unknown ($$) {
# Set the module state to normal
logger ($pa_config, "Module " . $module->{'nombre'} . " is going to NORMAL", 10);
db_do ($dbh, 'UPDATE tagente_estado SET last_status = 0, estado = 0 WHERE id_agente_estado = ?', $module->{'id_agente_estado'});
db_do ($dbh, 'UPDATE tagente_estado SET last_status = 0, estado = 0, known_status = 0, last_known_status = 0 WHERE id_agente_estado = ?', $module->{'id_agente_estado'});
# Get agent information
my $agent = get_db_single_row ($dbh, 'SELECT *