CCM deletes files without clicking "Apply Configuration"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

CCM deletes files without clicking "Apply Configuration"

Post by niebais »

We found out today that CCM will delete configuration files if you just disable a service, without applying the configuration. I had added a new service and added it to a config that several other services use (we group multiple services into single config files). I didn't want it to go out inadvertently so I marked the service as not "Active" and didn't click "Apply Configuration". Then sometime later, Nagios was reloaded from the command line. It wasn't until later that we realized we were missing services that were active and were in the same config file. After doing some research I saw in the audit log that the config file was deleted and was confused because the configuration hadn't been applied. I started retracing my steps and found that just marking the service as not "Active" nukes the config file. Yes, you might say that you shouldn't reload nagios outside of CCM, but I don't think that's realistic.

I noticed that when you make one service in a config file as not "Active" that all of the other services in the same config file will then show "Sync Missed". I used to think that this was some bug in CCM, but now I know it means that your file was nuked.

I would love to see CCM not delete files until "Apply Configuration" is clicked.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: CCM deletes files without clicking "Apply Configuration"

Post by sreinhardt »

I would agree, this should not happen until apply config is performed. Just to verify, what version of XI and CCM are you using?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: CCM deletes files without clicking "Apply Configuration"

Post by niebais »

I was able to reproduce this with 2012r2.8c (Nagios CCM 1.03).
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: CCM deletes files without clicking "Apply Configuration"

Post by sreinhardt »

Actually that seems quite similar to another bug recently brought to our attention. I will take a look and see if we can confirm the same fix will resolve it, or if another patch is in order.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: CCM deletes files without clicking "Apply Configuration"

Post by niebais »

Thanks!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: CCM deletes files without clicking "Apply Configuration"

Post by slansing »

Still looking into this.
Locked