service check time outs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

service check time outs

Post by paul.jobb »

is there any way to change the default status code returned from a service check timeout from critical to unknown instead?

I am checking log files on a number of solaris servers using the check_by-ssh plugin and when the check times out it sends an alert to our support teams which I would rather not have happen, since I am checking log files using the max check attempts/retry interval isn't really available to me.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: service check time outs

Post by slansing »

This would have to be changed in the plugin script itself since the exit codes the plugin sends are responsible for state changes in Nagios. A look into the development guidelines in the return codes section will help you identify which you would need to change and what to change them to:

http://nagiosplug.sourceforge.net/devel ... lines.html
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: service check time outs

Post by lmiltchev »

You can try using the "negate" plugin with "--critical=UNKNOWN". You can view the usage by running:

Code: Select all

/usr/local/nagios/libexec/negate -h
You can also review this document:

http://assets.nagios.com/downloads/nagi ... Plugin.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked