Ad Widget

Collapse

SNMPv2 Discover not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • then3rd
    Junior Member
    • Jan 2015
    • 4

    #1

    SNMPv2 Discover not working

    Hello!

    I am having trouble with a discovery rule. I'm running server version 2.4.6 inside of a docker container. I can manually add a snmp host, and they work as expected. However, discovery seems to be timing out.

    The discovery rule:
    ip range: 172.30.16.1-254
    check type: snmpv2 agent
    snmp community: supersecret
    snmp oid: 1.3.6.1.2.1.1.5 (sysName)
    Device uniqueness criteria: ip
    enabled, of course.

    I attached strace to the discovery process:
    saslauth 23870 0.1 0.0 169276 5132 ? S Sep30 1:59 zabbix_server: discoverer #1 [processed 1 rules in 1117.764787 sec, performing discovery]

    I've attached two text files containing the relevant bits of the trace when it tires connecting to 172.30.16.59 (live) and 172.30.16.60 (non-existent) but the output is identical. I'm pretty clueless why the discovery can't connect while a manually added host has no trouble.. Any ideas? Maybe something I've overlooked?

    Thanks!


    Code:
    # diff -u0 host1.txt host2.txt                                                                                                                                                                                                                 :(
    --- host1.txt	2015-10-01 14:08:58.912430743 -0600
    +++ host2.txt	2015-10-01 14:08:56.182439757 -0600
    @@ -5,3 +5,3 @@
    -sendmsg(7, {msg_name(16)={sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.16.59")}, msg_iov(1)=[{"0.\2\1\1\4\fbpi42480snmp\240\33\2\4R\366`*\2\1\0\2\1"..., 48}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_IP, cmsg_type=, ...}, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL) = 48
    -select(8, [7], NULL, NULL, {29, 999988}) = 1 (in [7], left {29, 997657})
    -recvmsg(7, {msg_name(16)={sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.16.59")}, msg_iov(1)=[{"0.\2\1\1\4\fbpi42480snmp\242\33\2\4R\366`*\2\1\0\2\1"..., 65536}], msg_controllen=0, msg_flags=0}, MSG_DONTWAIT) = 48
    +sendmsg(7, {msg_name(16)={sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.16.60")}, msg_iov(1)=[{"0.\2\1\1\4\fbpi42480snmp\240\33\2\4R\366`+\2\1\0\2\1"..., 48}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_IP, cmsg_type=, ...}, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL) = 48
    +select(8, [7], NULL, NULL, {29, 999990}) = 1 (in [7], left {29, 988123})
    +recvmsg(7, {msg_name(16)={sa_family=AF_INET, sin_port=htons(161), sin_addr=inet_addr("172.30.16.60")}, msg_iov(1)=[{"0.\2\1\1\4\fbpi42480snmp\242\33\2\4R\366`+\2\1\0\2\1"..., 65536}], msg_controllen=0, msg_flags=0}, MSG_DONTWAIT) = 48
    @@ -22 +22 @@
    -write(6, "\10\0\0\0\3commit;", 12)      = 12
    +write(6, "\10\0\0\0\3commit;", 12)	= 12
    @@ -31 +31 @@
    -write(6, "\10\0\0\0\3commit;", 12)      = 12
    +write(6, "\10\0\0\0\3commit;", 12)	= 12
    Attached Files
Working...