Using check_nt to check the status of IIS
Posted: Fri May 26, 2017 11:26 am
Good afternoon,
I use the following command within a service definition to see if the IIS service is up or down:
However, IIS can be down legitimately because we've turned it off in order to carry out a server sync, after which it gets turned back on again.
Is there any way in which I can add a parameter to this to generate a critical alert if the service has been down for say, more than 30 minutes?
I'm on leave now until Tuesday, so if anyone is good enough to reply and I don't get back until after then, that's why.
Have a good weekend all and thanks in advance
Pete
I use the following command within a service definition to see if the IIS service is up or down:
Code: Select all
check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
Is there any way in which I can add a parameter to this to generate a critical alert if the service has been down for say, more than 30 minutes?
I'm on leave now until Tuesday, so if anyone is good enough to reply and I don't get back until after then, that's why.
Have a good weekend all and thanks in advance
Pete