Ad Widget

Collapse

Get Units From snmp OID

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mate1213
    Junior Member
    • May 2021
    • 5

    #1

    Get Units From snmp OID

    Hi!

    I want to monitor all sorts of sensors in my devices. But in the SNMP walk these comes in a mixed version (not the same in all decvices) example:
    .1.3.6.1.4.1.14988.1.1.3.100.1.2.14 = STRING: "temperature"
    .1.3.6.1.4.1.14988.1.1.3.100.1.2.16 = STRING: "power-consumption"
    .1.3.6.1.4.1.14988.1.1.3.100.1.2.17 = STRING: "cpu-temperature"
    .1.3.6.1.4.1.14988.1.1.3.100.1.2.7001 = STRING: "fan1-speed"
    .1.3.6.1.4.1.14988.1.1.3.100.1.2.7302 = STRING: "psu2-current"
    .1.3.6.1.4.1.14988.1.1.3.100.1.3.14 = Gauge32: 68
    .1.3.6.1.4.1.14988.1.1.3.100.1.3.16 = Gauge32: 290
    .1.3.6.1.4.1.14988.1.1.3.100.1.3.17 = Gauge32: 54
    .1.3.6.1.4.1.14988.1.1.3.100.1.3.7001 = Gauge32: 2085
    .1.3.6.1.4.1.14988.1.1.3.100.1.3.7302 = Gauge32: 5
    .1.3.6.1.4.1.14988.1.1.3.100.1.4.14 = INTEGER: 1
    .1.3.6.1.4.1.14988.1.1.3.100.1.4.16 = INTEGER: 5
    .1.3.6.1.4.1.14988.1.1.3.100.1.4.17 = INTEGER: 1
    .1.3.6.1.4.1.14988.1.1.3.100.1.4.7001 = INTEGER: 2
    .1.3.6.1.4.1.14988.1.1.3.100.1.4.7302 = INTEGER: 4

    ​I'm confused the .1.3.6.1.4.1.14988.1.1.3.100.* OID because this is an matrix, where the .1.3.6.1.4.1.14988.1.1.3.100.1.4.* store the Unit.

    Is there any way, to use value mapping for the units in discovery rules?
    MIB:
    mtxrGaugeUnit OBJECT-TYPE
    SYNTAX INTEGER {
    celsius(1),
    rpm(2),
    dV(3),
    dA(4),
    dW(5),
    status(6)
    }​
    Click image for larger version

Name:	image.png
Views:	458
Size:	16.2 KB
ID:	453676

    Thanks for any Idea, or documentation (I didn't found any of this yet).
    Best Regards,
    Mate
Working...