Problem with snmp query to Motorola Canopy
Moderators: Developers, Moderators
Problem with snmp query to Motorola Canopy
Hello,
I was running 0.8.3a and was able to graph Canopy equipment with no problem. I have setup a new server with 0.8.6b and have totally rebuilt my database from scratch. I cannot seem to get the canopy radios to respond to a query. I have used the same settings as I used in the old version. And I can do an snmpwalk to the radio from the command line. However, cacti gives me an snmp error at the top of the screen under devices.
I don't know if it has anything to do with it or not but from the command line I had to issue " snmpwalk -v 2c -c <community> <hostname> within cacti there is only version 1 or 2 not 2c.
Thanks for any help.
Dan
I was running 0.8.3a and was able to graph Canopy equipment with no problem. I have setup a new server with 0.8.6b and have totally rebuilt my database from scratch. I cannot seem to get the canopy radios to respond to a query. I have used the same settings as I used in the old version. And I can do an snmpwalk to the radio from the command line. However, cacti gives me an snmp error at the top of the screen under devices.
I don't know if it has anything to do with it or not but from the command line I had to issue " snmpwalk -v 2c -c <community> <hostname> within cacti there is only version 1 or 2 not 2c.
Thanks for any help.
Dan
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Cacti supports version 1 and 2c...
The problem you are seeing is that that host/device screen uses SNMPv1 to query the device, and I would guess that the Canopy device is not responding to SNMPv1. The fact that you get that error should not stop the graphs from working, just make the graphs and they should work.
To test that this might be the issue, do the following command, if it timeout, the canopy device is not responding to SVMPv1
snmpwalk -v 1 -c <community> <hostname>
This issue will be fixed in later releases of Cacti.
The problem you are seeing is that that host/device screen uses SNMPv1 to query the device, and I would guess that the Canopy device is not responding to SNMPv1. The fact that you get that error should not stop the graphs from working, just make the graphs and they should work.
To test that this might be the issue, do the following command, if it timeout, the canopy device is not responding to SVMPv1
snmpwalk -v 1 -c <community> <hostname>
This issue will be fixed in later releases of Cacti.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
It is not resolved in the CVS...
I will probably be working on fixing this problem in the near future. (After I get back from vacation) at which time I will post it to CVS.
I will probably be working on fixing this problem in the near future. (After I get back from vacation) at which time I will post it to CVS.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Ian is accually working on a patch for this, we discussed some options concerning the code.
Look for it soon in the CVS.
Look for it soon in the CVS.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
The cvs version seems to work partially for me. It no longer gives the snmp error when i add a canopy host, but it seems to have stopped logging much of anything. If you want to give it a try yourself you can get the information on how to get it here. Very simple instructions.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Please insure that you are NOT running 0.8.7 or "MAIN". The stable version to Check Out (CO) is "BRANCH_0_8_6". Although the "MAIN" branch has some exciting things in it, it would be a MAJOR mistake to launch into production with it.
I guarentee, you WILL end up unhappy.
TheWitness
I guarentee, you WILL end up unhappy.
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
I had some problems with the cvs version, so i went back to 0.8.6b with all the patches and attempted to figure out how to make it work. What i did (which may be a horrible idea, and if it is, please tell me so, and why) is to modify snmp.php and just commented out the sections stating that the WebUI snmp is forced to v1. Now if i tell it to run the query using v1, it does (and fails miserably on the canopy gear) and if i tell it v2, it works great. I'm not advocating that you all jump up and do this, and I have no idea why it was limited to v1, there was probably a reason. I'm just saying that it's (so far) working for me.
if you search the snmp.php file for "SNMP_WEBUI" you'll come up with two locations, they both look identical
If you use the /* and */ to comment out those 3 lines like this:
then the snmp queries will be done with whatever version you say to use. 2c in the case of the canopy stuff. Let me restate that i don't know what other things this change may cause, I'm no programmer, i know just enough to screw things up horribly, but this seems to have worked. Good luck, let me know how things turn out.
Code: Select all
/* always use SNMP version 1 for UI stuff */
if ($environ == SNMP_WEBUI) {
$version = "1";
}
Code: Select all
/* always use SNMP version 1 for UI stuff */
/*if ($environ == SNMP_WEBUI) {
$version = "1";
} */
Canopy SNMP v2c
Just another Canopy user... and commenting out those lines works for me too.
Thanks so much for the post.
Brian
Thanks so much for the post.
Brian
Who is online
Users browsing this forum: No registered users and 2 guests