feature request: Service used as Host check
Goldschrafe, Jeffrey
goldschr at cshl.edu
Mon Aug 4 17:32:16 CEST 2008
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Hugo van der Kooij
> Sent: Sunday, August 03, 2008 1:28 PM
> To: nagios-user Mailinglist
> Subject: [Nagios-users] feature request: Service used as Host check
>
> Hi,
>
> It seems some of us could just do with a config where we appoint a
> service check as being a host check.
>
> So if I define the service PING and use check_icmp on there I might as
> well derive the host state from the service instead of duplicating this
> check into the host definition.
>
> Would it be possible to add the option sometime in the future to just
> point to a service check on the host and let that result also count as
> the host status?
>
> Hugo.
You want check_cluster from the Nagios-Plugins distribution. This is a plugin which checks the results of several host or service checks directly from the Nagios status file to determine if a service is available so, for example, you could have it checking all of your DNS servers and only report that DNS is down if none of them are available.
What you can also do with this is only specify one service, and define this as the host check. So you could do:
check_cluster -s -d $HOSTNAME$:Ping -w 1 -c 1
Redundant pings aren't a big deal if you're only sending one ICMP packet to check if the host is alive, but if you're worried about packet loss too, check_icmp or check_ping can easily be the biggest scalability killers on your system. For larger deployments, it's really nice to be able to eliminate the check on a few hundred hosts -- it by itself can mean the difference between whether or not you have to scale out a new DNX host.
-------------------------------------------------------------------------
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