[Nagiosplug-help] check_ping timeout or retry time

Subhendu Ghosh sghosh at sghosh.org
Wed Nov 5 18:40:07 CET 2003


On Mon, 27 Oct 2003, John Mahoney wrote:

> Hi,
> 
> This seems like it should be simple - but I have not
> found the solution...
> 
> I am using check_ping to in a stock check-host-alive
> "checkcommand".
> 
> But I want to change it so that
>  a) if a server fails the initial ping, the test sleeps
>     for 5 min or so then pings again.
> 
>     I would declare the server DOWN only if the 2nd ping
>     fails.

look at the max_check_attempts - set to a 2 or 3 
or with the new version - look at passive host checks submitted by an at 
command.

>  or
>  b) have a long timeout period for check_ping.
> 
>     I would declare the server DOWN only only if I had
>     90%+ packet loss after this (5 min) timeout period.

Again - max_check_attempts and retry_check_interval

-sg

> 
> So far I have tried things like:
> 
> check_ping -t 300 -H <IP address> -w 100,20% -c 500,100%
> and I have gotten a FAILED response within 14 sec.
> 
> check_ping -p 100 -H <IP address> -w 100,20% -c 500,100%
> but this seems to
>    - be a bit uncertain
>    - needlessly consume a lot resources
>    - cause nagios some trouble in maintaining it's
>      scheduled checks on all other devices
>     
> I'm sure I could script my way around this, but I suspect
> nagios can do this better than I would script it.
> 
> In case it makes a difference, we are running nagios on a
> Sun Ultra-2 (sparc sun4u) running Solaris 8.
> 
> Thx

-- 






More information about the Help mailing list