Hello.

I've tried to send trap using example notification.c. It works fine. It sends 
trap to .1.3.6.1.4.1.8072.2.3.0.1. But if I change this OID to 
.1.3.6.1.4.1.8072.2.3.1 (zero is removed) snmptt also say that trap 
.1.3.6.1.4.1.8072.2.3.0.1 (with zero) is accepted. Why?

my snmptrapd.conf file:
        disableAuthorization yes
        traphandle default /usr/sbin/snmptthandler
        outputOption n

snmpd was started as
        /usr/sbin/snmpd -Lo -C --rwcommunity=public --master=agentx 
--agentXSocket=tcp:localhost:1705 udp:10161 --trapsink="localhost public" 
--agentXTimeout=10
without superuser permissions.

It should be noticed that
        snmptrap -v 2c -c public 127.0.0.1 "" .1.3.6.1.4.1.8072.2.3.1
sends trap to .1.3.6.1.4.1.8072.2.3.1, but send_v2trap don't. I can't 
understand why.


P.S. I decided to remove 0 because I have to send trap to ...1.4.3, but it is 
accepted as ...1.4.0.3. How can I send it to ...1.4.3.

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to