Service Name Renamed Issue

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

Service Name Renamed Issue

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Service Name Renamed Issue

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
rdhall01
Posts: 87
Joined: Wed Nov 09, 2011 9:53 am

Re: Service Name Renamed Issue

Post by rdhall01 »

I was trying to hurry up and went into the service thru ccm and just renamed the service and hit apply config
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Service Name Renamed Issue

Post 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.
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: Service Name Renamed Issue

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Service Name Renamed Issue

Post 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
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: Service Name Renamed Issue

Post 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
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Service Name Renamed Issue

Post 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
rdhall01
Posts: 87
Joined: Wed Nov 09, 2011 9:53 am

Re: Service Name Renamed Issue

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Service Name Renamed Issue

Post by scottwilkerson »

Can you open a ticket by emailing [email protected] and attach your latest configuration snapshot and reference this forum thread

Thanks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked