Page 1 of 1
Service Name Renamed Issue
Posted: Tue Jul 30, 2013 1:04 pm
by rdhall01
I have 4 service checks that were renamed! (on purpose) Then applied the configuration, now the old and new shows up but cannot delete the old service name, and its not working. I do not see the old service name in the services cfg file the original is Check_APC and renamed to Check_PDU how can i get rid of the original service I tried CCM but I do not see it there? does it have to be removed from the database and if so how?
Re: Service Name Renamed Issue
Posted: Tue Jul 30, 2013 1:29 pm
by lmiltchev
Can you describe the steps you took to rename these services? Did you do it via:
1. CCM->Services->Modify
If yes, did you change the "Description" or you changed the "Config Name" as well?
2. CCM->Tools->Renaming Tool
3. Manually, from the CLI
Re: Service Name Renamed Issue
Posted: Tue Jul 30, 2013 1:34 pm
by rdhall01
I was trying to hurry up and went into the service thru ccm and just renamed the service and hit apply config
Re: Service Name Renamed Issue
Posted: Tue Jul 30, 2013 2:34 pm
by abrist
Tr the following:
Go to --> CCM --> Wrote Config Files. Click "write" and then "verify".
Now go to the cli and get a date sorted listing of the services directory:
Code: Select all
ls -lat /usr/local/nagios/etc/services
Most files should all be nearly the same date and time. You should also see some files that are noticeably older than the rest. Remove those files.
Re: Service Name Renamed Issue
Posted: Tue Jul 30, 2013 2:57 pm
by rdhall01
I dont see anything to remove all files have the same time stamp the 4 services only have the correct check and the ping checkin the cfg file. I tried to delete all services, but will not because of the orphaned service i cannot get to remove it.
pwd
/usr/local/nagios/etc/services
ls -lat | grep f7
-rw-r--r-- 1 apache nagios 1369 Jul 30 15:38 f7apc1-oob.cfg
-rw-r--r-- 1 apache nagios 1369 Jul 30 15:38 f7apc2-oob.cfg
-rw-r--r-- 1 apache nagios 1369 Jul 30 15:38 f7apc3-oob.cfg
-rw-r--r-- 1 apache nagios 1369 Jul 30 15:38 f7apc4-oob.cfg
Re: Service Name Renamed Issue
Posted: Tue Jul 30, 2013 3:05 pm
by abrist
You may have multiple nagios parent processes running. Try:
Code: Select all
service nagios stop
ps -aef | grep nagios.cfg
killall nagios
ps -aef | grep nagios.cfg
service nagios start
Re: Service Name Renamed Issue
Posted: Tue Jul 30, 2013 3:53 pm
by rdhall01
even after running theses commands, no additional nagios pids were found
service nagios stop
ps -aef | grep nagios.cfg
killall nagios
ps -aef | grep nagios.cfg
service nagios start
same result as before
Re: Service Name Renamed Issue
Posted: Tue Jul 30, 2013 4:55 pm
by yancy
rdhall01,
Can you rollback to a previous version of the config and then delete and re-add with the same name.
http://xx.xx.xx./nagiosxi/admin/ > Config Snapshots
Thanks,
-Yancy
Re: Service Name Renamed Issue
Posted: Wed Jul 31, 2013 9:08 am
by rdhall01
I cant roll back other changes were made besides these 4 hosts / services that are in question. Any other ways to remove this?
Re: Service Name Renamed Issue
Posted: Wed Jul 31, 2013 9:57 am
by scottwilkerson
Can you open a ticket by emailing
[email protected] and attach your latest configuration snapshot and reference this forum thread
Thanks