Merge branch '194-async-recovery' into 'develop'

I fixed the bug about async_recovery.

Closes #194

See merge request artica/pandorafms!1493
This commit is contained in:
vgilc 2018-05-28 12:50:28 +02:00
commit 8cb5dea3d9

View File

@ -4881,7 +4881,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 *