mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Ent 5553 dangerous behaviour dataserver lifo enabled
This commit is contained in:
parent
b595548eee
commit
9541d3b56d
@ -1739,6 +1739,17 @@ sub pandora_process_module ($$$$$$$$$;$) {
|
|||||||
|
|
||||||
# Save module data. Async and log4x modules are not compressed.
|
# Save module data. Async and log4x modules are not compressed.
|
||||||
if ($module_type =~ m/(async)|(log4x)/ || $save == 1) {
|
if ($module_type =~ m/(async)|(log4x)/ || $save == 1) {
|
||||||
|
|
||||||
|
# If previous timestamp data changes, save the last one to avoid errors on SLA or graphs.
|
||||||
|
if($last_data_value ne $processed_data) {
|
||||||
|
|
||||||
|
my $last_data_timestamp = $agent_status->{'utimestamp'};
|
||||||
|
my $last_data_object;
|
||||||
|
|
||||||
|
$last_data_object->{'data'} = $last_data_value;
|
||||||
|
|
||||||
|
save_module_data ($last_data_object, $module, $module_type, $last_data_timestamp, $dbh);
|
||||||
|
}
|
||||||
save_module_data ($data_object, $module, $module_type, $utimestamp, $dbh);
|
save_module_data ($data_object, $module, $module_type, $utimestamp, $dbh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user