Thank you. Thats extremely helpful information. I have one problem though. Because the master service that the service group depends on is also part of the service group, I'm getting (an expected) error about the circular dependency. Is there an easy way around that? Thanks; John
-----Original Message----- From: Mathieu Gagné [mailto:mga...@iweb.com] Sent: Tuesday, November 27, 2012 3:33 PM To: Nagios Users List Cc: Tech Support Subject: Re: [Nagios-users] Defining a service dependency for large number of services Hi, On 12-11-27 2:30 PM, Tech Support wrote: > > I need to define service dependencies for some services. Pretty > straightforward stuff, do not check service B unless service A is > running also. For example, I have 100 different service checks that > all depend on service A. So my question is this. Is there an easy way > to define a dependency for a large number of services? Any insight at > all would be greatly appreciated. > > Thanks; > You can use this trick: http://nagios.sourceforge.net/docs/3_0/objecttricks.html#same_host_dependenc y_with_servicegroups I use it to massively add service dependencies for all NRPE based service checks on the NRPE service running on the same host as the NRPE based service checks. -- Mathieu ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net _______________________________________________ Nagios-users mailing list Nagios-users@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