deactivate or delete

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nyoung
Posts: 24
Joined: Thu Mar 28, 2013 3:08 pm

deactivate or delete

Post 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?)
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: deactivate or delete

Post 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.
nyoung
Posts: 24
Joined: Thu Mar 28, 2013 3:08 pm

Re: deactivate or delete

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: deactivate or delete

Post 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.
nyoung
Posts: 24
Joined: Thu Mar 28, 2013 3:08 pm

Re: deactivate or delete

Post by nyoung »

thank you for the explanation.
Locked