service dependencies on a single host?

Andy Shellam andy-lists at networkmail.eu
Tue Oct 14 23:44:43 CEST 2008


Hi Thomas,

Thomas Guyot-Sionnest wrote:
> -----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.
>   
Fantastic!  I actually wrote a tool to do this back in Nagios 
2.something, but I've lost the original code for it, so I'm glad it's 
been sorted in 3.0.  We need to do the same thing for NRPE - if the NRPE 
daemon fails, we get a bomb of alerts - glad to hear this is no more.

Andy

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