Den 30-10-2013 19:04, Чугунов Дмитрий skrev:
> 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.

When you use trapsink snmpd will first convert the trap to v1 format and 
then send it. snmptt will then probably convert it back to v2 format and 
that will add the .0. that you see.

Try using --trap2sink on your commandline.

/Niels

-- 
Niels Baggesen -- @home -- Århus -- Denmark -- ni...@baggesen.net
The purpose of computing is insight, not numbers  --  R W Hamming

------------------------------------------------------------------------------
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