Quick Question

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Quick Question

Post by cwscribner »

If I want to delete a huge batch of devices and services do I:

a) Delete all corresponding config files

OR

b) Delete them via the interface

Is there a reason to use one method over the other?

Edit: Thanks! That's all I needed!
Last edited by cwscribner on Wed Feb 08, 2012 1:54 pm, edited 1 time in total.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Quick Question

Post by scottwilkerson »

cwscribner wrote:If I want to delete a huge batch of devices and services do I:

a) Delete all corresponding config files

OR

b) Delete them via the interface
If they were created in the interface they need to be deleted in the interface, but if you have files in the /usr/local/nagios/etc/static they would need to be deleted from the config files.
cwscribner wrote: Is there a reason to use one method over the other?
Yes, if you delete the cfg files directly (not including those in /usr/local/nagios/etc/static ) they will just reappear the next time you Apply configuration. The info is stores in the nagiosql database until it is removed through the interface, and every time you apply the configuration successfully, all of the cfg files (again excluding those in /usr/local/nagios/etc/static ) are re-written using the information in the database.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Quick Question

Post by lmiltchev »

I would suggest deleting them through the Core Config Manager even though it may seem like more work to you. It is safer and you will be warned if there are some dependencies. You can always click on the "Information" button and find out if the deletion is possible for this particular host/service. Please, review our documentation on the topic:

http://assets.nagios.com/downloads/nagi ... gement.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked