Page 1 of 1

Urgent: servicedependencies error

Posted: Thu Sep 19, 2013 8:18 am
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

Re: Urgent: servicedependencies error

Posted: Thu Sep 19, 2013 2:08 pm
by lmiltchev
When you go to the Core Config Manager->Advanced->Service Dependencies, do you see any entries?

Re: Urgent: servicedependencies error

Posted: Fri Sep 20, 2013 2:32 am
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

Re: Urgent: servicedependencies error

Posted: Fri Sep 20, 2013 5:41 am
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.

Re: Urgent: servicedependencies error

Posted: Fri Sep 20, 2013 10:45 am
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?