check_by_ssh timeouts / how to work around?

Charlie Reddington charlie.reddington at gmail.com
Mon Oct 6 18:18:22 CEST 2008


On Oct 6, 2008, at 11:03 AM, James wrote:

> On Mon, October 6, 2008 11:37 am, Charlie Reddington wrote:
>> I should also  mention that I also have these timeouts in place...
>>
>>
>> service_check_timeout=90 host_check_timeout=30  
>> event_handler_timeout=30
>> notification_timeout=60 ocsp_timeout=5 perfdata_timeout=5
>>
>> Charlie
>>
>>
>> On Oct 6, 2008, at 10:35 AM, Charlie Reddington wrote:
>>
>>
>>> Hi,
>>>
>>>
>>> I have a couple machines that spit out a warning similar to this:
>>>
>>>
>>> WARNING - check_by_ssh: Remote command '/home/nagios/nagios-plugs/
>>> check_disk' returned status 1
>>>
>>> I believe this to be caused by the check itself is timing out. As
>>> when I try to login it will sometimes take up to a minute or two  
>>> just to
>>> get a prompt.
>>>
>>> The server will respond to ping, so I'm generally not totally
>>> concerned about it. And the checks usually clear up in 5 minutes  
>>> or soon
>>> as the server gets whatever IO hog out of the way.
>>>
>>> Is anyone else experiencing this, and if so how do you cope / deal
>>> with this?
>>>
>>> Thanks,
>>>
>>>
>>> Charlie
>
> The timeouts in nagios.cfg are ow long the nagios process waits before
> aborting a check.
> There are usually check specific timeouts that you can add to the  
> command
> definition.
> Run the check_* command manually and see what the syntax is  
> (sometimes '-t
> xx').
>

I thought I had did that already , and just put the --timeout option  
on the check_by_ssh, but I guess not. I added the timeout, from 30   
to  60.  We'll see how it goes.

Charlie

-------------------------------------------------------------------------
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