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!

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. 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?

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.

------------------------------------------------------------------------------
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

Reply via email to