On 08.09.2012 22:56, Stephane Bortzmeyer wrote: > I have a service to test Internet connectivity, defined by: > > define hostgroup{ > hostgroup_name Internet > members cymru,ovh,free,demarcq,rezopole > } > > define service{ > use generic-service > service_description Internet connectivity > hostgroup_name Internet > service_description Test of the Internet connectivity > check_command > check_cluster_host!2!3!$HOSTSTATEID:cymru$,$HOSTSTATEID:ovh$,$HOSTSTATEID:free$,$HOSTSTATEID:demarcq$,$HOSTSTATEID:rezopole$ > notifications_enabled 1 > } > > I want to make all remote machines depend on this service (if I have > no Internet connectivity, there is no point in testing and even less > in raisong alarms). I tried: > > define servicedependency{ > hostgroup_name Internet > service_description Internet connectivity > dependent_hostgroup_name ABgenomica > } > > But Icinga 1.7.2 protests and says: > > Error: Could not expand dependent services specified in service dependency > (config file '/usr/local/icinga/etc/conf.d/abgenomica.cfg', starting on line > 27) > Error processing object config files!
according to the documentation, you need at least a host service pair (which can be overruled by the hostgroup directive). but only defining a dependen hostgroup is not enough - you are still required to add a dependent service to your definition. And that is what the config verification is trying to tell you. > > > So, I have to add a dependent_service_description to the above > servicedependency. The problem is that I would like to be applied to > all services. all services on the icinga box, or any different "group"? > Besides macro-expansionto provide a servicedependency > for every service, is there a way to make *all* the services of a host > depend on a service? yes. http://docs.icinga.org/latest/en/objecttricks.html#objecttricks-servicedependency > > > PS: when there are several service_description, there is no error, the > first ones are ignored silently, only the last one is kept, which > makes debugging of service dependencies configurations a pain. this is due to the nature of how config is being read, parsed, and processed later on improving might require a full rewrite though. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > icinga-users mailing list > icinga-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/icinga-users -- DI (FH) Michael Friedrich mail: michael.friedr...@gmail.com twitter: https://twitter.com/dnsmichi jabber: dnsmi...@jabber.ccc.de irc: irc.freenode.net/icinga dnsmichi icinga open source monitoring position: lead core developer url: https://www.icinga.org ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ icinga-users mailing list icinga-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/icinga-users