How-to DO NOT check_alive host?

Hari Sekhon hpsekhon at googlemail.com
Thu Sep 18 11:30:27 CEST 2008


Andreas Ericsson wrote:
> Hari Sekhon wrote:
>> Proskurin Kirill wrote:
>>> Hello.
>>>
>>> Im have some servers what don`t accept any icmp packets.
>>> Im check http port on it. But nagios by default does check_alive - 
>>> and say what host is down.
>>>
>>> How can im evade this?  
>> use the "negate" program to invert the meaning of the check_ping plugin?
>
> Umm, no. That won't work very well at all, as the host then will seem
> to be up no matter if it's on fire or whatever happens to it.
>
> A more appropriate method would be to check something else on the host
> that the host can (and does) respond to properly. TCP connections to
> some random (open) port is usually a fairly decent bet.
>
Yes you're right, I don't use negate myself, must have misread the question.

Switching the host check to a service check, in this case check_http 
would be more appropriate.

-h

-- 
Hari Sekhon


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