This can be done with regex extracts. It looks like the MIB also has incorrect types for the strings, so you also have to override that.
Here's an example generator config: https://github.com/SuperQ/tools/tree/master/snmp_exporter/hp On Wed, Aug 26, 2020 at 6:05 AM Khanh Nguyen Duc <[email protected]> wrote: > convert hex value to string is met with max, min temperature > so how can snmp_exporter convert this value. ? > > > Vào lúc 08:42:39 UTC+7 ngày Thứ Tư, 26 tháng 8, 2020, Khanh Nguyen Duc đã > viết: > >> Dear all, >> I have issue with aruba OID >> by snmpwalk, i can get tempeture min and max of aruba switch. >> but snmp_exporter cannot get that information >> [image: temperature aruba OID.jpg] >> current temperature OID : -> 25C >> - 1.3.6.1.4.1.11.2.14.11.1.2.8.1.1.3.0 >> Max temperature OID : -> 34C >> - 1.3.6.1.4.1.11.2.14.11.1.2.8.1.1.4.0 >> Min temperature OID :- > 22C >> - 1.3.6.1.4.1.11.2.14.11.1.2.8.1.1.5.0 >> [image: snmp_exporter temperature aruba switch.jpg] >> >> [image: 2020-08-26_8-18-37.jpg] >> > -- > You received this message because you are subscribed to the Google Groups > "Prometheus Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/b46f6c04-439b-4a6c-8b84-e544b36f0fcen%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/b46f6c04-439b-4a6c-8b84-e544b36f0fcen%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CABbyFmpC%3DmvAjduimFLOrN3SmMsE8B8h0r6zLmBuLUC7cxok4g%40mail.gmail.com.

