Force snmptrapd to log only v2c traps

Posted by dare2be on Server Fault See other posts from Server Fault or by dare2be
Published on 2010-04-28T14:40:28Z Indexed on 2010/04/28 14:44 UTC
Read the original article Hit count: 239

Filed under:
|

Hello, I am in the middle of writing new network management software for my University. However, I need to implement a quickie solution to handle specific traps.

Right now, my snmptrapd is configured to accept any traps, i.e.:

# /etc/snmp/snmptrapd.conf
authCommunity log publicString
logOption f /var/log/snmptrapd.log
format1 ""
format2 "%02.2h:%02.2j %b %N\n"

What I basically want to do is to log ONLY v2c traps. I intended to do it with setting the format for v1 traps to null (format 1 "") but snmptrapd keeps sending "" to its log.

Does anybody know a workaround for this?

© Server Fault or respective owner

Related posts about snmpd

Related posts about snmp-traps