From 524905407d25e29fd26e9597a1c5109e8b0b34d1 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Mon, 4 Feb 2013 16:16:18 +0000 Subject: [PATCH] 2013-02-04 Sergio Martin * lib/PandoraFMS/Core.pm: Fix a broken query of my last commit git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7576 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 14a1a0329f..46caaeaaab 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2013-02-04 Sergio Martin + + * lib/PandoraFMS/Core.pm: Fix a broken query of my last + commit + 2013-02-04 Sergio Martin * lib/PandoraFMS/Core.pm: Set the last_known_status when diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 820dc209c9..4a7ac0adde 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -1039,7 +1039,7 @@ sub pandora_process_module ($$$$$$$$$;$) { my $save = ($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 = ? + SET datos = ?, estado = ?, last_status = ?, last_known_status = ?, status_changes = ?, utimestamp = ?, timestamp = ?, id_agente = ?, current_interval = ?, running_by = ?, last_execution_try = ?, last_try = ?