Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetBulk trying pull wrong oid #714

Open
msiriwardena opened this issue Dec 14, 2021 · 1 comment
Open

GetBulk trying pull wrong oid #714

msiriwardena opened this issue Dec 14, 2021 · 1 comment

Comments

@msiriwardena
Copy link

msiriwardena commented Dec 14, 2021

Host OS : Centos 7
uname -a
3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

snmp_exporter version: 0.20.0

What device/snmpwalk OID are you using
Cisco Router cbQosCMDropPkt64 oid walk

What did you do that produced an error?

cisco_qos_mib:
walk:

  • 1.3.6.1.4.1.9.9.166.1.15.1.1.14
    metrics:
  • name: cbQosCMDropPkt64
    oid: 1.3.6.1.4.1.9.9.166.1.15.1.1.14
    type: counter
    help: The 64 bits counter of dropped pkts per class as the result of all features
    that can produce drops (e.g., police, random detect, etc.). - 1.3.6.1.4.1.9.9.166.1.15.1.1.14
    indexes:
    • labelname: cbQosPolicyIndex
      type: gauge
    • labelname: cbQosObjectsIndex
      type: gauge

What did you expect to see?
Expected to see a output similar to this
cbQosCMDropPkt64{cbQosObjectsIndex="100795393",cbQosPolicyIndex="1702656533"} 0
cbQosCMDropPkt64{cbQosObjectsIndex="1040624398",cbQosPolicyIndex="1993659833"} 0

What did you see instead?
An error has occurred while serving metrics:

error collecting metric Desc{fqName: "snmp_error", help: "Error scraping target", constLabels: {}, variableLabels: []}: error walking target x.x.x.x: OID not increasing: .1.3.6.1.4.1.9.9.166.1.15.1.1.14.-412432636.65536

Packet capture of the walk
01:16:11.684308 IP XXXXXX.56163 > 10.24.17.24.snmp: C="YYYYYY" GetBulk(34) N=0 M=10 E:cisco.9.166.1.15.1.1.14
01:16:11.687673 IP 10.24.17.24.snmp > XXXXXX.56163: C="YYYYYY" GetResponse(269) E:cisco.9.166.1.15.1.1.14.82.65536=0 E:cisco.9.166.1.15.1.1.14.82.131072=0 E:cisco.9.166.1.15.1.1.14.82.196608=0 E:cisco.9.166.1.15.1.1.14.82.262144=0 E:cisco.9.166.1.15.1.1.14.82.327680=0 E:cisco.9.166.1.15.1.1.14.82.393216=22381 E:cisco.9.166.1.15.1.1.14.82.458752=0 E:cisco.9.166.1.15.1.1.14.400.65536=0 E:cisco.9.166.1.15.1.1.14.400.131072=0 E:cisco.9.166.1.15.1.1.14.400.196608=0

01:16:11.687942 IP XXXXXX.56163 > 10.24.17.24.snmp: C="YYYYYY" GetBulk(39) N=0 M=10 E:cisco.9.166.1.15.1.1.14.400.196608
01:16:11.691214 IP 10.24.17.24.snmp > XXXXXX.56163: C="YYYYYY" GetResponse(276) E:cisco.9.166.1.15.1.1.14.400.262144=0 E:cisco.9.166.1.15.1.1.14.400.327680=0 E:cisco.9.166.1.15.1.1.14.400.393216=0 E:cisco.9.166.1.15.1.1.14.400.458752=0 E:cisco.9.166.1.15.1.1.14.400.524288=0 E:cisco.9.166.1.15.1.1.14.402.65536=0 E:cisco.9.166.1.15.1.1.14.402.131072=0 E:cisco.9.166.1.15.1.1.14.402.196608=0 E:cisco.9.166.1.15.1.1.14.402.262144=0 E:cisco.9.166.1.15.1.1.14.402.327680=0

01:16:11.691452 IP XXXXXX.56163 > 10.24.17.24.snmp: C="YYYYYY" GetBulk(39) N=0 M=10 E:cisco.9.166.1.15.1.1.14.402.327680
01:16:11.694949 IP 10.24.17.24.snmp > XXXXXX.56163: C="YYYYYY" GetResponse(276) E:cisco.9.166.1.15.1.1.14.402.393216=0 E:cisco.9.166.1.15.1.1.14.402.458752=0 E:cisco.9.166.1.15.1.1.14.402.524288=0 E:cisco.9.166.1.15.1.1.14.416.65536=0 E:cisco.9.166.1.15.1.1.14.416.131072=0 E:cisco.9.166.1.15.1.1.14.416.196608=0 E:cisco.9.166.1.15.1.1.14.416.262144=0 E:cisco.9.166.1.15.1.1.14.416.327680=0 E:cisco.9.166.1.15.1.1.14.416.393216=0 E:cisco.9.166.1.15.1.1.14.416.458752=0

01:16:11.695213 IP XXXXXX.56163 > 10.24.17.24.snmp: C="YYYYYY" GetBulk(39) N=0 M=10 E:cisco.9.166.1.15.1.1.14.416.458752
01:16:11.699216 IP 10.24.17.24.snmp > XXXXXX.56163: C="YYYYYY" GetResponse(279) E:cisco.9.166.1.15.1.1.14.416.524288=0 E:cisco.9.166.1.15.1.1.14.418.65536=0 E:cisco.9.166.1.15.1.1.14.418.131072=0 E:cisco.9.166.1.15.1.1.14.418.196608=0 E:cisco.9.166.1.15.1.1.14.418.262144=0 E:cisco.9.166.1.15.1.1.14.418.327680=0 E:cisco.9.166.1.15.1.1.14.418.393216=0 E:cisco.9.166.1.15.1.1.14.418.458752=0 E:cisco.9.166.1.15.1.1.14.418.524288=0 E:cisco.9.166.1.15.1.1.14.3882534660.65536=0

01:16:11.699475 IP XXXXXX.56163 > 10.24.17.24.snmp: C="YYYYYY" GetBulk(37) N=0 M=10 E:cisco.9.166.1.15.1.1.14.65536
01:16:11.702937 IP 10.24.17.24.snmp > XXXXXX.56163: C="YYYYYY" GetResponse(306) E:cisco.9.166.1.15.1.1.14.3882534660.65536=0 E:cisco.9.166.1.15.1.1.14.3882534660.131072=0 E:cisco.9.166.1.15.1.1.14.3882534660.196608=0 E:cisco.9.166.1.15.1.1.14.3882534660.262144=0 E:cisco.9.166.1.15.1.1.14.3882534660.327680=0 E:cisco.9.166.1.15.1.1.14.3882534660.393216=0 E:cisco.9.166.1.15.1.1.14.3882534660.458752=0 E:cisco.9.166.1.15.1.1.14.3882534676.65536=0 E:cisco.9.166.1.15.1.1.14.3882534676.131072=0 E:cisco.9.166.1.15.1.1.14.3882534676.196608=0

Last bulk get request should be send for cisco.9.166.1.15.1.1.14.3882534660.65536 but it send for cisco.9.166.1.15.1.1.14.65536.

@msiriwardena
Copy link
Author

Main has a fix for this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant