From a7621b17124ea5c3bf105b1bc729c2743438930f Mon Sep 17 00:00:00 2001 From: vgilc Date: Tue, 17 Jun 2014 10:17:05 +0000 Subject: [PATCH] 2014-06-17 Vanessa Gil * lib/PandoraFMS/Core.pm: Fixed bug scheduling downtime. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10215 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 5 +++++ pandora_server/lib/PandoraFMS/Core.pm | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 95ac621390..9e2b537ce4 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2014-06-17 Vanessa Gil + + * lib/PandoraFMS/Core.pm: Fixed bug + scheduling downtime. + 2014-06-17 Hirofumi Kosaka * lib/PandoraFMS/PluginServer.pm: Fixed to handle plugin's diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 0b6558b107..39e60c15ae 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -1152,7 +1152,7 @@ sub pandora_process_module ($$$$$$$$$;$) { $agent_status->{'datos'} = ""; } - my $save = ($module->{'history_data'} == 1 && ($agent_status->{'datos'} ne $processed_data || $last_try < ($utimestamp - 86400))) ? 1 : 0; + my $save = ($module->{'quiet'} == 0 && $module->{'history_data'} == 1 && ($agent_status->{'datos'} ne $processed_data || $last_try < ($utimestamp - 86400))) ? 1 : 0; db_do ($dbh, 'UPDATE tagente_estado SET datos = ?, estado = ?, last_status = ?, last_known_status = ?,