[Nagios-users] Service check timeouts

2008-11-24 Thread Deborah Martin
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=100url=/
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Service check timeouts

2008-11-24 Thread Marc Powell

On Nov 24, 2008, at 9:58 AM, Deborah Martin wrote:


 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.

The only standard thing that would manipulate a plugin's exit status  
is the negate plugin but it doesn't look at the text of the response.  
Outside of enhancing nagios, none that I can think of.

 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)

I'm not sure what you're trying to explain here. If your database  
checks can run at most 90 seconds, why is your database check plugin  
still running at 120 seconds? It sounds like that timeout isn't  
effective. Why don't you add an alarm/timeout to your plugin so that  
it will exit with your desired exit code before nagios kills it? Seems  
the easiest route to me.

 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 ?

You'd have to add code to nagios; at the place where nagios is setting  
the plugin output to be 'Service Check Timed Out' would be a logical  
place. Nagios doesn't really care what the text output is so there is  
little in place to act on it, let alone change anything related to it.

--
Marc

-
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=100url=/
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Service Check Timeouts

2006-10-26 Thread rob . moss

[EMAIL PROTECTED] wrote on
25/10/2006 18:08:25:
 Hi,
 
 I've been using Nagios for a while and I love it, but recently I 
 switched my gateway in the office from old FreeBSD 4 machine to IPcop.
 This seems to have had an effect on my Nagios monitoring, most of
the 
 time and most of my service checks time out. The host checks are always

 find and the latency is always low, but like I said my service checks

 seem to time out all the time ever since I changed my Internet Gateway.

 I use plugins and check_by_ssh for my service checks, if anyone has
had 
 this problem and maybe could help me out a bit I'd really appreciate
it, 
 thank you.

There are so many parts of your own infrastructure
that you haven't told us about that answering this question is impossible..

So you changed your monitoring enviornment, and things
don't work the same way.. What did you expect?

I will recommend one thing:

Diagnose your network. If you can't do that, find
someone who can: your I.T. staff or a Consultant.

What is different between your old setup and your
new setup which has problems?

That is a question you need to ask yourself and the
rest of your I.T. staff, posting a question like this to a mailing list
is pointless.

Good luck!

rob


This message and any attachments (the "message") is 
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified. 

**

BNP Paribas Private Bank London Branch is authorised
by CECEI  AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.

BNP Paribas Securities Services London Branch is authorised 
by CECEI  AMF and is regulated by the Financial Services 
Authority for the conduct of its investment business in 
the United Kingdom.
  
BNP Paribas Fund Services UK Limited is authorised and 
regulated by the Financial Services Authority

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Nagios-users mailing list
Nagios-users@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

[Nagios-users] Service Check Timeouts

2006-10-25 Thread Malcolm Frazier
Hi,

I've been using Nagios for a while and I love it, but recently I 
switched my gateway in the office from old FreeBSD 4 machine to IPcop.
This seems to have had an effect on my Nagios monitoring, most of the 
time and most of my service checks time out. The host checks are always 
find and the latency is always low, but like I said my service checks 
seem to time out all the time ever since I changed my Internet Gateway. 
I use plugins and check_by_ssh for my service checks, if anyone has had 
this problem and maybe could help me out a bit I'd really appreciate it, 
thank you.



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Nagios-users mailing list
Nagios-users@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