SNMP Trap Interface Help

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
veeravamsi
Posts: 146
Joined: Wed Jan 23, 2019 3:35 am

SNMP Trap Interface Help

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: SNMP Trap Interface Help

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
veeravamsi
Posts: 146
Joined: Wed Jan 23, 2019 3:35 am

Re: SNMP Trap Interface Help

Post 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 ?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: SNMP Trap Interface Help

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
veeravamsi
Posts: 146
Joined: Wed Jan 23, 2019 3:35 am

Re: SNMP Trap Interface Help

Post by veeravamsi »

Thank you !!!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: SNMP Trap Interface Help

Post by scottwilkerson »

veeravamsi wrote:Thank you !!!
Glad we could help

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked