mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
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
e7c6dc29c7
commit
9f8ae07a3d
@ -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>
|
2009-10-09 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* lib/PandoraFMS/Server.pm, bin/pandora_server: Small fixes to avoid
|
* lib/PandoraFMS/Server.pm, bin/pandora_server: Small fixes to avoid
|
||||||
|
@ -177,6 +177,7 @@ while (1) {
|
|||||||
pandora_planned_downtime (\%Config, $DBH);
|
pandora_planned_downtime (\%Config, $DBH);
|
||||||
pandora_exec_forced_alerts (\%Config, $DBH);
|
pandora_exec_forced_alerts (\%Config, $DBH);
|
||||||
pandora_module_keep_alive_nd (\%Config, $DBH);
|
pandora_module_keep_alive_nd (\%Config, $DBH);
|
||||||
|
enterprise_hook('mcast_status_report', [\%Config, $DBH]);
|
||||||
};
|
};
|
||||||
|
|
||||||
# Restart on error or auto restart
|
# Restart on error or auto restart
|
||||||
|
@ -1103,12 +1103,12 @@ sub generate_status_event ($$$$$$$) {
|
|||||||
if ($status == 0) {
|
if ($status == 0) {
|
||||||
($event_type, $severity) = ('going_down_normal', 2);
|
($event_type, $severity) = ('going_down_normal', 2);
|
||||||
$description .= "going down to NORMAL";
|
$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
|
# Critical
|
||||||
} elsif ($status == 1) {
|
} elsif ($status == 1) {
|
||||||
($event_type, $severity) = ('going_up_critical', 4);
|
($event_type, $severity) = ('going_up_critical', 4);
|
||||||
$description .= "going up to CRITICAL";
|
$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
|
# Warning
|
||||||
} elsif ($status == 2) {
|
} elsif ($status == 2) {
|
||||||
|
|
||||||
@ -1125,6 +1125,7 @@ sub generate_status_event ($$$$$$$) {
|
|||||||
# Unknown last_status
|
# Unknown last_status
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
enterprise_hook('mcast_change_report', [$pa_config, $module->{'nombre'}, $module->{'custom_id'}, strftime ("%Y-%m-%d %H:%M:%S", localtime()), 'WARN', $dbh]);
|
||||||
} else {
|
} else {
|
||||||
# Unknown status
|
# Unknown status
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user