Thanks. It works Niels Baggesen <ni...@baggesen.net> писал(а) в своём письме Thu, 31 Oct 2013 01:42:17 +0400:
> 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 ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders