2010-04-06 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Core.pm: Fallback to previous version, this fix makes Pandora server to generate events constantly. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2538 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
73ede2b1a6
commit
7d4c111182
|
@ -1,5 +1,8 @@
|
||||||
2010-04-05 Junichi Satoh <junichi@rworks.jp>
|
2010-04-05 Junichi Satoh <junichi@rworks.jp>
|
||||||
|
|
||||||
|
* 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)
|
* lib/PandoraFMS/Core.pm: Fixed the problem that agent status(estado)
|
||||||
is never updated to $new_status if initial state of new agent is
|
is never updated to $new_status if initial state of new agent is
|
||||||
"estado != last_status" with "$new_status == last_status".
|
"estado != last_status" with "$new_status == last_status".
|
||||||
|
|
|
@ -730,7 +730,7 @@ sub pandora_process_module ($$$$$$$$$;$) {
|
||||||
$status_changes = 0;
|
$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);
|
generate_status_event ($pa_config, $processed_data, $agent, $module, $new_status, $status, $dbh);
|
||||||
$status = $new_status;
|
$status = $new_status;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue