[ZBX-1609] dynamic indexes in SNMP don't work if searched values contain hex string Created: 2009 Dec 23  Updated: 2017 May 30  Resolved: 2012 Jan 16

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: 1.8
Fix Version/s: 1.8.11, 1.9.9 (beta)

Type: Incident report Priority: Major
Reporter: Vytautas Assignee: dimir
Resolution: Fixed Votes: 5
Labels: snmp, snmpdynamicindex
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

fedora12, zabbix1.8, net-snmp-5.4.2.1-19.fc12.i686


Issue Links:
Duplicate
is duplicated by ZBX-3084 Dynamical indexes only work with OID ... Closed

 Description   

This works:
IF-MIB::ifInOctets["index","IF-MIB::ifDescr","eth0.4"]

But this doesn't work:
IF-MIB::ifInOctets["index","IF-MIB::ifPhysAddress","0:d0:cf:6:3:77"]

1433:20091223:183623.215 Item [10.1.1.1:IF-MIB::ifInOctets["index","ifPhysAddress","0:d0:cf:6:3:77"]] error: Cannot find index [IF-MIB::ifPhysAddress] of the OID [IF-MIB::ifInOctets["index","IF-MIB::ifPhysAddress","0:d0:cf:6:3:77"]]: NOT FOUND: IF-MIB::ifPhysAddress[0:d0:cf:6:3:77]

[root@backup ~]# snmpwalk -v 2c -c aaa 10.1.1.1 IF-MIB::ifInOctets
IF-MIB::ifInOctets.1 = Counter32: 259247
IF-MIB::ifInOctets.2 = Counter32: 0
IF-MIB::ifInOctets.3 = Counter32: 0
IF-MIB::ifInOctets.4 = Counter32: 0
IF-MIB::ifInOctets.5 = Counter32: 0
IF-MIB::ifInOctets.6 = Counter32: 2489979454
IF-MIB::ifInOctets.7 = Counter32: 2557924516
IF-MIB::ifInOctets.8 = Counter32: 0
IF-MIB::ifInOctets.9 = Counter32: 0
IF-MIB::ifInOctets.10 = Counter32: 0
IF-MIB::ifInOctets.11 = Counter32: 3889132176
IF-MIB::ifInOctets.12 = Counter32: 18118273
IF-MIB::ifInOctets.13 = Counter32: 1768038893
IF-MIB::ifInOctets.14 = Counter32: 2109895140

[root@backup ~]# snmpwalk -v 2c -c aaa 10.1.1.1 IF-MIB::ifPhysAddress
IF-MIB::ifPhysAddress.1 = STRING:
IF-MIB::ifPhysAddress.2 = STRING:
IF-MIB::ifPhysAddress.3 = STRING:
IF-MIB::ifPhysAddress.4 = STRING:
IF-MIB::ifPhysAddress.5 = STRING:
IF-MIB::ifPhysAddress.6 = STRING: 0:d0:cf:6:3:73
IF-MIB::ifPhysAddress.7 = STRING: 0:d0:cf:6:3:74
IF-MIB::ifPhysAddress.8 = STRING:
IF-MIB::ifPhysAddress.9 = STRING:
IF-MIB::ifPhysAddress.10 = STRING:
IF-MIB::ifPhysAddress.11 = STRING: 0:d0:cf:6:3:73
IF-MIB::ifPhysAddress.12 = STRING: 0:d0:cf:6:3:77
IF-MIB::ifPhysAddress.13 = STRING: 0:d0:cf:6:3:75
IF-MIB::ifPhysAddress.14 = STRING: 0:d0:cf:6:3:76

[root@backup ~]# snmpwalk -v 2c -c aaa -O0 10.1.1.1 IF-MIB::ifDescr
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: teql0
IF-MIB::ifDescr.3 = STRING: tunl0
IF-MIB::ifDescr.4 = STRING: gre0
IF-MIB::ifDescr.5 = STRING: sit0
IF-MIB::ifDescr.6 = STRING: eth0
IF-MIB::ifDescr.7 = STRING: eth1
IF-MIB::ifDescr.8 = STRING: ipsec0
IF-MIB::ifDescr.9 = STRING: ipsec1
IF-MIB::ifDescr.10 = STRING: mast0
IF-MIB::ifDescr.11 = STRING: eth0.1
IF-MIB::ifDescr.12 = STRING: eth0.4
IF-MIB::ifDescr.13 = STRING: eth0.2
IF-MIB::ifDescr.14 = STRING: eth0.3



 Comments   
Comment by Rene Babel [ 2011 Oct 07 ]

Is there any chance we get a fix in 1.8?
I have the same problem, when trying to monitor disk drives in a hp proliant server.

Environment
Debian Linux 6.0.2 (squeeze - current stable)
net-snmp 5.4.3
Zabbix 1.8.8 compiled from source using zabbix proxy

7435:20111007:114844.624 Item [myserver:cpqDrvStatus1] error: Cannot find index [.1.3.6.1.4.1.232.3.2.5.1.1.5.0] of the OID [.1.3.6.1.4.1.232.3.2.5.1.1.6.0["index",".1.3.6.1.4.1.232.3.2.5.1.1.5.0","1"]]: NOT FOUND: .1.3.6.1.4.1.232.3.2.5.1.1.5.0[1]

This command lists the slots, where drives are inserted
snmpwalk -c putyoursnmpcommunityhere -v 2c myserver .1.3.6.1.4.1.232.3.2.5.1.1.5.0
iso.3.6.1.4.1.232.3.2.5.1.1.5.0.0 = INTEGER: 1
iso.3.6.1.4.1.232.3.2.5.1.1.5.0.1 = INTEGER: 2
iso.3.6.1.4.1.232.3.2.5.1.1.5.0.2 = INTEGER: 3
iso.3.6.1.4.1.232.3.2.5.1.1.5.0.3 = INTEGER: 4

And this one lists the actual status of the drives
snmpwalk -c putyoursnmpcommunityhere -v 2c myserver .1.3.6.1.4.1.232.3.2.5.1.1.6.0
iso.3.6.1.4.1.232.3.2.5.1.1.6.0.0 = INTEGER: 2
iso.3.6.1.4.1.232.3.2.5.1.1.6.0.1 = INTEGER: 2
iso.3.6.1.4.1.232.3.2.5.1.1.6.0.2 = INTEGER: 2
iso.3.6.1.4.1.232.3.2.5.1.1.6.0.3 = INTEGER: 2

Comment by richlv [ 2011 Oct 17 ]

most development effort is focused on 2.0 now, so chances of any significant changes appearing in 1.8 are very small

Comment by dimir [ 2012 Jan 09 ]

Added support for non-string value types.

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-1609

Comment by dimir [ 2012 Jan 09 ]

Change "Fix Version/s".

Comment by Alexander Vladishev [ 2012 Jan 16 ]

Successfully tested!

Comment by dimir [ 2012 Jan 16 ]

Fixed in pre-1.8.11 r24798, pre-1.9.9 r24803.

Comment by dimir [ 2012 Jan 16 ]

Reopening to add 1.9.9 to "Fix Version/s".

Comment by dimir [ 2012 Jan 16 ]

Add 1.9.9 to "Fix Version/s".

Generated at Wed Apr 24 21:35:36 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.