Page 1 of 1

Delay alerting when IIS is down

Posted: Thu Jan 04, 2018 11:19 am
by neworderfac33
Good afternoon,
I have the following command within a service

Code: Select all

check_command           check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
which alerts when the IIS service W3SVC goes down.
However, in certain circumstances, IIS may be down for anything up to 30 minutes for a perfectly valid reason. How do I only alert when this period has passed?

I don't mind doing it via check_nrpe either, for which I have the following defined command:

Code: Select all

define command{
        command_name nrpe_IIS_on
        command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c check_service -a service=W3SVC "crit=state = 'stopped'" warn=none
}
Thanks in advance
Pete

Re: Delay alerting when IIS is down

Posted: Thu Jan 04, 2018 1:02 pm
by dwhitfield
The exact instructions will depend on your version of Core, but scheduled downtime is designed for this purpose: https://assets.nagios.com/downloads/nag ... ntime.html

Alternatively, you could change the notification_interval on the service: https://assets.nagios.com/downloads/nag ... ml#service

Re: Delay alerting when IIS is down

Posted: Fri Jan 05, 2018 5:41 am
by neworderfac33
Thanks for coming back to me - although we DO have scheduled downtime, there are ad-hoc times where IIS will have to be down too, so I guess I'll just have to tell our monitoring folk to apply a bit of common sense (oh dear!) around "IIS down" alerts.
This thread can now be closed.
Pete

Re: Delay alerting when IIS is down

Posted: Fri Jan 05, 2018 10:55 am
by dwhitfield
neworderfac33 wrote: there are ad-hoc times where IIS will have to be down too
I certainly don't want to talk anyone out of using common sense, but...do these ad-hoc times come with any notice? You can schedule downtime immediately before actually going down.

You might also be interested in https://assets.nagios.com/downloads/nag ... ncies.html . I don't know if there's anything you can use there, but it's at least worth thinking about if you can tie IIS to something else.