diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 5a9949b845..83290ef2e2 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,10 @@ +2011-11-22 Juan Manuel Ramon + + * lib/PandoraFMS/Core.pm: Fixed a problem with keepalive module + (never goes down). + + Fixed: #3438849 + 2011-11-21 Juan Manuel Ramon * lib/PandoraFMS/Core.pm: Changed tag field in events insertion from diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 712405cc5d..fa068fd5dc 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -1576,7 +1576,7 @@ sub pandora_module_keep_alive_nd { AND tagente.disabled = 0 AND tagente_modulo.id_tipo_modulo = 100 AND tagente_modulo.disabled = 0 - AND (' . db_text ('tagente_estado.datos') . ' = \'1\' OR ' . db_text ('tagente_estado.datos') . '= \'\') + AND (' . db_text ('tagente_estado.datos') . ' = 1 OR ' . db_text ('tagente_estado.datos') . '= \'\') AND tagente_modulo.id_agente_modulo = tagente_estado.id_agente_modulo AND ( tagente_estado.utimestamp + (tagente.intervalo * 2) < UNIX_TIMESTAMP())');