snmp-exporter missing metrics

55 views
Skip to first unread message

-MoNsTeRRR

unread,
Jul 31, 2020, 8:59:58 AM7/31/20
to Prometheus Users
Hello,

I'm trying to get metrics from an Unifi devices (UAP AC-Lite) and some metrics are missing.

snmp-exporter doesn't give me any metrics regarding OID 1.3.6.1.4.1.41112 (I got all metrics of OID 1.3.6.1.2.1.31.1.1 and 1.3.6.1.2.1.2)

I use snmp.yml in snmp-exporter repository => https://github.com/prometheus/snmp_exporter/blob/master/snmp.yml

Debug mode doesn't provide me relevant informations
level=info ts=2020-07-31T12:33:08.703Z caller=main.go:149 msg="Starting snmp_exporter" version="(version=0.18.0, branch=HEAD, revision=9a2ff257dd2e8cdb2a4c88b18df668e2008c2cd6)"
level=info ts=2020-07-31T12:33:08.703Z caller=main.go:150 build_context="(go=go1.14.3, user=root@84ec61d89273, date=20200526-08:26:47)"
level=info ts=2020-07-31T12:33:08.714Z caller=main.go:243 msg="Listening on address" address=:9117
level=debug ts=2020-07-31T12:33:12.900Z caller=main.go:99 module=ubiquiti_unifi target=<IP> msg="Starting scrape"
level=debug ts=2020-07-31T12:33:12.901Z caller=collector.go:131 module=ubiquiti_unifi target=<IP> msg="Getting OIDs" oids=1
level=debug ts=2020-07-31T12:33:12.902Z caller=collector.go:140 module=ubiquiti_unifi target=<IP> msg="Get of OIDs completed" oids=1 duration_seconds=499.635µs
level=debug ts=2020-07-31T12:33:12.902Z caller=collector.go:164 module=ubiquiti_unifi target=<IP> msg="Walking subtree" oid=1.3.6.1.2.1.2
level=debug ts=2020-07-31T12:33:12.912Z caller=collector.go:177 module=ubiquiti_unifi target=<IP> msg="Walk of subtree completed" oid=1.3.6.1.2.1.2 duration_seconds=9.983895ms
level=debug ts=2020-07-31T12:33:12.912Z caller=collector.go:164 module=ubiquiti_unifi target=<IP> msg="Walking subtree" oid=1.3.6.1.2.1.31.1.1
level=debug ts=2020-07-31T12:33:12.916Z caller=collector.go:177 module=ubiquiti_unifi target=<IP> msg="Walk of subtree completed" oid=1.3.6.1.2.1.31.1.1 duration_seconds=3.806607ms
level=debug ts=2020-07-31T12:33:12.916Z caller=collector.go:164 module=ubiquiti_unifi target=<IP> msg="Walking subtree" oid=1.3.6.1.4.1.41112.1.6
level=debug ts=2020-07-31T12:33:12.917Z caller=collector.go:177 module=ubiquiti_unifi target=<IP> msg="Walk of subtree completed" oid=1.3.6.1.4.1.41112.1.6 duration_seconds=348.113µs
level=debug ts=2020-07-31T12:33:12.921Z caller=main.go:110 module=ubiquiti_unifi target=<IP> msg="Finished scrape" duration_seconds=0.020435814

snmpbulkwalk -v 2c -c <community> <IP> 1.3.6.1.4.1.41112.1.6
iso.3.6.1.4.1.41112.1.6.1.1.1.1.1 = INTEGER: 0
iso.3.6.1.4.1.41112.1.6.1.1.1.1.2 = INTEGER: 1
iso.3.6.1.4.1.41112.1.6.1.1.1.2.1 = STRING: "wifi0"
iso.3.6.1.4.1.41112.1.6.1.1.1.2.2 = STRING: "wifi1"
iso.3.6.1.4.1.41112.1.6.1.1.1.3.1 = STRING: "ng"
iso.3.6.1.4.1.41112.1.6.1.1.1.3.2 = STRING: "na"
iso.3.6.1.4.1.41112.1.6.1.1.1.4.1 = Counter32: 6062338
iso.3.6.1.4.1.41112.1.6.1.1.1.4.2 = Counter32: 265163
iso.3.6.1.4.1.41112.1.6.1.1.1.5.1 = Counter32: 713814
iso.3.6.1.4.1.41112.1.6.1.1.1.5.2 = Counter32: 1080
etc....

i'm using snmp-exporter version 0.18.0

Best regards,

Ben Kochie

unread,
Jul 31, 2020, 9:55:51 AM7/31/20
to -MoNsTeRRR, Prometheus Users
That's pretty strange. The log looks right, but the duration for the OID seems extremely short, like the AP didn't return any data to the exporter. I have some APs that respond to these metrics just fine to the snmp_exporter.

Maybe worth doing a tcpdump capture to see what's going over the wire?

--
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/73683737-0117-464d-9d30-019272963d66o%40googlegroups.com.

-MoNsTeRRR

unread,
Jul 31, 2020, 10:06:41 AM7/31/20
to Prometheus Users
After future investigations, it does appear that Unifi OID are not responding in IPv6

snmpbulkwalk -v 2c -c <community> <IPv6> 1.3.6.1.2.1.2.2.1.7
iso.3.6.1.2.1.2.2.1.7.1 = INTEGER: 1
iso.3.6.1.2.1.2.2.1.7.2 = INTEGER: 1

snmpbulkwalk -v 2c -c <community> <IPv6> 1.3.6.1.4.1.41112.1.6
iso.3.6.1.4.1.41112.1.6 = No Such Object available on this agent at this OID
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.

-MoNsTeRRR

unread,
Jul 31, 2020, 10:30:08 AM7/31/20
to Prometheus Users
snmp-exporter doesn't support an option like on blackbox exporter "preferred_ip_protocol" to query in ipv4 instead on ipv6 for some hostnames ?

Ben Kochie

unread,
Jul 31, 2020, 10:33:00 AM7/31/20
to -MoNsTeRRR, Prometheus Users
No, I don't think so, it only takes the OS level IP protocol priorities.

--
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/e0bc6d23-4ef5-4814-afb6-e2e443e188d1o%40googlegroups.com.

-MoNsTeRRR

unread,
Jul 31, 2020, 10:39:01 AM7/31/20
to Prometheus Users
Thanks for your help I will open a feature request on snmp-exporter github
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages