Hi,
I am currently porting my own monitoring tool using net-snmp from a Fedora8 to a Fedora19 system. This system processes traps send by network equipment (Cisco). My snmptrapd.conf looks like : # Example configuration file for snmptrapd # # No traps are handled by default, you must edit this file! # # -- JMJ 2013-07--17 format1 %A;%W;%v\n format2 %B %02.2l/%02.2m/%y %02.2h:%02.2j:%02.2k %N %q %P %W deV2 %b %v \n authCommunity log,execute,net ********** traphandle default /usr/bin/perl /opt/Jmon-0.0/bin/JmonTH.pl -debug # -- # traphandle SNMPv2-MIB::coldStart /usr/bin/bin/my_great_script cold The trap received by my traps handler, on Fedora 19 are no longer "pure" numerical, but looks like : SNMPv2-SMI::enterprises.9.9.215.2.0.1, when the trap handler expect pure numerical OIDs, as well as the my "private" trapd config file : # EVENT Mac-Notification .1.3.6.1.4.1.9.9.215.2.0.1 "Status Events" Inform FORMAT Cisco Trap - MAC Notification $1 SDESC This notification is generated when there is enough MAC address information to fully occupy a maximum size SNMP trap message. This notification is also generated when there is at least one MAC address changed or removed and the amount of time elapsed from the previous notification is greater than the maximum wait time denoted by cmnNotificationInterval object. If there are more MAC addresses information than can fit into one cmmHistTrapContent object, then multiple notifications will be generated. EDESC # I expected that giving a fake name to the MIBs directory would force the snmptrapd daemon to return only numerical OIDs ( I renamed /usr/share/snmp/mibs into /usr/share/snmp/mobs). That done, the passed trap becomes : iso.3.6.1.4.1.9.9.215.2.0.1, still not pure numerical. I modified my trap handler to substitute "iso" by ".1", and everything works fine. My question : is there a way to configure the snmptrapd daemon in order to force it to pass only numerical OIDs to the trap handler. ( I already tried to add the line outputOption -On in the trapd.conf file, without succes. Thanks Best regards JM
<<inline: image002.gif>>
------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users