Page 1 of 1

SNMP Trap Interface Help

Posted: Wed May 20, 2020 3:54 am
by veeravamsi
Hi Team,

We are receiving 100s or Traps for specific devices , so is there any option to
1. Suppress - Discard Receiving Traps for Specific Servers/Devices
2. Any option to archive or delete Traps received ( Based on Server or Past 7 days ) ?

Thank you !

--Vamsi

Re: SNMP Trap Interface Help

Posted: Wed May 20, 2020 10:31 am
by cdienger
Use the MATCH option to apply traps only if specific conditions are met. MATCH can be used in the Advanced section of the trap definition. More info on it can be found at http://snmptt.sourceforge.net/docs/snmp ... CONF-MATCH.

90 days worth of traps are saved by default but you can set this lower under Admin > System Config > Performance Settings > Databases > Nagios XI Database > Max SNMP Trap Age.

Re: SNMP Trap Interface Help

Posted: Thu May 21, 2020 7:04 am
by veeravamsi
Thanks . Is there CLI command to delete these traps meaning ( Can i use those MATCH conditions to find the Traps coming for Specific Sound ) and then delete them ?

Re: SNMP Trap Interface Help

Posted: Thu May 21, 2020 4:46 pm
by cdienger
The traps are stored in a database. You can clear them by running:

Code: Select all

 echo "truncate table xi_cmp_trapdata_log;" | mysql -uroot -pnagiosxi -Dnagiosxi

Re: SNMP Trap Interface Help

Posted: Tue May 26, 2020 8:56 am
by veeravamsi
Thank you !!!

Re: SNMP Trap Interface Help

Posted: Tue May 26, 2020 1:49 pm
by scottwilkerson
veeravamsi wrote:Thank you !!!
Glad we could help

Locking thread