I'm having difficulty monitoring items with SNMP. I have a Zabbix 1.6.2 install from Fedora's development branch and I'm trying to monitor some APC UPSs.
When I configure the SNMP items according to
http://www.zabbix.com/wiki/doku.php?id=contrib:snmp
I get this in the logs:
And in the interface I see that the items are all listed as "Timeout while connecting to [10.5.83.23:161]".
I've placed the APC mib in /usr/share/snmp/mibs on the zabbix server. From the same box I can run the Nagios APC SNMP monitoring perl script, snmpwalk, and snmpget for that oid and name and get results, for instance:
When looking at the tcpdump output for UDP traffic on port 161, I can watch the queries go out and get replies back. The query being issued by Zabbix is similar to the ones issued by snmpwalk and by the Nagios check script:
snmpwalk tcpdump (remember, this works):
zabbix tcpdump:
So it's asking the right questions on the wire, getting seemingly valid responses from the device, but Zabbix's showing the item as a timeout? Any help would be appreciated.
When I configure the SNMP items according to
http://www.zabbix.com/wiki/doku.php?id=contrib:snmp
I get this in the logs:
Code:
24742:20090304:132821 In int_in_list(list:,value:10052) 24742:20090304:132821 End int_in_list(ret:FAIL) 24742:20090304:132821 In get_value(key:upsAdvOutputLoad) 24742:20090304:132821 In get_value_snmp(key:upsAdvOutputLoad, oid:.1.3.6.1.4.1.318.1.1.1.4.2.3.0) 24742:20090304:132821 Standard processing 24742:20090304:132821 In snmp_normalize(oid:.1.3.6.1.4.1.318.1.1.1.4.2.3.0) 24742:20090304:132821 End of snmp_normalize(result:.1.3.6.1.4.1.318.1.1.1.4.2.3.0) 24742:20090304:132821 In get_snmp(oid:.1.3.6.1.4.1.318.1.1.1.4.2.3.0) 24742:20090304:132821 SNMP [[email protected]:161:161] 24742:20090304:132826 Timeout while answering request 24742:20090304:132827 Status send [2] 24742:20090304:132827 Item [ups1r1-m006:upsAdvOutputLoad] error: Timeout while connecting to [10.5.83.23:161] 24742:20090304:132827 End get_value() 24742:20090304:132827 Parameter [upsAdvOutputLoad] is not supported by agent on host [ups1r1-m006] Old status [0] 24742:20090304:132827 In zabbix_log()
I've placed the APC mib in /usr/share/snmp/mibs on the zabbix server. From the same box I can run the Nagios APC SNMP monitoring perl script, snmpwalk, and snmpget for that oid and name and get results, for instance:
Code:
$ snmpwalk -v 1 -c public -m ALL ups1r1-m006 PowerNet-MIB::upsAdvOutputLoad.0 PowerNet-MIB::upsAdvOutputLoad.0 = Gauge32: 11 $ snmpwalk -v 1 -c public -m ALL ups1r1-m006 .1.3.6.1.4.1.318.1.1.1.4.2.3.0 PowerNet-MIB::upsAdvOutputLoad.0 = Gauge32: 11
snmpwalk tcpdump (remember, this works):
Code:
13:39:40.209809 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto: UDP (17), length: 77) zabbix.32849 > ups1r1-m006.snmp: [bad udp cksum badd!] { SNMPv1 { GetNextRequest(34) R=1463898493 E:318.1.1.1.4.2.3.0 } }
13:39:40.236000 IP (tos 0x0, ttl 64, id 39525, offset 0, flags [none], proto: UDP (17), length: 86) ups1r1-m006.snmp > zabbix.32849: [no cksum] { SNMPv1 { GetResponse(39) R=1463898493 E:318.1.1.1.4.2.4[|snmp] } }
13:39:40.236111 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto: UDP (17), length: 77) zabbix.32849 > ups1r1-m006.snmp: [bad udp cksum bbdc!] { SNMPv1 { GetRequest(34) R=1463898494 E:318.1.1.1.4.2.3.0 } }
13:39:40.263520 IP (tos 0x0, ttl 64, id 39526, offset 0, flags [none], proto: UDP (17), length: 86) ups1r1-m006.snmp > zabbix.32849: [no cksum] { SNMPv1 { GetResponse(39) R=1463898494 E:318.1.1.1.4.2.3[|snmp] } }
Code:
11:49:36.884714 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto: UDP (17), length: 77) int-old.flmnh.ufl.edu.47794 > ups1r1-m006.flmnh.ufl.edu.snmp: [udp sum ok] { SNMPv1 { GetRequest(34) R=343084436 E:318.1.1.1.4.2.3.0 } }
11:49:36.906781 IP (tos 0x0, ttl 64, id 38746, offset 0, flags [none], proto: UDP (17), length: 86) ups1r1-m006.flmnh.ufl.edu.snmp > int-old.flmnh.ufl.edu.47794: [no cksum] { SNMPv1 { GetResponse(39) R=343084436 E:318.1.1.1.4.2.3[|snmp] } }
Comment