Force snmptrapd to log only v2c traps
- by dare2be
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?