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:
parent
982e5c0906
commit
745e1a3662
|
@ -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>
|
||||
|
||||
* lib/PandoraFMS/DB.pm: Added missing '%'.
|
||||
|
|
|
@ -157,11 +157,16 @@ sub exec_prediction_module ($$$$) {
|
|||
# Service modules
|
||||
if ($agent_module->{'prediction_module'} == 2) {
|
||||
if ($agent_module->{'custom_string_1'} eq 'SLA') {
|
||||
# Do none because the modules for SLA service
|
||||
# are filled in the service with same id.
|
||||
logger ($pa_config, "Executing service module SLA " .
|
||||
$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 {
|
||||
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]);
|
||||
logger ($pa_config, "End execution", 5);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue