Cleaning up the database

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tribbink
Posts: 32
Joined: Tue Mar 06, 2012 8:53 am

Cleaning up the database

Post by tribbink »

Hi All,

I want to clear up all my historical data in the NagiosXI 2012R1.0 database, except Hosts, Services, Hostgroups an Servicegroups etc.
Is there a way to delete them, so i start witch all my hosts and services, and start over collecting data.

Best Regards,
Ton
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Cleaning up the database

Post by scottwilkerson »

Which type of historical data?

THESE ARE NOT REVERSIBLE

Delete Performance data

Code: Select all

rm -rf /usr/local/nagios/share/perfdata/*
Other historical data can be remove by lowering the times in Admin -> Performance Settings -> Database tab

Finally, historical availabity and logs can be removed by

Code: Select all

rm -f  /usr/local/nagios/var/archives/*
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tribbink
Posts: 32
Joined: Tue Mar 06, 2012 8:53 am

Re: Cleaning up the database

Post by tribbink »

Thanks, i cleared the data. But it not filling with new performance data anymore.
Locked