2009-10-09 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm, bin/pandora_server: Re-enabled multicast reports (Enterprise feature). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2014 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
ffb3d4425c
commit
7aefdd1bf7
|
@ -1,3 +1,8 @@
|
|||
2009-10-09 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* lib/PandoraFMS/Core.pm, bin/pandora_server: Re-enabled multicast
|
||||
reports (Enterprise feature).
|
||||
|
||||
2009-10-09 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* lib/PandoraFMS/Server.pm, bin/pandora_server: Small fixes to avoid
|
||||
|
|
|
@ -177,6 +177,7 @@ while (1) {
|
|||
pandora_planned_downtime (\%Config, $DBH);
|
||||
pandora_exec_forced_alerts (\%Config, $DBH);
|
||||
pandora_module_keep_alive_nd (\%Config, $DBH);
|
||||
enterprise_hook('mcast_status_report', [\%Config, $DBH]);
|
||||
};
|
||||
|
||||
# Restart on error or auto restart
|
||||
|
|
|
@ -1103,12 +1103,12 @@ sub generate_status_event ($$$$$$$) {
|
|||
if ($status == 0) {
|
||||
($event_type, $severity) = ('going_down_normal', 2);
|
||||
$description .= "going down to NORMAL";
|
||||
|
||||
enterprise_hook('mcast_change_report', [$pa_config, $module->{'nombre'}, $module->{'custom_id'}, strftime ("%Y-%m-%d %H:%M:%S", localtime()), 'OK', $dbh]);
|
||||
# Critical
|
||||
} elsif ($status == 1) {
|
||||
($event_type, $severity) = ('going_up_critical', 4);
|
||||
$description .= "going up to CRITICAL";
|
||||
|
||||
enterprise_hook('mcast_change_report', [$pa_config, $module->{'nombre'}, $module->{'custom_id'}, strftime ("%Y-%m-%d %H:%M:%S", localtime()), 'ERR', $dbh]);
|
||||
# Warning
|
||||
} elsif ($status == 2) {
|
||||
|
||||
|
@ -1125,6 +1125,7 @@ sub generate_status_event ($$$$$$$) {
|
|||
# Unknown last_status
|
||||
return;
|
||||
}
|
||||
enterprise_hook('mcast_change_report', [$pa_config, $module->{'nombre'}, $module->{'custom_id'}, strftime ("%Y-%m-%d %H:%M:%S", localtime()), 'WARN', $dbh]);
|
||||
} else {
|
||||
# Unknown status
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue