View Full Version : FC5 - Changes to snmptrapd

31st March 2006, 04:37 PM
With the upgrade to FC5, net-snmp version 5.3 is now in use. With this new version, snmptrapd does not function "out of the box" as it now requires snmptrapd.conf with specific access control information.

According to the man page (5) for snmptrapd.conf:
"Previously, snmptrapd would accept all incoming notifications, and log them
automatically (even if no explicit configuration was provided). Starting
with release 5.3, access control checks will be applied to incoming notifi-
cations. If snmptrapd is run without a suitable configuration file (or
equivalent access control settings), then such traps WILL NOT be processed."

Further, it appears that the user must manually create the needed config files. Here is an extract from /etc/init.d/snmptrapd:
# config: /etc/snmp/snmptrapd.conf
# config: /usr/share/snmp/snmptrapd.conf

[ -e /etc/snmp/snmptrapd.options ] && . /etc/snmp/snmptrapd.options

NONE of the files listed above exist.

There is quite a bit of detail provided in the "access control" section of the man page. Unfortunately, it is not obviously apparent to me what I need to do in order to accept snmp traps from my Linksys router.

I was using linksysmon to parse and then log the incoming traps. However, I suspended its use in order to find out what was happening with snmptrapd.

Can someone please point me to an example snmptrapd.conf file? It seems to me that such a file should have been part of the package to start with.