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
Nagios Renaming Tool Issue after usage
Re: Nagios Renaming Tool Issue after usage
First try stopping nagios, killing any orphaned nagios processes, and restart nagios. This is too avoid multiple parent processes from running:
Next, lest look at your configs for older timestamped 'ghosts'.
Code: Select all
service nagios stop
killall nagios
service nagios startCode: Select all
ls -lat /usr/local/nagios/etc/hosts
ls -lat /usr/local/nagios/etc/servicesFormer 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.
"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.
Re: Nagios Renaming Tool Issue after usage
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
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
Is that exactly how the host is shown in the directory? This is a host correct? Can you try re-listing the directory?
Re: Nagios Renaming Tool Issue after usage
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
Awesome, thanks for letting us know!