Temperature high/low limit

I have this setup in my librenms for getting temp from a hirshmann switch. The tempurature is pulled with no issues but I can’t seem to get the low and high limit values. If anyone has an idea please let me know.

cat  /opt/librenms/resources/definitions/os_discovery/hirschmann-greyhound.yaml
modules:
    sensors:
        temperature:
            data:
                -
                    oid: HM2-DEVMGMT-MIB::hm2DevMgmtTemperature
                    num_oid: '.1.3.6.1.4.1.248.11.10.1.5.1.0'
                    descr: 'Internal Temperature'
                    index: '0'
                    high_limit: '.1.3.6.1.4.1.248.11.10.1.5.2.0'
                    low_limit: '.1.3.6.1.4.1.248.11.10.1.5.3.0'

        humidity:
            data:
                -
                    oid: HM2-DEVMGMT-MIB::hm2DevMgmtHumidity
                    num_oid: '.1.3.6.1.4.1.248.11.10.1.12.1.0'
                    descr: 'Internal Humidity'
                    index: '0'

        state:
            data:
                -
                    oid: HM2-PWRMGMT-MIB::hm2PSTable
                    value: HM2-PWRMGMT-MIB::hm2PSState
                    index: '{{ $index }}'
                    num_oid: '.1.3.6.1.4.1.248.11.11.1.1.1.1.2.{{ $index }}'
                    descr: 'Power Supply {{ $index }}'
                    state_name: hm2PSState
                    states:
                        - { descr: active, value: 1, generic: 0 }
                        - { descr: notPlugged, value: 2, generic: 1 }

I am able to see the values with SNMP walk

snmpwalk REDACTED

iso.3.6.1.4.1.248.11.10.1.5.2.0 = INTEGER: 70

snmpwalk REDACTED

iso.3.6.1.4.1.248.11.10.1.5.3.0 = INTEGER: 0

Thank you

high/low limits don’t perform snmp queries, you have to do that as part of the oid query if it’s in the table along with the value data you need, I.e like your state sensor or using additional_oids query: Health Information - LibreNMS Docs see additional_oids

You can’t use the numeric oids here. The yaml discovery won’t be able to match the limits to the sensor.

Thank you, this was the correct way to do it.

    additional_oids:
        data:
            -
                oid:
                    - HM2-DEVMGMT-MIB::hm2DevMgmtTemperatureUpperLimit
                    - HM2-DEVMGMT-MIB::hm2DevMgmtTemperatureLowerLimit

    sensors:
        temperature:
            data:
                -
                    oid: HM2-DEVMGMT-MIB::hm2DevMgmtTemperature
                    num_oid: '.1.3.6.1.4.1.248.11.10.1.5.10.1.3'
                    descr: 'Internal Temperature'
                    #high_limit: '50'
                    #low_limit: '5'
                    high_limit: HM2-DEVMGMT-MIB::hm2DevMgmtTemperatureUpperLimit
                    low_limit: HM2-DEVMGMT-MIB::hm2DevMgmtTemperatureLowerLimit

For anyone else that comes looking for an answer this was the formatting that worked.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.