Page 1 of 1

CCM deletes files without clicking "Apply Configuration"

Posted: Fri Feb 07, 2014 2:53 pm
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.

Re: CCM deletes files without clicking "Apply Configuration"

Posted: Fri Feb 07, 2014 3:11 pm
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?

Re: CCM deletes files without clicking "Apply Configuration"

Posted: Fri Feb 07, 2014 3:28 pm
by niebais
I was able to reproduce this with 2012r2.8c (Nagios CCM 1.03).

Re: CCM deletes files without clicking "Apply Configuration"

Posted: Fri Feb 07, 2014 3:53 pm
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.

Re: CCM deletes files without clicking "Apply Configuration"

Posted: Fri Feb 07, 2014 4:32 pm
by niebais
Thanks!

Re: CCM deletes files without clicking "Apply Configuration"

Posted: Mon Feb 10, 2014 10:35 am
by slansing
Still looking into this.