Page 1 of 1

Downtimes and Reports

Posted: Tue Mar 18, 2014 3:14 pm
by niebais
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,

Re: Downtimes and Reports

Posted: Tue Mar 18, 2014 5:14 pm
by scottwilkerson
By chance was this a flexible downtime that was just triggered? We had a tracker report of this behavior...

Re: Downtimes and Reports

Posted: Tue Mar 18, 2014 5:52 pm
by niebais
They were fixed. They were created from the recurring downtimes page.

Re: Downtimes and Reports

Posted: Tue Mar 18, 2014 5:55 pm
by niebais
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

Re: Downtimes and Reports

Posted: Wed Mar 19, 2014 8:51 am
by scottwilkerson
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.

Re: Downtimes and Reports

Posted: Wed Mar 19, 2014 9:30 am
by niebais
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

Re: Downtimes and Reports

Posted: Wed Mar 19, 2014 4:30 pm
by lmiltchev
niebais, let us know if we can lock this topic.

Re: Downtimes and Reports

Posted: Mon Mar 24, 2014 11:31 am
by niebais
Go ahead and lock it. Thanks!