Can't get metric of max and min temperature of Aruba Switch 3810M / JL075A

80 views
Skip to first unread message

Khanh Nguyen Duc

unread,
Aug 25, 2020, 9:42:39 PM8/25/20
to Prometheus Users
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
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
snmp_exporter temperature aruba switch.jpg

2020-08-26_8-18-37.jpg

Khanh Nguyen Duc

unread,
Aug 26, 2020, 12:05:25 AM8/26/20
to Prometheus Users
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:

Ben Kochie

unread,
Aug 26, 2020, 4:31:14 AM8/26/20
to Khanh Nguyen Duc, Prometheus Users
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:



--
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/b46f6c04-439b-4a6c-8b84-e544b36f0fcen%40googlegroups.com.

Khanh Nguyen Duc

unread,
Aug 26, 2020, 10:15:19 AM8/26/20
to Prometheus Users
it mean i must added 1 lookups
but i have 1 before like below picture.
if I added 1 more , it will can not run , right ?
lookyp.jpg

Vào lúc 15:31:14 UTC+7 ngày Thứ Tư, 26 tháng 8, 2020, sup...@gmail.com đã viết:

Khanh Nguyen Duc

unread,
Aug 26, 2020, 8:59:19 PM8/26/20
to Prometheus Users
This is result when I did as your guide.
2020-08-27_7-55-07.jpg
This is comeback my fortigate monitoring , it have error with ifIndex and ifName (conflic between fortigate and aruba switch)

fortigate.jpg
Vào lúc 21:15:19 UTC+7 ngày Thứ Tư, 26 tháng 8, 2020, Khanh Nguyen Duc đã viết:

Khanh Nguyen Duc

unread,
Aug 27, 2020, 4:53:28 AM8/27/20
to Prometheus Users
that's OK , I can fix it .
closed

Vào lúc 07:59:19 UTC+7 ngày Thứ Năm, 27 tháng 8, 2020, Khanh Nguyen Duc đã viết:
Reply all
Reply to author
Forward
0 new messages