I just noticed that summary.cgi reports alerts for hosts and services that occurred while the host/service was in downtime. When the service is in downtime, I see that "SERVICE ALERT:" logs get logged which is what summary.cfg looks for. Is there a way to prevent the reports from looking at alerts that happened during downtime or stop "SERVICE ALERT:" from being logged when the service is in downtime? Or is this a feature request?
Thanks,
Downtimes and Reports
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Downtimes and Reports
By chance was this a flexible downtime that was just triggered? We had a tracker report of this behavior...
Re: Downtimes and Reports
They were fixed. They were created from the recurring downtimes page.
Re: Downtimes and Reports
Here are the logs from my test. I accidentally doubled up the downtimes but it didn't affect it.
Code: Select all
[1395164340] HOST DOWNTIME ALERT: test_host;STARTED; Host has entered a period of scheduled downtime
[1395164340] SERVICE DOWNTIME ALERT: test_host;test_service;STARTED; Service has entered a period of scheduled downtime
[1395164340] SERVICE NOTIFICATION: nagiosadmin;test_host;test_service;DOWNTIMESTART (OK);xi_service_notification_handler;OK: good
[1395164340] SERVICE DOWNTIME ALERT: test_host;test_passive;STARTED; Service has entered a period of scheduled downtime
[1395164340] SERVICE NOTIFICATION: nagiosadmin;test_host;test_passive;DOWNTIMESTART (OK);xi_service_notification_handler;asdfsafd
[1395164496] SERVICE ALERT: test_host;test_passive;CRITICAL;SOFT;1;CRITICAL
[1395164546] SERVICE ALERT: test_host;test_passive;CRITICAL;SOFT;2;CRITICAL
[1395164566] SERVICE ALERT: test_host;test_passive;CRITICAL;SOFT;3;CRITICAL
[1395164656] SERVICE ALERT: test_host;test_passive;CRITICAL;SOFT;4;CRITICAL
[1395164726] SERVICE ALERT: test_host;test_passive;CRITICAL;HARD;5;CRITICAL
[1395165296] SERVICE ALERT: test_host;test_passive;OK;HARD;5;OK
[1395165324] SERVICE DOWNTIME ALERT: test_host;test_service;CANCELLED; Scheduled downtime for service has been cancelled.
[1395165324] SERVICE NOTIFICATION: nagiosadmin;test_host;test_service;DOWNTIMECANCELLED (OK);xi_service_notification_handler;OK: good
[1395165328] SERVICE DOWNTIME ALERT: test_host;test_passive;CANCELLED; Scheduled downtime for service has been cancelled.
[1395165328] SERVICE NOTIFICATION: nagiosadmin;test_host;test_passive;DOWNTIMECANCELLED (OK);xi_service_notification_handler;OK
[1395165335] HOST DOWNTIME ALERT: test_host;CANCELLED; Scheduled downtime for host has been cancelled.
[1395165376] SERVICE ALERT: test_host;test_passive;CRITICAL;SOFT;1;CRITICAL
[1395165376] SERVICE ALERT: test_host;test_passive;CRITICAL;SOFT;2;CRITICAL
[1395165386] SERVICE ALERT: test_host;test_passive;CRITICAL;SOFT;3;Critical
[1395165396] SERVICE ALERT: test_host;test_passive;CRITICAL;SOFT;4;CRITICAL
[1395165406] SERVICE ALERT: test_host;test_passive;CRITICAL;HARD;5;CRITICAL
[1395165406] SERVICE NOTIFICATION: nagiosadmin;test_host;test_passive;CRITICAL;xi_service_notification_handler;CRITICAL
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Downtimes and Reports
Got it, for some reason I was thinking you were receiving notifications...
As far as I know there is no way to do this with the summary.cgi reports.
As far as I know there is no way to do this with the summary.cgi reports.
Re: Downtimes and Reports
Thanks. That's what I wanted to confirm. It's look like this tracker is similar to what we are seeing.
http://tracker.nagios.com/view.php?id=441
http://tracker.nagios.com/view.php?id=441
Re: Downtimes and Reports
niebais, let us know if we can lock this topic.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Downtimes and Reports
Go ahead and lock it. Thanks!