Log entries table is huge!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Log entries table is huge!

Post by BanditBBS »

I'm running out of disk space and I sort of found out why:

Code: Select all

817.5M  nagios_logentries.MYI
1.5G    nagios_externalcommands.MYD
1.8G    nagios_logentries.TMD
3.6G    nagios_logentries.MYD
Look how large those 4 MySQL files are. Any way to make those smaller? I went to pefromance settings yesterday and set Max Log Entries from 90 to 60, but that made no change in the filesize. Should that have? Do I need to run the repair script?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Log entries table is huge!

Post by lmiltchev »

You will need to truncate these tables then run the repair on the database. Example:

Code: Select all

mysql -u ndoutils -pn@gweb nagios -e 'TRUNCATE TABLE nagios_logentries'
Note: You will lose the historical data that was stored in these tables.

For more info, read the following document:

http://assets.nagios.com/downloads/nagi ... tabase.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Log entries table is huge!

Post by BanditBBS »

Lock her up!

Thanks
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Locked