I'd like to be able to use the value of an OID (or of a transform) in a
threshold comparison, but cannot see a way to do it. Specifically, I
have APC power strips that can have their thresholds configured in their
management interfaces (and this threshold is available via SNMP). Would
be nice to read that and use it as a comparison value.
For example, if one could add OIDs:
pduBank1Crit : .1.3.6.1.4.1.318.1.1.12.2.4.1.1.4.1 : leaf
pduBank1Out : .1.3.6.1.4.1.318.1.1.12.2.3.1.1.2.2 : leaf
And, maybe, something like this to the thresholds file:
pduBank1Out : red : {pduBank1Crit} : PDU bank1 load
Would be nice if values calculated in the transforms file could be used as well.
-Alan Sparks
You can always introduce a value that is the difference between the value OID and the threshold OID, e.g.:
pduBank1CritDiff : MATH: {pduBank1Out} - {pduBank1Crit}
Then you could put a 'static' threshold on pduBank1CritDiff.
Since there is a workaround, I will not look at this for 0.3.1, but it would make life easier in some situations, so I will look at it later.