Hello,
@sandeepatil. Yes, 85gb is a lot. There are two things you need to do to reduce the size of these files:
1)run this command to truncate MYSQL database:
Code: Select all
echo "truncate table xi_events; truncate table xi_meta; truncate table xi_eventqueue;" | mysql -u root -pnagiosxi nagiosxi
2)Only after step 1 is done, go to
and run:
(this might take a while)
3) Check the size of the files in /var/lib/mysql/nagiosxi/ one more time.
As far as the reason to why this happened. Could be a few things. If your Nagios server was shut down incorrectly at some point in the past, one of the database tables might've gotten corrupted. This often causes the database to blow with time.
If Nagios XI was upgraded recently I'd suspect that MySQL schema was not updated causing database issues. So if you did upgrade Nagios recently let me know, I'll walk you through replacing the schema.
Cron Jobs that perform the DB maintenance may not be working. Please run the following command and post the output:
Also, did you move the database from Postgres to Mysql recently by chance?