I'm just starting to get into service dependencies. My problem is that I don't quite see how I can get around doing it individually for each and every service and host needed.
An example is if I've got 100 Windows servers all configured to be part of a hostgroup. Then I've got a define service { hostgroup_name prod_windows_servers service_description NRPE Service check_command NRPE Service use Production Windows Service } define service { hostgroup_name prod_windows_servers service_description CPU Load check_command check_windows_load!90%!90% use Production Windows Service } define service { hostgroup_name prod_windows_servers service_description C: Drive check_command check_windows_disk!C:!90%!90% use Production Windows Service } where the 100 servers are all part of the 'prod_windows_servers" hostgroup. Here I can list the checks nice and compactly and add new hosts/checks merely by putting them in that hostgroup. I would like to make service checks on these boxes dependent on the "NRPE Service" check above. So if the NRPE service was not responding, Nagios wouldn't bother sending me alerts about all the other things on that box it could not reach. The object definitions seem to say that I can do define servicedependency { hostgroup_name prod_windows_servers service_description NRPE Service dependent_hostgroup_name prod_windows_servers dependent_service_description C: Drive execution_failure_criteria n notification_failure_criteria w,u,c } I'm assuming that this is supposed to match up each 'prod_windows_servers' entry with its matching entry rather than making each server dependent on this servers from *every* other hostgroup member? Just to see, I tried this out and when I did a pre-flight check it took 53 seconds (checking the host and service dependencies) when it normally runs instantly. I'm not sure this does what I want. Even so, I don't know that I can handle the 53 second wait which I imagine would escalate for each service I defined in this way). The only other route I can think of is to create a unique servicedepency definition for each of these. That's 100 x n dependency definitions, where n is the number of other services I'm checking on each of these boxes. Am I looking at this the wrong way? Is there an easier way to do this? Thanks Mark ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ 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