Config Manager problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cwireless
Posts: 66
Joined: Sat Feb 05, 2011 11:37 pm

Config Manager problem

Post by cwireless »

Hi. I will explain my problem.

I deleted a .cfg from services folder. Then I restarted my services nagios. When I see in Config Manager, the .cfg deleted is still working.

I dont know , If I must to restart something more.

PD: I need to delete .cfg from putty-commands , because is a wrong archive.

Regards.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Config Manager problem

Post by abrist »

In XI, config files are written out from the database. So if the service is still defined in the CCM in XI, deleting the cfg will be temporary as it will be regenerated when the nagios process is restarted.
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.
cwireless
Posts: 66
Joined: Sat Feb 05, 2011 11:37 pm

Re: Config Manager problem

Post by cwireless »

I will do it. I will let You to Know.
cwireless
Posts: 66
Joined: Sat Feb 05, 2011 11:37 pm

Re: Config Manager problem

Post by cwireless »

HI. I deleted .cfg and restarted services nagios.

I was waiting for a change inCCM in XI and it does not work.

I am deleting the wrong file.

Code: Select all

/usr/local/nagios/etc/services
cwp-jfr-dwr .cfg    
 cwp-jfr-dwr.cfg 

Code: Select all

rm "cwp-jfr-dwr .cfg"
service nagios stop
killall -9 nagios
service ndo2db stop
service ndo2db start
service nagios start
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Config Manager problem

Post by slansing »

What Abrist is suggesting is that you check your core config manager in the Xi interface and delete the service's first from there, if they no longer exist then you can delete them from the command line.
cwireless
Posts: 66
Joined: Sat Feb 05, 2011 11:37 pm

Re: Config Manager problem

Post by cwireless »

I found the problem.

This happens when You did a duplicate service from CCM, and You made a bad edit in Config Name*

Regards.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Config Manager problem

Post by lmiltchev »

Great. I am locking this post as it is resolved.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked