Host State for machines that don't allow ping

Andreas Ericsson ae at op5.se
Mon Sep 10 13:06:28 CEST 2007


Hari Sekhon wrote:
> 
> 
> Andreas Ericsson wrote:
>>
>> Write a host-check that checks the status of all services on the host. If
>> any service is up, the host is up.
> In that case, I would just use the service check as the host check as well.
> 
>> Or, write a NEB-module to make this happen automagically whenever a 
>> host is
>> determined to be up and use a dummy check (that doesn't even have to 
>> exist)
>> for host check.
> 
> NEB seems a little OTT, I don't know anything about NEB and I'd rather 
> avoid doing something heavy for something which should be small and simple.
> 

It wouldn't be heavy at all. Just hook into the host checking machinery and
go through the host's services prior to running the actual check. If any of
the services are ok, block the host check and set the host to state "UP" with
output "Implicitly OK due to functioning services".

It could probably be done in 100 or so lines of code.

> 
> 
> I take it that most of you out there who run Nagios have ping enabled on 
> _all_ of your hosts?
> 
> 
> I can't be the first person to run into this, surely?
> 

Nopes, but generally there's some easy way of checking if the host is up.
check_tcp is quite small and efficient. Perhaps you can use that to check
if the port serving whatever service you're monitoring is up?

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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