-
Notifications
You must be signed in to change notification settings - Fork 641
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
Lookups returning empty strings on Checkpoint MIB #1073
Comments
Can you share the snmp.yml output as well? |
Orriginal post updated with the |
That is extremely strange. Would you mind testing with v0.24.1? I wonder if this is related to #782. |
I was developing with v0.24.1 and tested with v0.25 just to be sure. Same behavior. Adding this MIB make |
Yea, I have never seen lookup strings fail like that. Maybe try all the way back to 0.23.0 and 0.22.0? There have been a few misc changes to the lookups over the last few versions. |
I just tested v0.23, Same behavior! PS: Forget what I told previously about the format version |
v0.22 with the old format, Same behavior! oO Debug logs :
|
That does appear to be either a device bug (an additional octet) or a MIB bug (missing 2-dimension index). Right now, the listed single value index does not match what the snmpwalk returns. That's why the lookup result is empty. |
As a workaround, you could try manually modifying the index in the snmp.yml. checkpoint_lookups_test:
walk:
- 1.3.6.1.4.1.2620.1.6.7.8.2.1.2
- 1.3.6.1.4.1.2620.1.6.7.8.2.1.6
metrics:
- name: fanSpeedSensorName
oid: 1.3.6.1.4.1.2620.1.6.7.8.2.1.2
type: DisplayString
help: Sensor name - 1.3.6.1.4.1.2620.1.6.7.8.2.1.2
indexes:
- labelname: fanSpeedSensorIndex
type: gauge
- labelname: fanSpeedSensorCheckpointLol
type: gauge
lookups:
- labels:
- fanSpeedSensorIndex
labelname: fanSpeedSensorName
oid: 1.3.6.1.4.1.2620.1.6.7.8.2.1.2
type: DisplayString
- name: fanSpeedSensorStatus
oid: 1.3.6.1.4.1.2620.1.6.7.8.2.1.6
type: gauge
help: Sensor is out of range TRUE(1), FALSE(0), READING ERROR(2) - 1.3.6.1.4.1.2620.1.6.7.8.2.1.6
indexes:
- labelname: fanSpeedSensorIndex
type: gauge
- labelname: fanSpeedSensorCheckpointLol
type: gauge
lookups:
- labels:
- fanSpeedSensorIndex
- fanSpeedSensorCheckpointLol
labelname: fanSpeedSensorName
oid: 1.3.6.1.4.1.2620.1.6.7.8.2.1.2
type: DisplayString
max_repetitions: 25
retries: 3
timeout: 5s |
This MIB is indeed a mess, the Your workaround works, I get this:
Any way to implement this in the |
You would need to modify the MIB to add an additional index field. That would allow the generator to handle it correctly. I would contact the vendor if you have a support contract to see if they know about this problem. |
I never edted a MIB, I'll probably stick to recording rules or editing the |
Host operating system: output of
uname -a
Windows 2019
snmp_exporter version: output of
snmp_exporter -version
What device/snmpwalk OID are you using?
Checkpoint 6200
chkpnt.mib
R81.20If this is a new device, please link to the MIB(s).
MIB available here
What did you do that produced an error?
Two modules in
generator.yml
:output in
snmp.yml
:What did you expect to see?
What did you see instead?
checkpoint_nolookups_test
return:checkpoint_lookups_test
return:No matter what I tested I cannot find a way to match
fanSpeedSensorName
ontempertureSensorIndex
and thefanSpeedSensorName
end up empty. I never faced this on any mibs.Other lookups like
ifIndex
>ifName
works just fine, but every lookup under 1.3.6.1.4.1.2620.* fail.Debug log show no issues on walking and the
nolookups
version cant get the value just fine.The text was updated successfully, but these errors were encountered: