mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Save data for 'quiet' modules.
(cherry picked from commit a484683b765ef0af31741ec18531fdf141a710b1)
This commit is contained in:
parent
08da51a449
commit
156fb386ee
@ -1399,7 +1399,7 @@ sub pandora_process_module ($$$$$$$$$;$) {
|
|||||||
$agent_status->{'datos'} = "";
|
$agent_status->{'datos'} = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
my $save = ($module->{'quiet'} == 0 && $module->{'history_data'} == 1 && ($agent_status->{'datos'} ne $processed_data || $last_try < ($utimestamp - 86400))) ? 1 : 0;
|
my $save = ($module->{'history_data'} == 1 && ($agent_status->{'datos'} ne $processed_data || $last_try < ($utimestamp - 86400))) ? 1 : 0;
|
||||||
|
|
||||||
db_do ($dbh, 'UPDATE tagente_estado
|
db_do ($dbh, 'UPDATE tagente_estado
|
||||||
SET datos = ?, estado = ?, last_status = ?, last_known_status = ?,
|
SET datos = ?, estado = ?, last_status = ?, last_known_status = ?,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user