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.
service check time outs
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: service check time outs
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
http://nagiosplug.sourceforge.net/devel ... lines.html
Re: service check time outs
You can try using the "negate" plugin with "--critical=UNKNOWN". You can view the usage by running:
You can also review this document:
http://assets.nagios.com/downloads/nagi ... Plugin.pdf
Code: Select all
/usr/local/nagios/libexec/negate -hhttp://assets.nagios.com/downloads/nagi ... Plugin.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!