Skip to content

generator EnumAsInfo failing in PDU2-MIB #1420

@Bubba210

Description

@Bubba210

snmp_exporter version

0.28.0

What device/snmpwalk OID are you using?

PDU2-MIB for Raritan PDUs

    walk:
      - measurementsOutletPoleSensorSignedValue
      - measurementsOutletSensorSignedValue

What did you do that produced an error?

  raritan-PX3:
    walk:
      - measurementsOutletPoleSensorSignedValue
      - measurementsOutletSensorSignedValue

    lookups:
      - source_indexes: [pduId, outletId, sensorType]
        lookup: outletSensorUnits
        drop_source_indexes: false
      - source_indexes: [pduId, outletId, sensorType]
        lookup: outletSensorDecimalDigits
        drop_source_indexes: false

    overrides:
      sensorType:
        type: EnumAsInfo
      outletSensorUnits:
        type: EnumAsInfo

What did you expect to see?

I expected to see the enumerated "outletSensorUnits" human readable output in the label

measurementsOutletSensorSignedValue{outletId="1",outletSensorDecimalDigits="0",outletSensorUnits="watts",pduId="1",sensorType="activePower"} 2184

What did you see instead?

The enumeration of outletSensorUnits doesn't occur

measurementsOutletSensorSignedValue{outletId="1",outletSensorDecimalDigits="0",outletSensorUnits="3",pduId="1",sensorType="activePower"} 2184

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions