2014-08-05 Hirofumi Kosaka <kosaka@rworks.jp>

* lib/PandoraFMS/Core.pm: Fixed that unknown modules would be
	set to normal if its status is not normal, when new data
	arrives but ff_threshold is greater than 0.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10378 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
hkosaka 2014-08-05 06:50:51 +00:00
parent 657c1ab9b0
commit a6f9efa740
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2014-08-05 Hirofumi Kosaka <kosaka@rworks.jp>
* lib/PandoraFMS/Core.pm: Fixed that unknown modules would be
set to normal if its status is not normal, when new data
arrives but ff_threshold is greater than 0.
2014-07-30 Ramon Novoa <rnovoa@artica.es>
* util/trap_rate.sh: Added to repository. Script to calculate the rate of

View File

@ -1132,10 +1132,10 @@ sub pandora_process_module ($$$$$$$$$;$) {
# Update module status count
pandora_mark_agent_for_module_update ($dbh, $agent->{'id_agente'});
}
# Set not-init or unknown modules to normal even if min_ff_event is not matched the first time they receive data
# Set not-init or unknown modules to its current status even if min_ff_event is not matched the first time they receive data
elsif ($status == 3 || $status == 4) {
generate_status_event ($pa_config, $processed_data, $agent, $module, 0, $status, $last_known_status, $dbh);
$status = 0;
generate_status_event ($pa_config, $processed_data, $agent, $module, $new_status, $status, $last_known_status, $dbh);
$status = $new_status;
# Update module status count
pandora_mark_agent_for_module_update ($dbh, $agent->{'id_agente'});