xi_meta.MYD so big

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
safuanmansor
Posts: 59
Joined: Mon Jul 16, 2018 9:16 pm

xi_meta.MYD so big

Post by safuanmansor »

Hi Nagios support.

We have a situation where 1 of our nagios server (NagiosXI A) the disk for /var/lib/mysql are full hense the db is stop and cannot start.
the size of xi_meta.MYD are so big compare to other DB
unnamed.png
db file size.png
Upon checking i found this thread that suggest to truncate the db.

https://support.nagios.com/forum/viewto ... =6&t=46220

I have another system (NagiosXI B) that monitor 1400 host with 15000 services.
The nagiosxi database (NagiosXI B) are way too small compare to nagiosxi (NagiosXI A)

What actually stored in this nagiosxi database and if i were to truncate the database. what will i be missing?
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: xi_meta.MYD so big

Post by benjaminsmith »

Hello,

The xi_meta table is an intermediate table that Nagios temporarily uses when it is running so it should be cleaned out automatically and not get very large over time.

It should normally be optimized during the database maintenance jobs, so make sure all of the components are running green. Go to Admin > System Information > System Status to check.

Normally, we truncate the events, meta and eventqueue tables to resolve. You can run the following command to do this.

Code: Select all

echo "truncate table xi_events; truncate table xi_meta; truncate table xi_eventqueue;" | mysql -u root -pnagiosxi nagiosxi
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
safuanmansor
Posts: 59
Joined: Mon Jul 16, 2018 9:16 pm

Re: xi_meta.MYD so big

Post by safuanmansor »

Thanks benjaminsmith for the clarification
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: xi_meta.MYD so big

Post by scottwilkerson »

safuanmansor wrote:Thanks benjaminsmith for the clarification
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked