You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tree in question is enterprises.raritan.pdu2.measurements.measurementsOutlet.outletSensorMeasurementsTable (1.3.6.1.4.1.13742.6.5.4.3). When I use generator to walk the full tree it works fine.
The problem occurs when I try to use generator to walk only the subtree at measurementsOutletSensorValue.1.1 (that's pduId="1",outletId="1").
If this is a new device, please link to the MIB(s).
I expected to see a single entry at .raritan.walk, and nothing at .raritan.get. I expected this partly because snmpwalk treats the given OID as a subtree:
$ head -n4 snmp.yml
# WARNING: This file was auto-generated using snmp_exporter generator, manual changes will be lost.raritan: get: - 1.3.6.1.4.1.13742.6.5.4.3.1.4.1.9
And, when I try to use this snmp.yml in the exporter, it fails because this oid should be walked rather than get'd:
snmp_exporter version
Current main branch (3f0e656)
What device/snmpwalk OID are you using?
The tree in question is
enterprises.raritan.pdu2.measurements.measurementsOutlet.outletSensorMeasurementsTable
(1.3.6.1.4.1.13742.6.5.4.3
). When I usegenerator
to walk the full tree it works fine.The problem occurs when I try to use
generator
to walk only the subtree atmeasurementsOutletSensorValue.1.1
(that'spduId="1",outletId="1"
).If this is a new device, please link to the MIB(s).
http://support.raritan.com/px2/version-2.4.1/mibs/pdu2-mib-020400-39592.txt (last updated 2012-09-15). If that link dies, I am seeing the same behavior with a much newer MIB, too (last updated 2019-05-20), but I can't find that one online. I expect the one linked in #835 would work, too.
What did you do that produced an error?
What did you expect to see?
I expected to see a single entry at
.raritan.walk
, and nothing at.raritan.get
. I expected this partly becausesnmpwalk
treats the given OID as a subtree:What did you see instead?
And, when I try to use this snmp.yml in the exporter, it fails because this oid should be walked rather than get'd:
I presume that the bug lies somewhere near here: https://github.com/prometheus/snmp_exporter/blob/3f0e656c18/generator/tree.go#L292
The text was updated successfully, but these errors were encountered: