Service Checks only OK or Critical

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
essrichard
Posts: 24
Joined: Wed Apr 29, 2015 12:10 pm

Service Checks only OK or Critical

Post 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!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Service Checks only OK or Critical

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
essrichard
Posts: 24
Joined: Wed Apr 29, 2015 12:10 pm

Re: Service Checks only OK or Critical

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Service Checks only OK or Critical

Post by tmcdonald »

Keep us posted! We'll leave the thread open for a bit.
Former Nagios employee
Locked