Old config files persist after renaming hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
awoodewh
Posts: 32
Joined: Fri Nov 05, 2010 3:28 pm

Old config files persist after renaming hosts

Post by awoodewh »

I renamed several hosts to make them standard with our naming convention. Now, the old host and service configs persist, but do not show up in Core or XI, unless they alarm....but then the show up a double entries.

I've tried deleting the service and host entries, but when I apply the configuration they return. Is there a way to remove them without modifying the database directly. I tried searching for this issue in the forum, but did not see this issue.

Thanks,
Andy
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: Old config files persist after renaming hosts

Post by rdedon »

Hmm, lets try this to start:

If you have successfully deleted a host and all of it's services from the Core Config Manager, but you're still seeing it in the status tables, then you most likely have multiple instances of Nagios running on your machine. To make sure all instances are stopped, type the following in the command-line.

Code: Select all

killall nagios
 service nagios start
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
awoodewh
Posts: 32
Joined: Fri Nov 05, 2010 3:28 pm

Re: Old config files persist after renaming hosts

Post by awoodewh »

Thanks, I figured it out. The host name and service name have to match case. Once I changed all the service names to match the host name I was able to remove both the host and services.

I had changed EWHServer123 to ewhserver123, but failed to change the service names to match.

Thanks,
Andy
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Old config files persist after renaming hosts

Post by mguthrie »

Awesome, glad it's working again!
griffithusg
Posts: 64
Joined: Sun Nov 07, 2010 7:16 pm

Re: Old config files persist after renaming hosts

Post by griffithusg »

Does this mean that a name change does not have a flow on effect to the services that are being monitored?
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: Old config files persist after renaming hosts

Post by rdedon »

If you change your host name your services would need to point to that new host name.
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
Locked