How to reduce size for the file "/var/lib/mysql/snmptt/snmp"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
arista-nagios
Posts: 11
Joined: Fri Sep 21, 2018 12:58 am

How to reduce size for the file "/var/lib/mysql/snmptt/snmp"

Post by arista-nagios »

Hello,

As we are observing the large size for the file "/var/lib/mysql/snmptt/snmptt.MYD" around 124 GiB, please help us to instruct how to reduce its size:

[root@Spectraguard snmptt]# du -sh /var/lib/mysql/snmptt/snmptt.MYD
124G /var/lib/mysql/snmptt/snmptt.MYD

Thanks,
Bharat Lalwani
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: How to reduce size for the file "/var/lib/mysql/snmptt/s

Post by mbellerue »

What version of Nagios XI is this? To my knowledge, XI doesn't use an snmptt database. By default it just logs to a log file.
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!
arista-nagios
Posts: 11
Joined: Fri Sep 21, 2018 12:58 am

Re: How to reduce size for the file "/var/lib/mysql/snmptt/s

Post by arista-nagios »

Hello,

Currently installed version is 5.5.9.

A new Nagios XI update is available.
5.6.8 was released on November 5th, 2019.

Visit www.nagios.com to obtain the latest update.

Latest Available Version: 5.6.8
Installed Version: 5.5.9
Last Update Check: 2019-11-18 16:00:01

so can we go ahead to remove this file?

Thanks,
Bharat Lalwani
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to reduce size for the file "/var/lib/mysql/snmptt/s

Post by lmiltchev »

We do not use that db in Nagios XI. If you installed something else, that uses it, you would need to figure out how to deal with it. Ask your System Administrator to find out what could be using this db. In any case, I would recommend truncating the db, install of deleting the file, just to be on the safe side. If you find out that is is "save" to remote the file, then you can do it, but for the time being, I suggest that you do a bit of a research to find out what's using that db, maybe an old snmp trap interface, etc.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked