Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with standard SNMP exporter on Ubiquiti Devices (Unifi/Airmax) #313

Closed
Cellebyte opened this issue Jul 4, 2018 · 2 comments
Closed

Comments

@Cellebyte
Copy link

Cellebyte commented Jul 4, 2018

Host operating system:

Linux 4.9.0-6-amd64 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux

snmp_exporter version:

snmp_exporter, version 0.11.0 (branch: HEAD, revision: e459171)
build user: root@80735d30559d
build date: 20180530-10:24:52
go version: go1.10.2

What device/snmpwalk OID are you using?

Ubiquiti Airmax/Unifi

If this is a new device, please link to the MIB(s).

Not new.

What did you do that produced an error?

http://localhost:9116/snmp?module=ubiquiti_airmax&target=|hostname|
http://localhost:9116/snmp?module=ubiquiti_unifi&target=|hostname|

What did you expect to see?


General Metrics

What did you see instead?


An error has occurred during metrics gathering:

error collecting metric Desc{fqName: "snmp_error", help: "Error scraping target", constLabels: {}, variableLabels: []}: Error getting target : Request timeout (after 3 retries)

Temporary Fix

Adding other SNMP versions to the snmp.yml.

ubiquiti_airmax:
  version: 1 # <<<<
  walk:
  - 1.3.6.1.2.1.2
  - 1.3.6.1.2.1.31.1.1
  - 1.3.6.1.4.1.41112.1.4
# ....
ubiquiti_unifi:
  version: 1 # <<<<
  walk:
  - 1.3.6.1.2.1.2
  - 1.3.6.1.2.1.31.1.1
  - 1.3.6.1.4.1.41112.1.4
# ....

Now it is working fine.

@SuperQ
Copy link
Member

SuperQ commented Jul 4, 2018

AirOS only supports SNMP v1. But the Unifi systems support SNMP v2, if you are unable to use SNMP v2 with Unifi, you need to update your software settings.

@Cellebyte
Copy link
Author

Ok so only the AirOS is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants