Service check timeouts
Deborah Martin
Deborah.Martin at Kognitio.com
Mon Nov 24 16:58:19 CET 2008
Hi,
I have a service check plugin which basically runs a query against our
database (It's not a database that has standard plugins already in existence
e.g Oracle, Mysql, SQL Server etc etc ) which I've written.
Based on it's success or failure, most errors come from the database so I
can manipulate the error handling tell Nagios what it's exit status should
be.
However, every now and again I get an error 'Service Check Timed Out' and
the exit status changes to CRITICAL automatically. But I'd rather it didn't
Is there a way to manipulate this exit status - I'd rather it was set to
UNKNOWN.
As far as I understand it, this error is based on the plugin itself having a
timeout which I've set to 120 seconds (nagios.cfg:
service_check_timeout=120)
The timeouts we set for the database vary between 15 and 90 seconds
(depending on the each database requirement for this)
Or is there a way of looking at the $SERVICEOUTPUT$ string returned by
Nagios and grepping for 'Service Check Timed Out' and manipulating the
exit code that way ?
I'm using v2.0b4 but I know there is a way of using the macros as
environment variables in later versions of Nagios. If I can't resolve
it until I upgrade then that's fine.
If anyone has any pointers on the way forward for this it would be really
appreciated.
thanks,
deborah
***************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
Any unauthorised distribution or copying is strictly prohibited.
Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions.
Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused.
Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92.
Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA
***************************************************************************
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list