Downtimes and Reports

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Downtimes and Reports

Post 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,
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Downtimes and Reports

Post by scottwilkerson »

By chance was this a flexible downtime that was just triggered? We had a tracker report of this behavior...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: Downtimes and Reports

Post by niebais »

They were fixed. They were created from the recurring downtimes page.
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: Downtimes and Reports

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Downtimes and Reports

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: Downtimes and Reports

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Downtimes and Reports

Post by lmiltchev »

niebais, let us know if we can lock this topic.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: Downtimes and Reports

Post by niebais »

Go ahead and lock it. Thanks!
Locked