Urgent: servicedependencies error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
TSCAdmin
Posts: 155
Joined: Wed Apr 14, 2010 3:00 pm
Location: India

Urgent: servicedependencies error

Post by TSCAdmin »

Hi,

We are using Nagios XI 2009R1.3.

I was making some changes to the servicedependencies through the XI web interface for a host named "ussqlkcr", after I applied the configuration it threw some error:

Code: Select all

Error: Could not expand master services specified in service dependency (config file '/usr/local/nagios/etc/servicedependencies.cfg', starting on line 14)
   Error processing object config files!
There are no entries for this host in servicedependencies.cfg. I get nothing when I try to find this host in Nagios XI:
err_001.jpg
However, in the CCM I see this:
err_002.png
Due to this I'm now unable to add/remove any configuration in Nagios as it is continuously throwing the error.

Can you please help with this, it is very urgent?

Thanks,
Ashish
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Urgent: servicedependencies error

Post by lmiltchev »

When you go to the Core Config Manager->Advanced->Service Dependencies, do you see any entries?
Be sure to check out our Knowledgebase for helpful articles and solutions!
TSCAdmin
Posts: 155
Joined: Wed Apr 14, 2010 3:00 pm
Location: India

Re: Urgent: servicedependencies error

Post by TSCAdmin »

There are no entries for host "ussqlkcr" in CCM -> Advanced -> Service Dependencies.

But in the Host Management section I see this:
err_003.png
but in the servicedependencies.cfg I see this:

Code: Select all

define servicedependency {
       host_name                                ussqlkcr
       inherits_parent                          1
       execution_failure_criteria               n
       notification_failure_criteria            u
}
the wrong configuration entry. Can you please help resolve this as soon as possible. It is hampering most of the new projects.

Thanks
You do not have the required permissions to view the files attached to this post.
TSCAdmin
Posts: 155
Joined: Wed Apr 14, 2010 3:00 pm
Location: India

Re: Urgent: servicedependencies error

Post by TSCAdmin »

I had no choice but to restore two days old backup to get things moving again.

However, I would appreciate if someone can post a possible resolution for this. Thanks.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Urgent: servicedependencies error

Post by sreinhardt »

It would seem, but be very hard to verify now, that you removed the host and still had services that were associated with it. There were many fixes in the ccm and other areas since 2009 versions that would be resolved now. I am not sure if has been asked, but is there a reason you are not updating?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked