Sending Duplicate Traps

"Eduardo Saavedra Cea" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello.
I'm using an agentx to send traps through the snmpd daemon. My problem
is that It send duplicate traps for each request from my agentx. I saw
this whit the strace tool. You can see this in the log below.
I don't understand the reason. I include the follows lines in the
snmpd.conf  configuration file:
trapsink 192.168.1.10 my_comunity
master agentx


condor:~ # cat strace_snmpd.info| grep recv
recv(10, "\1\f\0\0\7\0\0\0\0\0\0\0f\35\3622\360\1\0\0C\0\0\0\4\2"...,
65536, 0) = 516
recv(10, "\1\f\0\0\7\0\0\0\0\0\0\0g\35\3622\370\0\0\0C\0\0\0\4\2"...,
65536, 0) = 268

condor:~ # cat strace_snmpd.info| grep send
sendmsg(7, {msg_name(16)={sa_family=AF_INET, sin_port=htons(162),
sin_addr=inet_addr("192.168.1.10")}, msg_iov(1)=[{"0\202\1
\2\1\0\4\rzweicom_notav\244\202\1\n\6\n+\6\1\4"..., 292}],
msg_controllen=24, {cmsg_len=24, cmsg_level=SOL_IP, cmsg_type=, ...},
msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL) = 292
sendmsg(8, {msg_name(16)={sa_family=AF_INET, sin_port=htons(162),
sin_addr=inet_addr("192.168.1.10")}, msg_iov(1)=[{"0\202\1
\2\1\0\4\rzweicom_notav\244\202\1\n\6\n+\6\1\4"..., 292}],
msg_controllen=24, {cmsg_len=24, cmsg_level=SOL_IP, cmsg_type=, ...},
msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL) = 292
send(10, "\1\22\0\0\7\0\0\0\0\0\0\0f\35\3622\370\1\0\0\263@\1\0\0"...,
524, 0) = 524
sendmsg(7, {msg_name(16)={sa_family=AF_INET, sin_port=htons(162),
sin_addr=inet_addr("192.168.1.10")},
msg_iov(1)=[{"0\201\220\2\1\0\4\rzweicom_notav\244|\6\n+\6\1\4\1\201"...,
147}], msg_controllen=24, {cmsg_len=24, cmsg_level=SOL_IP, cmsg_type=,
...}, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL) = 147
sendmsg(8, {msg_name(16)={sa_family=AF_INET, sin_port=htons(162),
sin_addr=inet_addr("192.168.1.10")},
msg_iov(1)=[{"0\201\220\2\1\0\4\rzweicom_notav\244|\6\n+\6\1\4\1\201"...,
147}], msg_controllen=24, {cmsg_len=24, cmsg_level=SOL_IP, cmsg_type=,
...}, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL) = 147
send(10, "\1\22\0\0\7\0\0\0\0\0\0\0g\35\3622\0\1\0\0\277@\1\0\0\0"...,
276, 0) = 276

Thanks very much

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.