service dependencies on a single host?

Thomas Guyot-Sionnest dermoth at aei.ca
Tue Oct 14 20:11:45 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 14/10/08 01:29 PM, Michael W. Lucas wrote:
> Hi,
> 
> I'm currently monitoring many services on certain hosts via SNMP, and
> making extensive use of host groups to ease configuration for my
> several hundred hosts.
> 
> On occasion, the SNMP service on a host fails.  This triggers dozens
> of alarms.  I would like to have each service checked via SNMP depend
> on the base SNMP service, so that when SNMP fails I only get one
> alarm.  I investigated service dependencies, but they don't seem
> amenable to hostgroup-friendly configuration.
> 
> If I do something like:
> 
> define servicedependency {
> 	hostgroup_name		NetSnmpServers
> 	service_description	Snmp
> 	dependent_host_name	NetSnmpServers
> 	...
> }
> 
> that obviously isn't going to work.
> 
> Surely other people have encountered this before?  Any suggestions?

same-host dependencies (or something similar) implemented in Nagios
v3.0. Just omit the dependent_host*_name and dependencies will only
occur within the same hosts. You can therefore apply it to hostsgroups
without having deps between hosts.

I have a patch for 2.x around if you need.

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI9ODh6dZ+Kt5BchYRAkcwAKDDmM796MpVMvwUEqMt2YjVsqH6UwCfTOQV
01Ng9QV42iJWfjG4VedN+rk=
=jDzR
-----END PGP SIGNATURE-----

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