DisplayData convertion didn't work as expected #994
-
Host operating system: output of
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
I have the same issue, changing the DisplayString to gauge doesn't work. When monitoring Lenovo devices using the SNMP protocol, the values fetched are primarily in the STRING data type. This is inconsistent with other manufacturers, such as Dell, which provides more usable SNMP data types like INTEGER or GAUGE. MIB File in Use lnvgy_fw_xcc_d8bt54m-5.00_lenovoxcc-anyos_noarch.mib Example Data Lenovo Devices Most of the values from Lenovo devices are STRING: SNMPv2-SMI::enterprises.19046.11.1.1.1.2.1.3.1 = STRING: "25" Dell Devices In contrast, values from Dell devices are usually INTEGER: SNMPv2-SMI::enterprises.674.10892.5.4.700.20.1.6.1.1 = INTEGER: 620 Specific Areas of Concern Fan Speed Metrics: Currently provided in percentage and as a string. SNMPv2-SMI::enterprises.19046.11.1.1.3.2.1.3.1 = STRING: " 74% of maximum" Desired Format: Values should be in RPM for effective graphing. Fan Status: Also represented as strings. SNMPv2-SMI::enterprises.19046.11.1.1.3.2.1.10.1 = STRING: "Normal" Power Status: Presented as strings. SNMPv2-SMI::enterprises.19046.11.1.1.11.2.1.6.1 = STRING: "Normal" Conclusion Having SNMP data in more quantifiable types like INTEGER or GAUGE would make monitoring and graphing significantly more straightforward and accurate. Therefore, it's crucial to address these discrepancies for more efficient device management. |
Beta Was this translation helpful? Give feedback.
-
For instance, when monitoring fan speed metrics from Lenovo devices, the SNMP data returned is as follows: fanSpeed{ fanIndex="1", fanSpeed=" 74% of maximum", hostname="####", instance="####", job="####", prometheus="####", prometheus_replica="####", rack="####", region="####", site="####", snmp="####", team="####"} and then 1 |
Beta Was this translation helpful? Give feedback.
-
This is what the regex_extracts is used for. It allows you to parse the numbers out of arbitrary strings. |
Beta Was this translation helpful? Give feedback.
-
This is the final regex for fan speed, it returns the number (50) instead of (50%), but this created another metric called "fanSpeedPercentage"
Thanks to Jacob from Lenovo team to clarify this matter. |
Beta Was this translation helpful? Give feedback.
This is what the regex_extracts is used for. It allows you to parse the numbers out of arbitrary strings.