Delay alerting when IIS is down

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
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Delay alerting when IIS is down

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Delay alerting when IIS is down

Post 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
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Delay alerting when IIS is down

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Delay alerting when IIS is down

Post 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.
Locked