Delay alerting when IIS is down
Posted: Thu Jan 04, 2018 11:19 am
Good afternoon,
I have the following command within a service
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:
Thanks in advance
Pete
I have the following command within a service
Code: Select all
check_command check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
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
}
Pete