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
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?
xi_meta.MYD so big
-
safuanmansor
- Posts: 59
- Joined: Mon Jul 16, 2018 9:16 pm
xi_meta.MYD so big
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
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.
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!
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
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
Great!safuanmansor wrote:Thanks benjaminsmith for the clarification
Locking thread