diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 7e942f2607..09060ad859 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,5 +1,8 @@ 2010-04-05 Junichi Satoh + * lib/PandoraFMS/Core.pm: Fallback to previous version, this fix + makes Pandora server to generate events constantly. + * lib/PandoraFMS/Core.pm: Fixed the problem that agent status(estado) is never updated to $new_status if initial state of new agent is "estado != last_status" with "$new_status == last_status". diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index b0ac504749..f633792bec 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -730,7 +730,7 @@ sub pandora_process_module ($$$$$$$$$;$) { $status_changes = 0; } - if ($status_changes >= $module->{'min_ff_event'}) { + if ($status_changes == $module->{'min_ff_event'}) { generate_status_event ($pa_config, $processed_data, $agent, $module, $new_status, $status, $dbh); $status = $new_status; }