Using IP Tables to control SNMP trap rate

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
arnab.roy
Posts: 354
Joined: Sat Apr 30, 2011 10:24 am

Using IP Tables to control SNMP trap rate

Post by arnab.roy »

Hi All,

I am having strange issue with one of our remote XI server the site which it monitors is sending huge amount of SNMP Traps into the system regarding various which we really do not need to do anything..However as these traps are getting processed at realtime its taking a hit on the system performance...I am wondering if we can use ip tables to somehow smooth out the bursty snmp trap traffic or atleast the processing of it..any thoughts would be welcome....


Cheers
Arnab
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Using IP Tables to control SNMP trap rate

Post by scottwilkerson »

You may be able to do something like this

Code: Select all

iptables -A INPUT -p tcp --dport 162 -m limit --limit 6/hour -j ACCEPT
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
arnab.roy
Posts: 354
Joined: Sat Apr 30, 2011 10:24 am

Re: Using IP Tables to control SNMP trap rate

Post by arnab.roy »

HI Scott,

Thanks, I think its sort of working will have to leave it on and see if that actually causes the important stuff to get dropped :)....

Cheers
Arnab
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Using IP Tables to control SNMP trap rate

Post by scottwilkerson »

This is going to set a limit period, it doesn't know the difference of what is important and what is not....
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked