Doesn't display the correct name

16 views
Skip to first unread message

Andrew

unread,
Mar 8, 2023, 11:13:36 AM3/8/23
to Prometheus Users
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?

Ben Kochie

unread,
Mar 8, 2023, 11:48:34 AM3/8/23
to Andrew, Prometheus Users
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



--
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 prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/b56723a8-7318-4e37-b943-4f7ddc62f926n%40googlegroups.com.

Andrew

unread,
Mar 9, 2023, 7:03:47 AM3/9/23
to Prometheus Users
Yes, thank you very much, it helped!

среда, 8 марта 2023 г. в 19:48:34 UTC+3, Ben Kochie:
Reply all
Reply to author
Forward
0 new messages