CCM deletes files without clicking "Apply Configuration"
Posted: Fri Feb 07, 2014 2:53 pm
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.
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.