Yes, thank you very much, it helped! среда, 8 марта 2023 г. в 19:48:34 UTC+3, Ben Kochie:
> Looks like a bug in the MIB. > > You can manually override the type in your generator. See the > documentation for specifics[0]. > > overrides: > metricName: > hwInfoLunName: > type: DisplayString > > [0]: > https://github.com/prometheus/snmp_exporter/tree/main/generator#file-format > > On Wed, Mar 8, 2023 at 5:13 PM Andrew <[email protected]> wrote: > >> Hi >> >> If I make a query like this >> snmpwalk -v 2c -c Dorado60005H3E150_+ 10.205.32.47 >> 1.3.6.1.4.1.34774.4.1.23.4.8.1.2 >> I get this result >> SNMPv2-SMI::enterprises.34774.4.1.23.4.8.1.2.4.57.57.49.54 = STRING: >> "HW03_SSD_ID424" >> SNMPv2-SMI::enterprises.34774.4.1.23.4.8.1.2.4.57.57.49.55 = STRING: >> "HW03_SSD_ID425" >> SNMPv2-SMI::enterprises.34774.4.1.23.4.8.1.2.4.57.57.49.56 = STRING: >> "HW03_SSD_ID426" >> >> But if I do it via snmp_exporter I get the following >> # HELP hwInfoLunName - 1.3.6.1.4.1.34774.4.1.23.4.8.1.2 >> # TYPE hwInfoLunName gauge >> hwInfoLunName{hwInfoLunID="0x3130303132",hwInfoLunName="0x485730335F5353445F4944333333"} >> >> 1 >> hwInfoLunName{hwInfoLunID="0x3130303137",hwInfoLunName="0x485730335F5353445F4944333335"} >> >> 1 >> hwInfoLunName{hwInfoLunID="0x3130303336",hwInfoLunName="0x485730335F5353445F4944333430"} >> >> 1 >> >> Maybe I have problems with snmp.yaml? >> >> -- >> 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/b56723a8-7318-4e37-b943-4f7ddc62f926n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/prometheus-users/b56723a8-7318-4e37-b943-4f7ddc62f926n%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/00260b0e-8f21-4b70-820c-d19db095c23en%40googlegroups.com.

