servicegroup shortcut in servicedependency doesn't quite work that way in the code?

Michael Durket durket at hw-durket.stanford.edu
Wed Aug 23 17:31:40 CEST 2006


If one attempts to specify the following in Nagios:

define servicedependency {
servicegroup_name               X           
dependent_host_name             Y
dependent_service_description   Z
execution_failure_criteria      w,u,c
notification_failure_criteria   w,u,c
}

it generates the error:

Error: Could not expand master hostgroups and/or hosts specified in service dependency 
(config file 'config.cfg', starting on line ....

If I'm reading the code correctly in xodtemplate.c it looks like the code starting 
at line 4119 should consider the possibility that no hosts/hostgroups are specified 
even though a dependent host name is, and allow a fall-through to the code at line
4179 which appears to be designed to handle just this case.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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