Service Dependency Problem

Scottie Thompson scottiesmail at gmail.com
Mon Nov 28 22:38:23 CET 2005


Hello,

I found another change from 1.x to 2.0 in the config files. In my service
configs I have a service defined as such:

define service{
   use                             windows-service      ; Name of service
template to use
   hostgroup_name          exchange-servers
   service_description       POP
   check_command          check_pop
   }

One of the members of exchange-servers is "descartes". So I wanted to define
a service dependency as follows:

define servicedependency{
   dependent_hostgroup_name      other-email-servers
   dependent_service_description Email2Descartes
   host_name                     descartes
   service_description           POP
   execution_failure_criteria    w,u,c
   notification_failure_criteria w,u,c
   }

But then I get this error:

Reading configuration data...

Error: Could not find a service matching host name 'descartes' and
description 'POP'
Error: Could not expand services specified in service dependency (config
file '/opt/nagios/etc/2.0/services/services.cfg', starting on line 612)
***> One or more problems was encountered while processing the config
files..

This did not happen in 1.x. Does it have to happen now? Thanks.

~Scottie Thompson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20051128/3e74b57a/attachment.html>


More information about the Developers mailing list