You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a feature request not a bug
I am working on building alarms for hardware issues in cisco gear. The mib in question is CISCO-ENTITY-SENSOR-MIB and the object in questions are the entSensorThresholdSeverity,entSensorThresholdValue and entSensorThresholdRelation
these work together to tell you what the threshold is, whether to use greater than or less than when comparing against the actual sensor value and whether it is considered a major or minor alarm.
Using the above generator config I get a metric that looks like:
entSensorThresholdValue{entPhysicalName="Ethernet1/65 Lane 1 Transceiver Bias Current Sensor",entSensorThresholdIndex="1",entSensorThresholdRelation="3",entSensorThresholdSeverity="20"} 12000
the label values correlate to a enum like entSensorThresholdRelation="3" means greaterthan but even with the entSensorThresholdRelation override to set type it is using the integer.
this works but you have to remember that 3 is greaterthan. What also works is to not do lookups and bring in the metrics as enum using this config:
This is a feature request not a bug
I am working on building alarms for hardware issues in cisco gear. The mib in question is CISCO-ENTITY-SENSOR-MIB and the object in questions are the entSensorThresholdSeverity,entSensorThresholdValue and entSensorThresholdRelation
these work together to tell you what the threshold is, whether to use greater than or less than when comparing against the actual sensor value and whether it is considered a major or minor alarm.
Using the above generator config I get a metric that looks like:
the label values correlate to a enum like entSensorThresholdRelation="3" means greaterthan but even with the entSensorThresholdRelation override to set type it is using the integer.
this works but you have to remember that 3 is greaterthan. What also works is to not do lookups and bring in the metrics as enum using this config:
with this config I can use what I see as a complex query to get all the labels togther and using the definition instead of the number
produces output like:
it seems less complex and results in fewer metrics if the override would work on the lookup
The text was updated successfully, but these errors were encountered: