Page 1 of 1
Service Dependencies
Posted: Tue Jul 01, 2014 12:44 pm
by brandon.pal
I have created a service dependencie and every time I try to Apply Configuration I'm getting:
Waiting for configuration verification.......
Configuration verification failed.
When I view the error they are:
Website:
http://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Impossible service dependency definition
(config file '/usr/local/nagios/etc/servicedependencies.cfg', starting at line '14')
Error processing object config files!
How do I find out what the error is. I have checked the file and it's blank. Is there a more explanatory log?
Re: Service Dependencies
Posted: Tue Jul 01, 2014 12:47 pm
by tmcdonald
Can you screenshot the dependency page in the CCM and, humor me here, attach the config file to your post?
Re: Service Dependencies
Posted: Tue Jul 01, 2014 12:54 pm
by brandon.pal
Sure
Code: Select all
###############################################################################
#
# Service dependency configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2014-07-01 12:55:38
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
###############################################################################
#
# Service dependency configuration file
#
# END OF FILE
#
###############################################################################
Re: Service Dependencies
Posted: Tue Jul 01, 2014 2:17 pm
by brandon.pal
So I think I may not fully be understanding our service dependencies work.
What I wanted to do was this.
My Main service is NRPE so if any checks fail first check NRPE is that is good tell me if that is not good just tell me NRPE is down.
So I thought I could set it up with one service dependence. So I thought how it would work was if this host has this service go down it will check the same hosts nrpe service but it seems this is not how it works.
So do I need to create a service dependence for each host?
Re: Service Dependencies
Posted: Wed Jul 02, 2014 1:33 am
by Box293
I believe the reason for your "Error: Impossible service dependency definition" is because you haven't specified a host for your dependency.
Here is the documentation on service dependencies:
http://nagios.sourceforge.net/docs/3_0/ ... dependency
And here is some more information about dependencies:
http://nagios.sourceforge.net/docs/3_0/ ... dependency
Does that help?