Nagios GUI not cleaning up old config files

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagiosadmin42
Posts: 96
Joined: Sat Feb 11, 2012 2:16 pm

Nagios GUI not cleaning up old config files

Post by nagiosadmin42 »

This is a note for the development team, hopefully they can address it on the next CCM release.

I'm using Nagios XI 2011R2.2 (with Nagios Core 3.2.3).

When I de-activate a host, service, etc. by unchecking its Active checkbox, when I attempt to apply the configuration changes I'll get an error like:

Error: Could not find any hostgroup matching 'SomeHost' (config file '/usr/local/nagios/etc/services/SomeService.cfg', starting on line 123)

Inevitably, this is caused by old configuration files remaining in the /usr/local/nagios/etc/ directory tree. If I manually delete the old config file(s), I can then apply the configuration changes.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios GUI not cleaning up old config files

Post by lmiltchev »

Can you describe in details all of the steps you took, so that we can try to recreate this issue?
Be sure to check out our Knowledgebase for helpful articles and solutions!
nagiosadmin42
Posts: 96
Joined: Sat Feb 11, 2012 2:16 pm

Re: Nagios GUI not cleaning up old config files

Post by nagiosadmin42 »

I'm in the middle of other things right now. When I get a chance, I'll go through the steps and try to document things for you.
Locked