Open giganteous opened 8 years ago
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?
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.
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.