Service Name Renamed Issue
Service Name Renamed Issue
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
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
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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Service Name Renamed Issue
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
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:
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.
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/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: Service Name Renamed Issue
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
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
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 startFormer 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: Service Name Renamed Issue
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
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
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
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
I cant roll back other changes were made besides these 4 hosts / services that are in question. Any other ways to remove this?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Service Name Renamed Issue
Can you open a ticket by emailing [email protected] and attach your latest configuration snapshot and reference this forum thread
Thanks
Thanks