On Thu, Mar 27, 2014 at 11:11 PM, Niels Baggesen
<n...@users.sourceforge.net>wrote:

>
> Could you try running snmptrapd with some debugging enabled, so we might
> get a hint as to where the information is lost? Try adding this to your
> snmptrapd invocation: -Dsocket,udp,netsnmp,domain,UDP,transport,tdomain
> and tell us what it logs


Here is the output. I've anonymized the IP address.
I'm not sure if you can get much out of it. As I wrote earlier, it seems
like the recvfrom() call is the culprit, returning 0.0.0.0.
As you can see, we're using the directive
snmpTrapdAddr 10.0.1.10:1162


BR,
Joel

[root@majoren]> /usr/opt/net-snmp/sbin/snmptrapd -Cc
/home/nisse/snmptrapd.conf -Lo
-Dsocket,udp,netsnmp,domain,UDP,transport,tdomain
registered debug token socket, 1
registered debug token udp, 1
registered debug token netsnmp, 1
registered debug token domain, 1
registered debug token UDP, 1
registered debug token transport, 1
registered debug token tdomain, 1
netsnmp_ds_toggle_boolean: Setting APP:2 = 4/True
netsnmp_ds_toggle_boolean: Setting APP:6 = 68/True
netsnmp_ds_set_boolean: Setting LIB:11 = 1/True
netsnmp_ds_set_string: Setting LIB:6 = "snmptrapd"
transport_callback: initialized master listening on 1
tdomain: netsnmp_tdomain_init() called
tdomain: domain_list -> { .1.3.6.1.6.1.1, "udp" } -> {
.1.3.6.1.2.1.100.1.5, "tcp" } -> { .1.3.6.1.4.1.8072.3.3.7, "alias" } -> {
.1.3.6.1.2.1.100.1.13, "unix" } -> [NIL]
netsnmp_ds_set_int: Setting LIB:6 = 16
netsnmp_ds_set_int: Setting LIB:15 = 5
netsnmp_ds_set_boolean: Setting LIB:20 = 1/True
netsnmp_ds_set_boolean: Setting LIB:26 = 1/True
/home/nisse/snmptrapd.conf: line 21: Warning: Unknown token:
doNotRetainNotificationLogs.
netsnmp_ds_set_int: Setting LIB:4 = 4
netsnmp_udp_parse_security: <"public", 0.0.0.0/0.0.0.0> => "comm1"
netsnmp_unix_parse_security: <"public", ""> => "comm1"
netsnmp_ds_handle_config: handling disableAuthorization
netsnmp_ds_handle_config: setting: token=disableAuthorization, type=1,
id=APP, which=17
netsnmp_ds_set_boolean: Setting APP:17 = 1/True
netsnmp_ds_handle_config: bool: 1
/home/nisse/snmptrapd.conf: line 81: Warning: Unknown token: mibdirs.
netsnmp_ds_set_boolean: Setting LIB:27 = 1/True
tdomain: tdomain_transport_full("snmptrap", "10.0.1.10:1162", 1, "[NIL]",
"[NIL]")
tdomain: Found no domain from specifier "10.0.1.10"
tdomain: Use application default domains "udp" "udp6"
tdomain: Found domain "udp" from specifier "udp"
tdomain: trying domain "udp" address "10.0.1.10:1162" default address ":162"
netsnmp_sockaddr_in: addr 9fffffffffffe860, inpeername "10.0.1.10:1162",
default_target ":162"
netsnmp_sockaddr_in: addr 9fffffffffffe860, inpeername ":162",
default_target "[NIL]"
netsnmp_sockaddr_in: check user service 162
netsnmp_sockaddr_in: return { AF_INET, 0.0.0.0:162 }
netsnmp_sockaddr_in: check user service 1162
netsnmp_sockaddr_in: check destination 10.0.1.10
netsnmp_sockaddr_in: hostname (resolved okay)
netsnmp_sockaddr_in: return { AF_INET, 10.0.1.10:1162 }
netsnmp_udpbase: open local UDP: [10.0.1.10]:1162->[0.0.0.0]:0
UDPBase: openned socket 5 as local=1
socket:buffer: Requested server send buffer is 0
socket:buffer: server send buffer not valid or not specified; using OS
default(0)
socket:buffer: Requested server receive buffer is 0
socket:buffer: server receive buffer not valid or not specified; using OS
default(0)
NET-SNMP version 5.7.3.pre3
netsnmp_udp: recvfrom fd 5 got 68 bytes (from UDP: [0.0.0.0]:0->[0.0.0.0]:0)
transport:recv: 68 bytes from UDP: [0.0.0.0]:0->[0.0.0.0]:0
2014-03-28 09:59:50 UDP: [0.0.0.0]:0->[0.0.0.0]:0 PDU:[TRAP2, SNMP v2c,
community public] VARS: .1.3.6.1.2.1.1.3.0 = Timeticks: (242851)
0:40:28.51|#|.1.3.6.1.6.3.1.1.4.1.0 = OID: .1.3.6.1.6.3.1.1.5.1EOR
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to