I've got a problem with too many SNMP traps. I don't know yet how I got them, but I need a way to tell Nagios XI it's okay to let them go. The SNMP Trap Interface page is showing records 1-5 of 15888165.
It's been related to a couple issues. /var/lib/mysql/nagiosxi/xi_cmp_trapdata_log.ibd is 23GB, which looks to be a lot more than I need to keep. I would actually be happy to delete all of the existing logged traps to get things started, but I can't figure out how to do that in a safe manner.
I've also got a couple files like this in /var/lib/mysql/nagiosxi:
Code: Select all
-rw-rw---- 1 mysql mysql 9.3K Nov 12 07:05 #sql-1e4f5_143.frm
-rw-rw---- 1 mysql mysql 992M Nov 12 14:28 #sql-1e4f5_143.ibd
-rw-rw---- 1 mysql mysql 9.3K Nov 12 06:52 #sql-820_15ea10a.frm
-rw-rw---- 1 mysql mysql 21G Nov 12 07:04 #sql-820_15ea10a.ibd
-rw-rw---- 1 mysql mysql 9.3K Nov 12 16:58 #sql-9305_ba38.frm
-rw-rw---- 1 mysql mysql 19G Nov 12 17:13 #sql-9305_ba38.ibdSo, what I would like to know is:
1) How can I safely get rid of the logged SNMP traps?
2) Can I configure Nagios XI to limit the number of traps it keeps to prevent this happening in the future?
3) Can I delete those temporary table files without causing orphan table errors? Or, is there a way to fix orphan tables after I delete the files?
Thanks.