Problem with snmptrap

"Eduardo Saavedra Cea" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello.
I want to receive traps with snmptrapd, but It doesn't work.
This demon dont print anything to standar out neither to syslog when I
send the trap whit sendtrap:
snmptrap -v 1 -c zweicom_notav 192.168.1.168:162
.1.3.6.1.4.1.19408.2.1 localhost 6 303 .1.3.6.1.4.1.19408.1.1.2.0

I start with:
condor:~ # snmptrapd -m all -f -Lo -C -c /etc/snmp/snmpd.conf
NET-SNMP version 5.4

I know the traps arrive because I try strace:
condor:~ # strace snmptrapd -m all -f -Lo -C -c /etc/snmp/snmpd.conf
.....

recvmsg(7, {msg_name(16)={sa_family=AF_INET, sin_port=htons(1079),
sin_addr=inet_addr("192.168.1.168")},
msg_iov(1)=[{"02\2\1\0\4\rzweicom_notav\244\36\6\n+\6\1\4\1\201\227P"...,
65536}], msg_controllen=24, {cmsg_len=24, cmsg_level=SOL_IP,
cmsg_type=, ...}, msg_flags=0}, 0) = 52
open("/etc/hosts.allow", O_RDONLY)      = 8
fstat64(8, {st_mode=S_IFREG|0644, st_size=2639, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7ee4000
read(8, "# /etc/hosts.allow\n# See \'man tc"..., 4096) = 2639
read(8, "", 4096)                       = 0
close(8)                                = 0
munmap(0xb7ee4000, 4096)                = 0
open("/etc/hosts.deny", O_RDONLY)       = 8
fstat64(8, {st_mode=S_IFREG|0644, st_size=149, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7ee4000
read(8, "# /etc/hosts.deny\n# See \'man tcp"..., 4096) = 149
read(8, "", 4096)                       = 0
close(8)                                = 0
munmap(0xb7ee4000, 4096)                = 0
brk(0x800ae000)                         = 0x800ae000
gettimeofday({1184347136, 897238}, NULL) = 0
gettimeofday({1184347136, 897302}, NULL) = 0
gettimeofday({1184347136, 897358}, NULL) = 0

Thanks a lot.

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