Advances servicedependency configuration

Michael Maymann michael at maymann.org
Wed Mar 18 16:14:27 CET 2009


Hi List,

Is there a way to solve my problem with the following servicedependency
config:
http://forums.meulie.net/viewtopic.php?f=59&t=4606


---
I'm using Nagios 3.0.6 with nrpe.
I'm about to setup NRPE service dependencies and would like to know the best
way to do this.

for a test i have configured the below and it works great, and i could
"just" make these servicedependencies for every host.
# NRPE dependencies
define servicedependency{
host_name host1
# hostgroup_name hostgroup1
service_description NRPE
dependent_host_name host1
# dependent_host_name $HOSTNAME$
dependent_service_description Current Users,Free Space,HW info,Health,High
CPU Load,Log file,NFS client stats,NTP stratum,Pdflush Processes,RAID,Swap
Space,Temps,Zombie Processes
execution_failure_criteria w,u,c,p
notification_failure_criteria w,u,c,p
}

My only problem is that we have ---A LOT--- of hosts so this is not an
option [image: :-)]
I am aware of the -u option to check_nrpe but a combination of only running
some checks once every day and automated powermanagement makes this no
option either.
It would be nice if i somehow could get the functionality of the commented
lines:
# hostgroup_name hostgroup1
# dependent_host_name $HOSTNAME$
so for each host in hostgroup1 all the "dependent_service_descriptions"
services are dependent on NRPE in this specific host.
so if "hostgroup1" contains host1 and host2, "Current Users" on host1 will
be dependent on NRPE on host1 but not dependent on NRPE on host2...

Is there a way to do this or do i need to make a hack and/or put an entry in
the wishlist ?
---


Thanks in advance
~Maymann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20090318/5381c95c/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list