2012-09-13 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Generate events when a module changes to unknown status git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6970 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
f8c2c3bf29
commit
c00d9761bc
|
@ -1,3 +1,8 @@
|
|||
2012-09-13 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* lib/PandoraFMS/Core.pm: Generate events when a
|
||||
module changes to unknown status
|
||||
|
||||
2012-09-11 Dario Rodriguez <dario.rodriguez@artica.es>
|
||||
|
||||
* util/plugin/iface_bandwith.pl: First version of
|
||||
|
|
|
@ -3455,6 +3455,13 @@ sub pandora_module_unknown ($$) {
|
|||
else {
|
||||
logger($pa_config, "Alerts inhibited for agent '" . $agent->{'nombre'} . "'.", 10);
|
||||
}
|
||||
|
||||
# Generate event with severity minor
|
||||
my ($event_type, $severity) = ('going_unknown', 5);
|
||||
my $description = "Module " . safe_output($module->{'nombre'}) . " is going to UNKNOWN";
|
||||
pandora_event ($pa_config, $description, $agent->{'id_grupo'}, $module->{'id_agente'},
|
||||
$severity, 0, $module->{'id_agente_modulo'}, $event_type, 0, $dbh, 'Pandora', '', '', '', '', $module->{'critical_instructions'}, $module->{'warning_instructions'}, $module->{'unknown_instructions'});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue