Thanks for your reply. When I issued: snmptrapd -c /etc/snmptrapd.conf -d -f -Lo
Nothing happened, what's more strange is the second time I issue this command, the snmptrapd may crash.... -----Original Message----- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of ext Dave Shield Sent: Monday, November 30, 2009 7:26 PM To: Lv, Bo (EXT-Other - CN/Hangzhou) Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: Trap handler not called when snmptrapd receive a trap 2009/11/20 Lv, Bo (EXT-Other - CN/Hangzhou) <bo.lv....@nsn.com>: > linux:/var/log # cat /etc/snmptrapd.conf > traphandle .1.3.6.1.6.3.1.1.5.3 /tmp/tt > > /tmp/tt is a bash script which will echo a hello. What happens if you try traphandle .1.3.6.1.6.3.1.1.5.3 /bin/bash /tmp/tt ? > snmptrapd -c /etc/snmptrapd.conf -d -f -Lo > 2009-11-18 12:40:26 NET-SNMP version 5.1 Started. Note that the 5.1.x line is *VERY* old and is no longer supported. (and 5.1 is a very early release on that line) Dave ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders