2010-09-14 Ramon Novoa <rnovoa@artica.es>

* lib/PandoraFMS/Core.pm: Do not execute alerts in stand-by.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3244 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2010-09-14 10:32:11 +00:00
parent d850cd98fa
commit ea38382b88
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-09-14 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Do not execute alerts in stand-by.
2010-09-10 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm,

View File

@ -504,7 +504,13 @@ Execute the given alert.
sub pandora_execute_alert ($$$$$$$$;$) {
my ($pa_config, $data, $agent, $module,
$alert, $alert_mode, $dbh, $timestamp, $extra_macros) = @_;
# Alerts in stand-by are not executed
if ($alert->{'standby'} == 1) {
logger ($pa_config, "Alert '" . $alert->{'name'} . "' for module '" . $module->{'nombre'} . "' is in stand-by. Not executing.", 10);
return;
}
logger ($pa_config, "Executing alert '" . $alert->{'name'} . "' for module '" . $module->{'nombre'} . "'.", 10);
# Get active actions/commands