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

Snmp v1 #1

Open
giganteous opened this issue Sep 24, 2015 · 2 comments
Open

Snmp v1 #1

giganteous opened this issue Sep 24, 2015 · 2 comments

Comments

@giganteous
Copy link

Okay. I'm interested in having v1 support in Bosun.

Knowing not too much about snmp, I wrote up something hackish.

Get()'s to the device in question (an environmental unit from APC) work, but Walk() fails. I'm still investigating what is happening.

Is there someone in the bosun team that knows all this by heart?

Suggestions on my branch above are, of course, welcome.

@captncraig
Copy link

I can help debug, but I am not sure I have a device that only speaks v1. What are you testing against? What is the specific error you are getting?

@giganteous
Copy link
Author

I have created an example script that walks an Oid, to verify that it walks roughly the same as snmpwalk from Net-SNMP does. Walking my v1 device gives:

2015/09/24 21:32:32 snmp.Walk: invalid response: server error: no such name

Reading the walk code some more, my eye fell upon the walkN method. I now check for the version, and it looks to be running fine now.

I have really no clue as to what other "v1 specifics" will be floating up, and if there's a way to unit test this stuff.

I'll create 2 PR's, one for v1 support, and one for the example walker script.

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