Nagios Renaming Tool Issue after usage

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rdhall01
Posts: 87
Joined: Wed Nov 09, 2011 9:53 am

Nagios Renaming Tool Issue after usage

Post by rdhall01 »

I had a set of hosts that needed renaming, so I used the nagios renaming tool and I thought it worked correctly except now I all the original servers and services and there copied servers and services! if I go thru ccm I see the renamed servers and services (what I expected) and do not see the renamed ones, but thru the gui and I see both! How can I remove the servers after the renaming process! Some are still part of a host group i need to remove , but cannot because the original servers are still there! I looked at /usr/local/nagios/etc/services and hosts and see the renamed version but not the old ones!

nagios version
Nagios XI 2012R2.5
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Renaming Tool Issue after usage

Post by abrist »

First try stopping nagios, killing any orphaned nagios processes, and restart nagios. This is too avoid multiple parent processes from running:

Code: Select all

service nagios stop
killall nagios
service nagios start
Next, lest look at your configs for older timestamped 'ghosts'.

Code: Select all

ls -lat /usr/local/nagios/etc/hosts
ls -lat /usr/local/nagios/etc/services
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
rdhall01
Posts: 87
Joined: Wed Nov 09, 2011 9:53 am

Re: Nagios Renaming Tool Issue after usage

Post by rdhall01 »

i found a bunch of themn removed the services, but the hosts refuse to delete!
example

rm: cannot lstat `eamdbgl019-fe.cfg': No such file or directory
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios Renaming Tool Issue after usage

Post by slansing »

Is that exactly how the host is shown in the directory? This is a host correct? Can you try re-listing the directory?
rdhall01
Posts: 87
Joined: Wed Nov 09, 2011 9:53 am

Re: Nagios Renaming Tool Issue after usage

Post by rdhall01 »

I finally was able to remove old hosts / services everything is good now
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios Renaming Tool Issue after usage

Post by slansing »

Awesome, thanks for letting us know!
Locked