2012-08-10 Miguel de Dios <miguel.dedios@artica.es>

* lib/PandoraFMS/PredictionServer.pm: changed for the SLA service
	calculate alone instead before it was calculate for the module
	service.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6857 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2012-08-10 09:05:34 +00:00
parent 982e5c0906
commit 745e1a3662
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2012-08-10 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/PredictionServer.pm: changed for the SLA service
calculate alone instead before it was calculate for the module
service.
2012-07-29 Junichi Satoh <junichi@rworks.jp> 2012-07-29 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/DB.pm: Added missing '%'. * lib/PandoraFMS/DB.pm: Added missing '%'.

View File

@ -157,11 +157,16 @@ sub exec_prediction_module ($$$$) {
# Service modules # Service modules
if ($agent_module->{'prediction_module'} == 2) { if ($agent_module->{'prediction_module'} == 2) {
if ($agent_module->{'custom_string_1'} eq 'SLA') { if ($agent_module->{'custom_string_1'} eq 'SLA') {
# Do none because the modules for SLA service logger ($pa_config, "Executing service module SLA " .
# are filled in the service with same id. $agent_module->{'id_agente_modulo'} . " " .
$agent_module->{'nombre'}, 5);
enterprise_hook ('exec_service_module_sla', [$pa_config, $agent_module, $server_id, $dbh]);
logger ($pa_config, "End execution", 5);
} }
else { else {
logger ($pa_config, "Executing service module " . $agent_module->{'nombre'}, 5); logger ($pa_config, "Executing service module " .
$agent_module->{'id_agente_modulo'} . " " .
$agent_module->{'nombre'}, 5);
enterprise_hook ('exec_service_module', [$pa_config, $agent_module, $server_id, $dbh]); enterprise_hook ('exec_service_module', [$pa_config, $agent_module, $server_id, $dbh]);
logger ($pa_config, "End execution", 5); logger ($pa_config, "End execution", 5);
} }