Open jsfrerot opened 1 year ago
For questions/help/support please use our community channels. There are more people available to potentially respond to your request and the whole community can benefit from the answers provided.
debug log from snmp_exporter
ts=2023-03-14T17:42:42.802Z caller=main.go:97 level=debug module=fmt target=10.2.20.11 msg="Starting scrape"
ts=2023-03-14T17:42:42.805Z caller=collector.go:218 level=debug module=fmt target=10.2.20.11 msg="Walking subtree" oid=1.3.6.1.4.1.40989
ts=2023-03-14T17:42:42.836Z caller=collector.go:231 level=debug module=fmt target=10.2.20.11 msg="Walk of subtree completed" oid=1.3.6.1.4.1.40989 duration_seconds=31.054007ms
ts=2023-03-14T17:42:42.839Z caller=main.go:108 level=debug module=fmt target=10.2.20.11 msg="Finished scrape" duration_seconds=0.035128211
Here the "fmt" section of the snmp.yml
walk:
- 1.3.6.1.4.1.40989
metrics:
- name: vCardState
oid: 1.3.6.1.4.1.40989.10.16.1.2.1
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.1
enum_values:
0: "off"
1: "on"
- name: vDeviceType
oid: 1.3.6.1.4.1.40989.10.16.1.2.2
type: OctetString
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.2
- name: vDeviceDescription
oid: 1.3.6.1.4.1.40989.10.16.1.2.3
type: OctetString
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.3
- name: vSoftwareVerion
oid: 1.3.6.1.4.1.40989.10.16.1.2.4
type: OctetString
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.4
- name: vHardwareVerion
oid: 1.3.6.1.4.1.40989.10.16.1.2.5
type: OctetString
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.5
- name: vSerialNumber
oid: 1.3.6.1.4.1.40989.10.16.1.2.6
type: OctetString
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.6
- name: vFactoryDate
oid: 1.3.6.1.4.1.40989.10.16.1.2.7
type: OctetString
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.7
- name: vSFPA1State
oid: 1.3.6.1.4.1.40989.10.16.1.2.11.1
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.1
enum_values:
0: "off"
1: "on"
- name: vSFPA1WorkMode
oid: 1.3.6.1.4.1.40989.10.16.1.2.11.2
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.2
enum_values:
1: normal
3: loopback
- name: vSFPA1TxPowerControl
oid: 1.3.6.1.4.1.40989.10.16.1.2.11.3
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.3
enum_values:
0: "off"
1: "on"
2: auto
- name: vSFPA1TxPower
oid: 1.3.6.1.4.1.40989.10.16.1.2.11.4
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.4
- name: vSFPA1RxPower
oid: 1.3.6.1.4.1.40989.10.16.1.2.11.5
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.5
- name: vSFPA1ModeWave
oid: 1.3.6.1.4.1.40989.10.16.1.2.11.6
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.6
- name: vSFPA1ModeTransmissionDistance
oid: 1.3.6.1.4.1.40989.10.16.1.2.11.7
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.7
- name: vSFPA1ModeTransmissionRate
oid: 1.3.6.1.4.1.40989.10.16.1.2.11.8
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.8
- name: vSFPA1ModeTemperature
oid: 1.3.6.1.4.1.40989.10.16.1.2.11.9
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.9
- name: vSFPA1TxPowerAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.11.10
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.10
enum_values:
0: alarm
1: normal
- name: vSFPA1RxPowerAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.11.11
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.11
enum_values:
0: alarm
1: normal
- name: vSFPA1ModeTemperatureAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.11.12
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.12
enum_values:
0: alarm
1: normal
- name: vSFPA1RxPowerThreshold
oid: 1.3.6.1.4.1.40989.10.16.1.2.11.13
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.13
- name: vSFPA2State
oid: 1.3.6.1.4.1.40989.10.16.1.2.12.1
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.1
enum_values:
0: "off"
1: "on"
- name: vSFPA2WorkMode
oid: 1.3.6.1.4.1.40989.10.16.1.2.12.2
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.2
enum_values:
1: normal
3: loopback
- name: vSFPA2TxPowerControl
oid: 1.3.6.1.4.1.40989.10.16.1.2.12.3
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.3
enum_values:
0: "off"
1: "on"
2: auto
- name: vSFPA2TxPower
oid: 1.3.6.1.4.1.40989.10.16.1.2.12.4
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.4
- name: vSFPA2RxPower
oid: 1.3.6.1.4.1.40989.10.16.1.2.12.5
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.5
- name: vSFPA2ModeWave
oid: 1.3.6.1.4.1.40989.10.16.1.2.12.6
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.6
- name: vSFPA2ModeTransmissionDistance
oid: 1.3.6.1.4.1.40989.10.16.1.2.12.7
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.7
- name: vSFPA2ModeTransmissionRate
oid: 1.3.6.1.4.1.40989.10.16.1.2.12.8
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.8
- name: vSFPA2ModeTemperature
oid: 1.3.6.1.4.1.40989.10.16.1.2.12.9
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.9
- name: vSFPA2TxPowerAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.12.10
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.10
enum_values:
0: alarm
1: normal
- name: vSFPA2RxPowerAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.12.11
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.11
enum_values:
0: alarm
1: normal
- name: vSFPA2ModeTemperatureAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.12.12
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.12
enum_values:
0: alarm
1: normal
- name: vSFPA2RxPowerThreshold
oid: 1.3.6.1.4.1.40989.10.16.1.2.12.13
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.13
- name: vSFPB1State
oid: 1.3.6.1.4.1.40989.10.16.1.2.13.1
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.13.1
enum_values:
0: "off"
1: "on"
- name: vSFPB1WorkMode
oid: 1.3.6.1.4.1.40989.10.16.1.2.13.2
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.13.2
enum_values:
1: normal
3: loopback
- name: vSFPB1TxPowerControl
oid: 1.3.6.1.4.1.40989.10.16.1.2.13.3
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.13.3
enum_values:
0: "off"
1: "on"
2: auto
- name: vSFPB1TxPower
oid: 1.3.6.1.4.1.40989.10.16.1.2.13.4
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.13.4
- name: vSFPB1RxPower
oid: 1.3.6.1.4.1.40989.10.16.1.2.13.5
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.13.5
- name: vSFPB1ModeWave
oid: 1.3.6.1.4.1.40989.10.16.1.2.13.6
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.13.6
- name: vSFPB1ModeTransmissionDistance
oid: 1.3.6.1.4.1.40989.10.16.1.2.13.7
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.13.7
- name: vSFPB1ModeTransmissionRate
oid: 1.3.6.1.4.1.40989.10.16.1.2.13.8
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.13.8
- name: vSFPB1ModeTemperature
oid: 1.3.6.1.4.1.40989.10.16.1.2.13.9
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.13.9
- name: vSFPB1TxPowerAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.13.10
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.13.10
enum_values:
0: alarm
1: normal
- name: vSFPB1RxPowerAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.13.11
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.13.11
enum_values:
0: alarm
1: normal
- name: vSFPB1ModeTemperatureAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.13.12
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.13.12
enum_values:
0: alarm
1: normal
- name: vSFPB1RxPowerThreshold
oid: 1.3.6.1.4.1.40989.10.16.1.2.13.13
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.13.13
- name: vSFPB2State
oid: 1.3.6.1.4.1.40989.10.16.1.2.14.1
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.14.1
enum_values:
0: "off"
1: "on"
- name: vSFPB2WorkMode
oid: 1.3.6.1.4.1.40989.10.16.1.2.14.2
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.14.2
enum_values:
1: normal
3: loopback
- name: vSFPB2TxPowerControl
oid: 1.3.6.1.4.1.40989.10.16.1.2.14.3
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.14.3
enum_values:
0: "off"
1: "on"
2: auto
- name: vSFPB2TxPower
oid: 1.3.6.1.4.1.40989.10.16.1.2.14.4
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.14.4
- name: vSFPB2RxPower
oid: 1.3.6.1.4.1.40989.10.16.1.2.14.5
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.14.5
- name: vSFPB2ModeWave
oid: 1.3.6.1.4.1.40989.10.16.1.2.14.6
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.14.6
- name: vSFPB2ModeTransmissionDistance
oid: 1.3.6.1.4.1.40989.10.16.1.2.14.7
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.14.7
- name: vSFPB2ModeTransmissionRate
oid: 1.3.6.1.4.1.40989.10.16.1.2.14.8
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.14.8
- name: vSFPB2ModeTemperature
oid: 1.3.6.1.4.1.40989.10.16.1.2.14.9
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.14.9
- name: vSFPB2TxPowerAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.14.10
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.14.10
enum_values:
0: alarm
1: normal
- name: vSFPB2RxPowerAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.14.11
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.14.11
enum_values:
0: alarm
1: normal
- name: vSFPB2ModeTemperatureAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.14.12
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.14.12
enum_values:
0: alarm
1: normal
- name: vSFPB2RxPowerThreshold
oid: 1.3.6.1.4.1.40989.10.16.1.2.14.13
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.14.13
- name: vSFPC1State
oid: 1.3.6.1.4.1.40989.10.16.1.2.15.1
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.15.1
enum_values:
0: "off"
1: "on"
- name: vSFPC1WorkMode
oid: 1.3.6.1.4.1.40989.10.16.1.2.15.2
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.15.2
enum_values:
1: normal
3: loopback
- name: vSFPC1TxPowerControl
oid: 1.3.6.1.4.1.40989.10.16.1.2.15.3
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.15.3
enum_values:
0: "off"
1: "on"
2: auto
- name: vSFPC1TxPower
oid: 1.3.6.1.4.1.40989.10.16.1.2.15.4
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.15.4
- name: vSFPC1RxPower
oid: 1.3.6.1.4.1.40989.10.16.1.2.15.5
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.15.5
- name: vSFPC1ModeWave
oid: 1.3.6.1.4.1.40989.10.16.1.2.15.6
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.15.6
- name: vSFPC1ModeTransmissionDistance
oid: 1.3.6.1.4.1.40989.10.16.1.2.15.7
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.15.7
- name: vSFPC1ModeTransmissionRate
oid: 1.3.6.1.4.1.40989.10.16.1.2.15.8
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.15.8
- name: vSFPC1ModeTemperature
oid: 1.3.6.1.4.1.40989.10.16.1.2.15.9
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.15.9
- name: vSFPC1TxPowerAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.15.10
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.15.10
enum_values:
0: alarm
1: normal
- name: vSFPC1RxPowerAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.15.11
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.15.11
enum_values:
0: alarm
1: normal
- name: vSFPC1ModeTemperatureAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.15.12
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.15.12
enum_values:
0: alarm
1: normal
- name: vSFPC1RxPowerThreshold
oid: 1.3.6.1.4.1.40989.10.16.1.2.15.13
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.15.13
- name: vSFPC2State
oid: 1.3.6.1.4.1.40989.10.16.1.2.16.1
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.16.1
enum_values:
0: "off"
1: "on"
- name: vSFPC2WorkMode
oid: 1.3.6.1.4.1.40989.10.16.1.2.16.2
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.16.2
enum_values:
1: normal
3: loopback
- name: vSFPC2TxPowerControl
oid: 1.3.6.1.4.1.40989.10.16.1.2.16.3
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.16.3
enum_values:
0: "off"
1: "on"
2: auto
- name: vSFPC2TxPower
oid: 1.3.6.1.4.1.40989.10.16.1.2.16.4
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.16.4
- name: vSFPC2RxPower
oid: 1.3.6.1.4.1.40989.10.16.1.2.16.5
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.16.5
- name: vSFPC2ModeWave
oid: 1.3.6.1.4.1.40989.10.16.1.2.16.6
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.16.6
- name: vSFPC2ModeTransmissionDistance
oid: 1.3.6.1.4.1.40989.10.16.1.2.16.7
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.16.7
- name: vSFPC2ModeTransmissionRate
oid: 1.3.6.1.4.1.40989.10.16.1.2.16.8
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.16.8
- name: vSFPC2ModeTemperature
oid: 1.3.6.1.4.1.40989.10.16.1.2.16.9
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.16.9
- name: vSFPC2TxPowerAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.16.10
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.16.10
enum_values:
0: alarm
1: normal
- name: vSFPC2RxPowerAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.16.11
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.16.11
enum_values:
0: alarm
1: normal
- name: vSFPC2ModeTemperatureAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.16.12
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.16.12
enum_values:
0: alarm
1: normal
- name: vSFPC2RxPowerThreshold
oid: 1.3.6.1.4.1.40989.10.16.1.2.16.13
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.16.13
- name: vSFPD1State
oid: 1.3.6.1.4.1.40989.10.16.1.2.17.1
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.17.1
enum_values:
0: "off"
1: "on"
- name: vSFPD1WorkMode
oid: 1.3.6.1.4.1.40989.10.16.1.2.17.2
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.17.2
enum_values:
1: normal
3: loopback
- name: vSFPD1TxPowerControl
oid: 1.3.6.1.4.1.40989.10.16.1.2.17.3
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.17.3
enum_values:
0: "off"
1: "on"
2: auto
- name: vSFPD1TxPower
oid: 1.3.6.1.4.1.40989.10.16.1.2.17.4
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.17.4
- name: vSFPD1RxPower
oid: 1.3.6.1.4.1.40989.10.16.1.2.17.5
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.17.5
- name: vSFPD1ModeWave
oid: 1.3.6.1.4.1.40989.10.16.1.2.17.6
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.17.6
- name: vSFPD1ModeTransmissionDistance
oid: 1.3.6.1.4.1.40989.10.16.1.2.17.7
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.17.7
- name: vSFPD1ModeTransmissionRate
oid: 1.3.6.1.4.1.40989.10.16.1.2.17.8
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.17.8
- name: vSFPD1ModeTemperature
oid: 1.3.6.1.4.1.40989.10.16.1.2.17.9
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.17.9
- name: vSFPD1TxPowerAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.17.10
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.17.10
enum_values:
0: alarm
1: normal
- name: vSFPD1RxPowerAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.17.11
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.17.11
enum_values:
0: alarm
1: normal
- name: vSFPD1ModeTemperatureAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.17.12
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.17.12
enum_values:
0: alarm
1: normal
- name: vSFPD1RxPowerThreshold
oid: 1.3.6.1.4.1.40989.10.16.1.2.17.13
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.17.13
- name: vSFPD2State
oid: 1.3.6.1.4.1.40989.10.16.1.2.18.1
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.18.1
enum_values:
0: "off"
1: "on"
- name: vSFPD2WorkMode
oid: 1.3.6.1.4.1.40989.10.16.1.2.18.2
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.18.2
enum_values:
1: normal
3: loopback
- name: vSFPD2TxPowerControl
oid: 1.3.6.1.4.1.40989.10.16.1.2.18.3
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.18.3
enum_values:
0: "off"
1: "on"
2: auto
- name: vSFPD2TxPower
oid: 1.3.6.1.4.1.40989.10.16.1.2.18.4
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.18.4
- name: vSFPD2RxPower
oid: 1.3.6.1.4.1.40989.10.16.1.2.18.5
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.18.5
- name: vSFPD2ModeWave
oid: 1.3.6.1.4.1.40989.10.16.1.2.18.6
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.18.6
- name: vSFPD2ModeTransmissionDistance
oid: 1.3.6.1.4.1.40989.10.16.1.2.18.7
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.18.7
- name: vSFPD2ModeTransmissionRate
oid: 1.3.6.1.4.1.40989.10.16.1.2.18.8
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.18.8
- name: vSFPD2ModeTemperature
oid: 1.3.6.1.4.1.40989.10.16.1.2.18.9
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.18.9
- name: vSFPD2TxPowerAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.18.10
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.18.10
enum_values:
0: alarm
1: normal
- name: vSFPD2RxPowerAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.18.11
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.18.11
enum_values:
0: alarm
1: normal
- name: vSFPD2ModeTemperatureAlarm
oid: 1.3.6.1.4.1.40989.10.16.1.2.18.12
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.18.12
enum_values:
0: alarm
1: normal
- name: vSFPD2RxPowerThreshold
oid: 1.3.6.1.4.1.40989.10.16.1.2.18.13
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.18.13
version: 1
This does seem like there may be an actual walk issue with SNMPv1 here. But it does seem like this is a device bug we may need to workaround in the upstream gosnmp library.
Have you tried reducing max_repetitions
to a lower value? (default 25)
I wonder if we should change the exporter default to 10 to match net-snmp.
Tried max_repetitions: 10 or 1 and didn't help.
@jsfrerot Can you try replacing 1.3.6.1.4.1.40989
with 1.3.6.1.4.1.40989.10
in your generator.yml, re-generate your config, and try again?
same result. tried with max_repetitions: 10 or 1 again.
smilint
spews out a ton of warnings for that MIB (or you can check it online at http://www.muonics.com/Tools/smicheck.php).
It's difficult to debug flaky snmp engines without access to the device, but you could also try experimenting a bit with appending a .0
or perhaps .1
suffix to the OID that you're asking snmp_exporter to walk.
(cf. http://www.net-snmp.org/wiki/index.php/FAQ:Applications_09)
Could you tcpdump
to get PCAP of both working & non-working?
NB: Be very careful in where and how you share the resulting files, and use a temporary community string, not your production one!
I have included both tcpdumps in the original post and I think I understand you want it to be in a file. Is there any particular tcpdump flags you want to have ?
@RichiH Here are the pcap files. snmpwalk.pcap.gz is the tcpdump from a working snmpwalk (snmpwalk -Cc -c public -v1 10.2.20.11 1.3.6.1.4.1.40989.10) snmp_exporter.pcap.gz is the tcpdump from the snmp_exporter using this url: http://yul-blackbox-001:9116/snmp?target=10.2.20.11&module=fmt with the following parameters: version: 1 max_repetitions: 10
Let me know if you need anything else. snmpwalk.pcap.gz snmp_exporter.pcap.gz
The key difference in the snmp_exporter capture is that it is trying to do a GET
on 1.3.6.1.4.1.40989.10, whereas snmpwalk is doing GETNEXT
.
The GET
fails because there is no instance at that exact OID. All of the objects in OAP-C1-OEO.mib are scalars (non-table), and to do a GET
, the instance subidentifier (.0
) must be included - as mentioned in the net-snmp FAQ entry that I previously posted.
As a last resort, list the objects that you want individually in your generator.yml, e.g.:
modules:
fmt:
version: 1
walk:
- vCardState
- vDeviceType
- ...
=> generate =>
# WARNING: This file was auto-generated using snmp_exporter generator, manual changes will be lost.
fmt:
get:
- 1.3.6.1.4.1.40989.10.16.1.2.1.0
- 1.3.6.1.4.1.40989.10.16.1.2.2.0
metrics:
- name: vCardState
oid: 1.3.6.1.4.1.40989.10.16.1.2.1
type: gauge
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.1
enum_values:
0: "off"
1: "on"
- name: vDeviceType
oid: 1.3.6.1.4.1.40989.10.16.1.2.2
type: OctetString
help: Description. - 1.3.6.1.4.1.40989.10.16.1.2.2
version: 1
Note how it produces a list of OIDs to get, with .0
subidentifier suffixes, compared to the original walk
fmt:
walk:
- 1.3.6.1.4.1.40989.10
@jsfrerot Out of curiosity, can you try an snmpwalk of 1.3.6.1.4.1.40989 without the -Cc
option? I suspect it will fail.
@dswarbrick you're right, snmpwalk doesn't work without the -Cc option:
[root@yul-blackbox-001 etc]# snmpwalk -c public -v1 10.2.20.11 1.3.6.1.4.1.40989.10
iso.3.6.1.2.1.1.1.0 = STRING: "GLCY SNMP"
Error: OID not increasing: iso.3.6.1.4.1.40989.10
>= iso.3.6.1.2.1.1.1.0
It's nearly 10 years since I wrote my last MIB, but I noticed that the first subidentifier after the "MG-SOFT Corporation" private enterprise number is 1.3.6.1.4.1.40989.10
. I'm a bit out of practice, but I'm pretty sure that is what is preventing the walk from 1.3.6.1.4.1.40989
succeeding. You need to start walking further down the tree where there are contiguous OIDs.
From what I can tell, the product is not actually made by MG-SOFT, which appears to just be a software house that specialises in SNMP MIB creation / browsing tools. The actual hardware is made by FS.COM, and they simply haven't filled in their company information or private enterprise number (assuming they have one).
Reading the SNMP section in their FMT quickstart guide really makes me wonder if they know what they are doing. They have different MIBs depending on which slot a module is plugged into. This really seems like they don't understand SNMP indexes. They even have spelling mistakes in the object names in the OAP-C1-OEO MIB, e.g. vSoftwareVerion
, vHardwareVerion
@jsfrerot Can you try snmpwalk -c public -v1 -On 10.2.20.11 1.3.6.1.4.1.40989.10.16.1.2
and see if you get the full list of objects as you do when using the -Cc
option? If so, you should be able to use that object ("oeo") as the starting point for a walk in your generator.yml. You might even be able to start a little higher up the tree, at 1.3.6.1.4.1.40989.10.16
("oap").
Failing that, you'll need a more verbose generator.yml which will walk the walk-able parts of the MIB, and get the remaining scalar objects.
modules:
fmt:
version: 1
walk:
- vCardState
- vDeviceType
- vDeviceDescription
- vSoftwareVerion
- vHardwareVerion
- vSerialNumber
- vFactoryDate
- vSFPA1
- vSFPA2
- vSFPB1
- vSFPB2
- vSFPC1
- vSFPC2
- vSFPD1
- vSFPD2
You might also want to implement some metric relabelling config in Prometheus to fix the misspelled metric names.
PS: This might make it a little clearer to see the MIB represented hierarchically.
@RichiH here is the output as requested
[jsfrerot@jsfrerot-lnx ~]$ snmpwalk -c public -v1 -On 10.2.20.11 1.3.6.1.4.1.40989.10.16.1.2
.1.3.6.1.2.1.1.1.0 = STRING: "GLCY SNMP"
Error: OID not increasing: .1.3.6.1.4.1.40989.10.16.1.2
>= .1.3.6.1.2.1.1.1.0
so it doesn't work. I've been able to get data by using the following in the generator.yml
fmt:
version: 1
max_repetitions: 10
walk:
- vCardState
- vDeviceType
- vDeviceDescription
- vSoftwareVerion
- vHardwareVerion
- vSerialNumber
- vFactoryDate
- vSFPA1State
- vSFPA1WorkMode
- vSFPA1TxPowerControl
- vSFPA1TxPower
- vSFPA1RxPower
- vSFPA1ModeWave
- vSFPA1ModeTransmissionDistance
- vSFPA1ModeTransmissionRate
- vSFPA1ModeTemperature
- vSFPA1TxPowerAlarm
- vSFPA1RxPowerAlarm
- vSFPA1ModeTemperatureAlarm
- vSFPA2State
- vSFPA2WorkMode
- vSFPA2TxPowerControl
- vSFPA2TxPower
- vSFPA2RxPower
- vSFPA2ModeWave
- vSFPA2ModeTransmissionDistance
- vSFPA2ModeTransmissionRate
- vSFPA2ModeTemperature
- vSFPA2TxPowerAlarm
- vSFPA2RxPowerAlarm
- vSFPA2ModeTemperatureAlarm
- vSFPB1State
- vSFPB1WorkMode
- vSFPB1TxPowerControl
- vSFPB1TxPower
- vSFPB1RxPower
- vSFPB1ModeWave
- vSFPB1ModeTransmissionDistance
- vSFPB1ModeTransmissionRate
- vSFPB1ModeTemperature
- vSFPB1TxPowerAlarm
- vSFPB1RxPowerAlarm
- vSFPB1ModeTemperatureAlarm
- vSFPB2State
- vSFPB2WorkMode
- vSFPB2TxPowerControl
- vSFPB2TxPower
- vSFPB2RxPower
- vSFPB2ModeWave
- vSFPB2ModeTransmissionDistance
- vSFPB2ModeTransmissionRate
- vSFPB2ModeTemperature
- vSFPB2TxPowerAlarm
- vSFPB2RxPowerAlarm
- vSFPB2ModeTemperatureAlarm
- vSFPC1State
- vSFPC1WorkMode
- vSFPC1TxPowerControl
- vSFPC1TxPower
- vSFPC1RxPower
- vSFPC1ModeWave
- vSFPC1ModeTransmissionDistance
- vSFPC1ModeTransmissionRate
- vSFPC1ModeTemperature
- vSFPC1TxPowerAlarm
- vSFPC1RxPowerAlarm
- vSFPC1ModeTemperatureAlarm
- vSFPC2State
- vSFPC2WorkMode
- vSFPC2TxPowerControl
- vSFPC2TxPower
- vSFPC2RxPower
- vSFPC2ModeWave
- vSFPC2ModeTransmissionDistance
- vSFPC2ModeTransmissionRate
- vSFPC2ModeTemperature
- vSFPC2TxPowerAlarm
- vSFPC2RxPowerAlarm
- vSFPC2ModeTemperatureAlarm
- vSFPD1State
- vSFPD1WorkMode
- vSFPD1TxPowerControl
- vSFPD1TxPower
- vSFPD1RxPower
- vSFPD1ModeWave
- vSFPD1ModeTransmissionDistance
- vSFPD1ModeTransmissionRate
- vSFPD1ModeTemperature
- vSFPD1TxPowerAlarm
- vSFPD1RxPowerAlarm
- vSFPD1ModeTemperatureAlarm
- vSFPD2State
- vSFPD2WorkMode
- vSFPD2TxPowerControl
- vSFPD2TxPower
- vSFPD2RxPower
- vSFPD2ModeWave
- vSFPD2ModeTransmissionDistance
- vSFPD2ModeTransmissionRate
- vSFPD2ModeTemperature
- vSFPD2TxPowerAlarm
- vSFPD2RxPowerAlarm
- vSFPD2ModeTemperatureAlarm
and here is what I get:
# HELP snmp_scrape_duration_seconds Total SNMP time scrape took (walk and processing).
# TYPE snmp_scrape_duration_seconds gauge
snmp_scrape_duration_seconds 4.396628261
# HELP snmp_scrape_packets_retried Packets retried for get, bulkget, and walk.
# TYPE snmp_scrape_packets_retried gauge
snmp_scrape_packets_retried 0
# HELP snmp_scrape_packets_sent Packets sent for get, bulkget, and walk; including retries.
# TYPE snmp_scrape_packets_sent gauge
snmp_scrape_packets_sent 103
# HELP snmp_scrape_pdus_returned PDUs returned from get, bulkget, and walk.
# TYPE snmp_scrape_pdus_returned gauge
snmp_scrape_pdus_returned 37
# HELP snmp_scrape_walk_duration_seconds Time SNMP walk/bulkwalk took.
# TYPE snmp_scrape_walk_duration_seconds gauge
snmp_scrape_walk_duration_seconds 4.394715743
# HELP vCardState Description. - 1.3.6.1.4.1.40989.10.16.1.2.1
# TYPE vCardState gauge
vCardState 1
# HELP vDeviceDescription Description. - 1.3.6.1.4.1.40989.10.16.1.2.3
# TYPE vDeviceDescription gauge
vDeviceDescription{vDeviceDescription="0x4F454F"} 1
# HELP vDeviceType Description. - 1.3.6.1.4.1.40989.10.16.1.2.2
# TYPE vDeviceType gauge
vDeviceType{vDeviceType="0x4F454F"} 1
# HELP vFactoryDate Description. - 1.3.6.1.4.1.40989.10.16.1.2.7
# TYPE vFactoryDate gauge
vFactoryDate{vFactoryDate="0x323032312F30392F3130"} 1
# HELP vHardwareVerion Description. - 1.3.6.1.4.1.40989.10.16.1.2.5
# TYPE vHardwareVerion gauge
vHardwareVerion{vHardwareVerion="0x4856312E30312E3031"} 1
# HELP vSFPA1ModeTemperature Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.9
# TYPE vSFPA1ModeTemperature gauge
vSFPA1ModeTemperature 3820
# HELP vSFPA1ModeTemperatureAlarm Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.12
# TYPE vSFPA1ModeTemperatureAlarm gauge
vSFPA1ModeTemperatureAlarm 1
# HELP vSFPA1ModeTransmissionDistance Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.7
# TYPE vSFPA1ModeTransmissionDistance gauge
vSFPA1ModeTransmissionDistance 40000
# HELP vSFPA1ModeTransmissionRate Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.8
# TYPE vSFPA1ModeTransmissionRate gauge
vSFPA1ModeTransmissionRate 10300
# HELP vSFPA1ModeWave Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.6
# TYPE vSFPA1ModeWave gauge
vSFPA1ModeWave 131000
# HELP vSFPA1RxPower Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.5
# TYPE vSFPA1RxPower gauge
vSFPA1RxPower -814
# HELP vSFPA1RxPowerAlarm Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.11
# TYPE vSFPA1RxPowerAlarm gauge
vSFPA1RxPowerAlarm 1
# HELP vSFPA1State Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.1
# TYPE vSFPA1State gauge
vSFPA1State 1
# HELP vSFPA1TxPower Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.4
# TYPE vSFPA1TxPower gauge
vSFPA1TxPower 126
# HELP vSFPA1TxPowerAlarm Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.10
# TYPE vSFPA1TxPowerAlarm gauge
vSFPA1TxPowerAlarm 1
# HELP vSFPA1TxPowerControl Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.3
# TYPE vSFPA1TxPowerControl gauge
vSFPA1TxPowerControl 1
# HELP vSFPA1WorkMode Description. - 1.3.6.1.4.1.40989.10.16.1.2.11.2
# TYPE vSFPA1WorkMode gauge
vSFPA1WorkMode 1
# HELP vSFPA2ModeTemperature Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.9
# TYPE vSFPA2ModeTemperature gauge
vSFPA2ModeTemperature 3636
# HELP vSFPA2ModeTemperatureAlarm Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.12
# TYPE vSFPA2ModeTemperatureAlarm gauge
vSFPA2ModeTemperatureAlarm 1
# HELP vSFPA2ModeTransmissionDistance Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.7
# TYPE vSFPA2ModeTransmissionDistance gauge
vSFPA2ModeTransmissionDistance 300
# HELP vSFPA2ModeTransmissionRate Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.8
# TYPE vSFPA2ModeTransmissionRate gauge
vSFPA2ModeTransmissionRate 10300
# HELP vSFPA2ModeWave Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.6
# TYPE vSFPA2ModeWave gauge
vSFPA2ModeWave 85000
# HELP vSFPA2RxPower Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.5
# TYPE vSFPA2RxPower gauge
vSFPA2RxPower -235
# HELP vSFPA2RxPowerAlarm Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.11
# TYPE vSFPA2RxPowerAlarm gauge
vSFPA2RxPowerAlarm 1
# HELP vSFPA2State Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.1
# TYPE vSFPA2State gauge
vSFPA2State 1
# HELP vSFPA2TxPower Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.4
# TYPE vSFPA2TxPower gauge
vSFPA2TxPower -231
# HELP vSFPA2TxPowerAlarm Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.10
# TYPE vSFPA2TxPowerAlarm gauge
vSFPA2TxPowerAlarm 1
# HELP vSFPA2TxPowerControl Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.3
# TYPE vSFPA2TxPowerControl gauge
vSFPA2TxPowerControl 1
# HELP vSFPA2WorkMode Description. - 1.3.6.1.4.1.40989.10.16.1.2.12.2
# TYPE vSFPA2WorkMode gauge
vSFPA2WorkMode 1
# HELP vSFPB1State Description. - 1.3.6.1.4.1.40989.10.16.1.2.13.1
# TYPE vSFPB1State gauge
vSFPB1State 0
# HELP vSFPB2State Description. - 1.3.6.1.4.1.40989.10.16.1.2.14.1
# TYPE vSFPB2State gauge
vSFPB2State 0
# HELP vSFPC1State Description. - 1.3.6.1.4.1.40989.10.16.1.2.15.1
# TYPE vSFPC1State gauge
vSFPC1State 0
# HELP vSFPC2State Description. - 1.3.6.1.4.1.40989.10.16.1.2.16.1
# TYPE vSFPC2State gauge
vSFPC2State 0
# HELP vSFPD1State Description. - 1.3.6.1.4.1.40989.10.16.1.2.17.1
# TYPE vSFPD1State gauge
vSFPD1State 0
# HELP vSFPD2State Description. - 1.3.6.1.4.1.40989.10.16.1.2.18.1
# TYPE vSFPD2State gauge
vSFPD2State 0
# HELP vSerialNumber Description. - 1.3.6.1.4.1.40989.10.16.1.2.6
# TYPE vSerialNumber gauge
vSerialNumber{vSerialNumber="0x31313231303830303034363531313137"} 1
# HELP vSoftwareVerion Description. - 1.3.6.1.4.1.40989.10.16.1.2.4
# TYPE vSoftwareVerion gauge
vSoftwareVerion{vSoftwareVerion="0x5356332E30312E3138"} 1
I've tried to use what you proposed:
fmt:
version: 1
walk:
- vCardState
- vDeviceType
- vDeviceDescription
- vSoftwareVerion
- vHardwareVerion
- vSerialNumber
- vFactoryDate
- vSFPA1
- vSFPA2
- vSFPB1
- vSFPB2
- vSFPC1
- vSFPC2
- vSFPD1
- vSFPD2
but the result is more limited:
# HELP snmp_scrape_duration_seconds Total SNMP time scrape took (walk and processing).
# TYPE snmp_scrape_duration_seconds gauge
snmp_scrape_duration_seconds 0.4953063
# HELP snmp_scrape_packets_retried Packets retried for get, bulkget, and walk.
# TYPE snmp_scrape_packets_retried gauge
snmp_scrape_packets_retried 0
# HELP snmp_scrape_packets_sent Packets sent for get, bulkget, and walk; including retries.
# TYPE snmp_scrape_packets_sent gauge
snmp_scrape_packets_sent 23
# HELP snmp_scrape_pdus_returned PDUs returned from get, bulkget, and walk.
# TYPE snmp_scrape_pdus_returned gauge
snmp_scrape_pdus_returned 7
# HELP snmp_scrape_walk_duration_seconds Time SNMP walk/bulkwalk took.
# TYPE snmp_scrape_walk_duration_seconds gauge
snmp_scrape_walk_duration_seconds 0.494859778
# HELP vCardState Description. - 1.3.6.1.4.1.40989.10.16.1.2.1
# TYPE vCardState gauge
vCardState 1
# HELP vDeviceDescription Description. - 1.3.6.1.4.1.40989.10.16.1.2.3
# TYPE vDeviceDescription gauge
vDeviceDescription{vDeviceDescription="0x4F454F"} 1
# HELP vDeviceType Description. - 1.3.6.1.4.1.40989.10.16.1.2.2
# TYPE vDeviceType gauge
vDeviceType{vDeviceType="0x4F454F"} 1
# HELP vFactoryDate Description. - 1.3.6.1.4.1.40989.10.16.1.2.7
# TYPE vFactoryDate gauge
vFactoryDate{vFactoryDate="0x323032312F30392F3130"} 1
# HELP vHardwareVerion Description. - 1.3.6.1.4.1.40989.10.16.1.2.5
# TYPE vHardwareVerion gauge
vHardwareVerion{vHardwareVerion="0x4856312E30312E3031"} 1
# HELP vSerialNumber Description. - 1.3.6.1.4.1.40989.10.16.1.2.6
# TYPE vSerialNumber gauge
vSerialNumber{vSerialNumber="0x31313231303830303034363531313137"} 1
# HELP vSoftwareVerion Description. - 1.3.6.1.4.1.40989.10.16.1.2.4
# TYPE vSoftwareVerion gauge
vSoftwareVerion{vSoftwareVerion="0x5356332E30312E3138"} 1
I've tried to use what you proposed:
fmt: version: 1 walk: - vCardState - vDeviceType - vDeviceDescription - vSoftwareVerion - vHardwareVerion - vSerialNumber - vFactoryDate - vSFPA1 - vSFPA2 - vSFPB1 - vSFPB2 - vSFPC1 - vSFPC2 - vSFPD1 - vSFPD2
but the result is more limited:
Ooof. That is disappointing. I was pretty sure that it would successfully walk the vSFPxx branches since their leaf OIDs are contiguous. The SNMP agent in that hardware must be really brain dead if you have to explicitly GET each object. Be thankful that the MIB is not that large.
It looks like you're going to have to override the types for several of the metrics:
vDeviceDescription{vDeviceDescription="0x4F454F"} 1
vDeviceType{vDeviceType="0x4F454F"} 1
vFactoryDate{vFactoryDate="0x323032312F30392F3130"} 1
vHardwareVerion{vHardwareVerion="0x4856312E30312E3031"} 1
vSerialNumber{vSerialNumber="0x31313231303830303034363531313137"} 1
vSoftwareVerion{vSoftwareVerion="0x5356332E30312E3138"} 1
This is yet another sign of a poorly-written MIB, that isn't specifying the correct encoding type.
It looks like the label values are being handled as OctetString
, e.g. the vFactoryDate when hex-decoded is 2021/09/10
, vDeviceDescription is OEO
, vSoftwareVerion is SV3.01.18
etc. You'll probably want to override the type to DisplayString
.
@dswarbrick very helpful insights. For the overrides, I added this in the generator.yml and works as intended.
fmt:
version: 1
max_repetitions: 10
walk:
- vCardState
...
overrides:
vDeviceDescription:
type: DisplayString
vDeviceType:
type: DisplayString
vFactoryDate:
type: DisplayString
vHardwareVerion:
type: DisplayString
vSerialNumber:
type: DisplayString
vSoftwareVerion:
type: DisplayString
I was going to propose a PR to support this device. Not sure if it's a good idea anymore, but still I would like to be able to get the data from them. What do you think?
@jsfrerot My personal opinion is that snmp_exporter actually shouldn't ship with any vendor-specific config, since the amount of SNMP-capable hardware out there is virtually limitless, and as you've found out first hand, some of it can be pretty dubious.
I recognise that for a lot of people, SNMP MIBs are akin to black magic, and they're often hard to source, especially for EOL hardware. The MIBs themselves often fall under some copyright or incompatible license, which is why they are not packaged by Debian for example, as they would violate Debian's packaging policies. Indeed, the Debian prometheus-snmp-exporter package (which I co-maintain) strips out the bundled snmp.yml.
From my own experience operating snmp_exporter in a large service provider environment, with Juniper, Mellanox, Dell, and Supermicro hardware, there rarely is a case of "one size fits all", and we used a completely from-scratch config that only walked the OIDs that we were specifically interested in. The out-of-the-box config may have worked, but would have resulted in huge amounts of unwanted metrics on some of the large Juniper switch virtual chassis (as well as having a negative and quite noticeable impact on the CPUs of some network hardware).
@dswarbrick I setup https://github.com/prometheus-community/snmp as a place to start a project to create a whole bunch of snmp_exporter generator.yml examples for various devices. But I never got around to deciding exactly how to layout such a project. For example, policies like "should we inline vendor MIBs with dubious copyright issues".
Host operating system: output of
uname -a
Linux yul-blackbox-001 5.4.0-137-generic #154-Ubuntu SMP Thu Jan 5 17:03:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
snmp_exporter version: output of
snmp_exporter -version
snmp_exporter, version 0.21.0 (branch: HEAD, revision: 0d8c3527cac0c26f1d6005b84b74413d14264c37) build user: root@51dfd4b1f59b build date: 20221122-15:14:18 go version: go1.19.3 platform: linux/amd64
What device/snmpwalk OID are you using?
FMT04-CH1U, 1U Managed Chassis https://www.fs.com/products/39214.html?attribute=54780&id=870796 OID: 1.3.6.1.4.1.40989
If this is a new device, please link to the MIB(s).
https://bestmonitoringtools.com/mibdb/mibs/OAP-C1-OEO.mib There is C1 through C16, it's basically 1.3.6.1.4.1.40989.10.16.1 through 1.3.6.1.4.1.40989.10.16.16 on seperate files
What did you do that produced an error?
I used the generator with the following diff
Than ran "make clean", "make mibs" and "make generate" uploaded the snmp.yml to /etc/snmp-exporter.yaml on the snmp_exporter node and started it with the following params: /usr/local/bin/snmp_exporter --config.file=/etc/snmp-exporter.yaml
What did you expect to see?
a snmpwalk like this show the expected result:
and here is the tcpdump for troubleshooting
What did you see instead?
The snmp_exporter shows only this:
here is the snmp tcpdump if it can help: