Page 1 of 1

Service Checks only OK or Critical

Posted: Fri Aug 21, 2015 8:55 am
by essrichard
We are looking for a way to have certain windows service checks return only a WARNING status instead of CRITICAL when that service is not running since some services are not actually CRITICAL. I have tried adding "-w 0" and "-w 2" to my check_nt service checks in nagios XI, but this does nothing. Is this possible in any way? Any help would be appreciated!

Re: Service Checks only OK or Critical

Posted: Fri Aug 21, 2015 10:52 am
by lmiltchev
You could modify your check to use the negate plugin and change the critical states to warnings. For more info on the negate plugin, please check out the document below:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Re: Service Checks only OK or Critical

Posted: Fri Aug 21, 2015 2:45 pm
by essrichard
That document was not very detailed on how to change critical to warning and the specific options, but it put me on the right track to search out the negate command. I found additional info elsewhere such as this page: https://xteams.oit.ncsu.edu/iso/node/831
Will try and implement this for a few service checks and see how it goes.

Thanks for the info and getting me on the right track.

Re: Service Checks only OK or Critical

Posted: Sun Aug 23, 2015 6:57 pm
by tmcdonald
Keep us posted! We'll leave the thread open for a bit.