Page 1 of 1

deactivate or delete

Posted: Tue Jul 02, 2013 3:52 pm
by nyoung
I am trying to clean up some service objects in nagios xi. When I deactivate an object, I no longer see the .cfg in the services directory. Isn't this the same thing that happens when I delete? what happens in the background to the .cfg files (are they temporarily stored somewhere until reactivation?)

Re: deactivate or delete

Posted: Tue Jul 02, 2013 4:03 pm
by slansing
They are still in the Mysql database, however the flat config file is no longer present in it's original location. When deleted, the flat config file is removed and so is the database entry.

Re: deactivate or delete

Posted: Tue Jul 02, 2013 4:20 pm
by nyoung
thank you. what is the best practice?

what if I were to delete the flat file on the server. How would this be reflected in mysql?

Re: deactivate or delete

Posted: Tue Jul 02, 2013 4:35 pm
by slansing
Well deleting the flat file in a database driven environment "nagios xi" the database will repopulate it when you use it to verify the environment's integrity "apply configuration." So you should remove the definitions from the CCM panel and that way, it will remove the configuration files as well as the database entries.

Re: deactivate or delete

Posted: Tue Jul 02, 2013 5:10 pm
by nyoung
thank you for the explanation.