Lame service dependency
    Daniel Budde II 
    dbudde at leadergraphics.com
       
    Fri Mar 18 20:40:28 CET 2005
    
    
  
I am testing my startup of nagios and I am getting a "Warning: Ignoring lame
service dependency (config file '/usr/local/nagios/etc/dependencies.cfg',
line #" for every dependency I have created.  Basically I have created a
ping that pings each host server.
Then, for the webserver I am doing an individual HTTP check to each IP
address of every site on the server.  I have made these dependent upon the
successful server ping so that if the server itself is ever down I only get
the one message from not being able to ping it.
Can anyone help me out with why I am getting the message and if there is a
better way I should be doing this?
I have added a sample of my first three lines of services and their
dependencies:
################ services #########################
define service{
	name			service_template
	max_check_attempts	5
	normal_check_interval	1
	retry_check_interval	1
	check_period		all_the_time
	notification_interval	0
	notification_period	all_the_time
	notification_options	w,u,c,r
	contact_groups		emergency
	register		0
}
define service{
	use			service_template
	host_name		IT-WEBSERVER
	service_description	is-IT-WEB-alive
	check_command		check_ping!100.0,20%!500.0,60%
}
define service{
	use			service_template
	host_name		IT-WEBSERVER
	service_description	LGD_SITE
	check_command		check_http!10.10.20.2
}
define service{
	use			service_template
	host_name		IT-WEBSERVER
	service_description	INVISIBLEINK_SITE
	check_command		check_http!10.10.20.3
}
################## dependencies ############################
define servicedependency{
	name				IT-WEBSERVER-DEP-TEMPLATE
	dependent_host_name		IT-WEBSERVER
	host_name			IT-WEBSERVER
	service_description		is-IT-WEB-alive
	register			0
}
define servicedependency{
	use				IT-WEBSERVER-DEP-TEMPLATE
	dependent_service_description	LGD_SITE
}
define servicedependency{
	use				IT-WEBSERVER-DEP-TEMPLATE
	dependent_service_description	INVISIBLEINK_SITE
}
##############################################################
Thanks in advance for help,
Daniel Budde II
Programmer & Network Administrator
Leader Graphic Design 
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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