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

Doesn't work with SNMPv1 devices #8

Closed
rrcollier opened this issue Nov 21, 2015 · 11 comments
Closed

Doesn't work with SNMPv1 devices #8

rrcollier opened this issue Nov 21, 2015 · 11 comments

Comments

@rrcollier
Copy link

The exporter is great with my devices that support snmp 2c, but just times out contacting devices that only have v1 support.

pysnmp seems to support 1, 2c & 3, could you add a way of specifying the snmp version to use?

@turnrye
Copy link

turnrye commented Dec 5, 2015

Same request here -- trying to use this with Mikrotik RouterBoard devices and requests just hang.

@brian-brazil
Copy link
Contributor

I'd be happy to take a pull request to add this.

@turnrye
Copy link

turnrye commented Dec 5, 2015

Cool, I'll look into it tonight/tomorrow. Still getting up to speed on how prometheus works and building it into our existing automation.

@brian-brazil
Copy link
Contributor

I expect the man challenge here will be working with the snmp library we use, it should be relatively easy plumbing.

@turnrye
Copy link

turnrye commented Dec 5, 2015

Great!

@jcollie
Copy link
Contributor

jcollie commented Dec 20, 2015

I too would like to see this, I have a Ubiquity UniFi AP-Pro and it doesn't respond to v2c SNMP queries, only v1.

@turnrye
Copy link

turnrye commented Dec 21, 2015

@jcollie I originally thought this was a code/lib problem but as it turned out it was my configuration. The improvement to be made IMO is in the exporter's error handling. I can send you an example of what my config looks like for Mikrotik devices -- it took a good bit of effort to get it setup but it works quite well now.

@jcollie
Copy link
Contributor

jcollie commented Dec 22, 2015

@RyanTurner I'd certainly like to see your config, but I'm pretty sure that In my case it's a v1 vs v2c issue:

[jeff@home01 ~]$ snmpget -v1 -c xxxxxxxx 192.168.4.51 SNMPv2-MIB::sysName.0
SNMPv2-MIB::sysName.0 = STRING: LivingRoom
[jeff@home01 ~]$ snmpget -v2c -c xxxxxxxx 192.168.4.51 SNMPv2-MIB::sysName.0 
Timeout: No Response from 192.168.4.51.

@rrcollier
Copy link
Author

rrcollier commented Dec 22, 2015 via email

@SuperQ
Copy link
Member

SuperQ commented Feb 6, 2016

I've got a patch in progress for v1 and v3 support: https://github.com/SuperQ/snmp_exporter.

@jcollie
Copy link
Contributor

jcollie commented Sep 6, 2016

This should probably be closed as the latest version works just fine with both SNMP v1 and v2c (probably SNMP v3 as well but I haven't tested).

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

5 participants