Auto history data pruning is possible on nagios?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
luca2013
Posts: 2
Joined: Fri Jan 25, 2013 5:09 am

Auto history data pruning is possible on nagios?

Post by luca2013 »

Hi all,
i'm a new nagios user and i'm planning to install it on our IT Systems.
As in the object, my question is if is possible set an automatic table cleaning of data into DB after (for example) 3 mounth...so disk space for DB is alvays under control.
For example, i want that every day an automatic job cancel all data older than 3 mounth...is possible?
Thanks all
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Auto history data pruning is possible on nagios?

Post by slansing »

It may be possible to alter the cron which prunes the database, I will get that information for you. You can also run a database repair to keep the tables clean:

http://assets.nagios.com/downloads/nagi ... tabase.pdf
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Auto history data pruning is possible on nagios?

Post by mguthrie »

Is this for Nagios XI or Nagios Core?

If you're using Nagios XI, yes. You can adjust the retention times for data from the Admin->Performance Settings->Databse(tab).

For Nagios Core / ndoutils, you can adjust the pruning times in ndo2db.cfg.
luca2013
Posts: 2
Joined: Fri Jan 25, 2013 5:09 am

Re: Auto history data pruning is possible on nagios?

Post by luca2013 »

Ok great...tanks to all!!
Locked