Page 1 of 1

Auto history data pruning is possible on nagios?

Posted: Fri Jan 25, 2013 5:15 am
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

Re: Auto history data pruning is possible on nagios?

Posted: Fri Jan 25, 2013 10:36 am
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

Re: Auto history data pruning is possible on nagios?

Posted: Fri Jan 25, 2013 10:37 am
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.

Re: Auto history data pruning is possible on nagios?

Posted: Mon Jan 28, 2013 6:11 am
by luca2013
Ok great...tanks to all!!