Service Dependencies

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
brandon.pal
Posts: 129
Joined: Wed Feb 19, 2014 10:18 pm

Service Dependencies

Post 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?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Service Dependencies

Post by tmcdonald »

Can you screenshot the dependency page in the CCM and, humor me here, attach the config file to your post?
Former Nagios employee
brandon.pal
Posts: 129
Joined: Wed Feb 19, 2014 10:18 pm

Re: Service Dependencies

Post by brandon.pal »

Sure :D

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
#
###############################################################################
You do not have the required permissions to view the files attached to this post.
brandon.pal
Posts: 129
Joined: Wed Feb 19, 2014 10:18 pm

Re: Service Dependencies

Post 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?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Service Dependencies

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked