Problem with snmp query to Motorola Canopy

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

cpdans
Posts: 43
Joined: Mon Oct 28, 2002 7:59 am

Problem with snmp query to Motorola Canopy

Post by cpdans »

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
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

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.
[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]
cpdans
Posts: 43
Joined: Mon Oct 28, 2002 7:59 am

Post by cpdans »

You were correct. It actually was polling the device. Do you have any idea when this problem will be resolved. Is it resolved in the cvs?

Thanks again for your help.

Dan
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

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.
[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]
cpdans
Posts: 43
Joined: Mon Oct 28, 2002 7:59 am

Post by cpdans »

Great, thanks for the help.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Ian is accually working on a patch for this, we discussed some options concerning the code.

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]
cpdans
Posts: 43
Joined: Mon Oct 28, 2002 7:59 am

Post by cpdans »

Excellent, thanks for the update. A note when it is posted would be very appreciated.

Dan
Guest

Post by Guest »

Do you happen to know if this has been released in the cvs yet? Or even better a patch? If it is in the CVS do you happen to know how I can get it to install? I have never used a CVS version of anything. Thanks in advance for your help.

Dan
naitram
Posts: 3
Joined: Tue Dec 14, 2004 2:23 am

Post by naitram »

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.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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?
Guest

Post by Guest »

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.
cpdans
Posts: 43
Joined: Mon Oct 28, 2002 7:59 am

Post by cpdans »

I would be willing to try your modification of snmp.php. Do you mind giving me an example of before and after as well as the modification that you made. I am afraid that I am not much of a programmer. Any help you could give would be great.

Thanks in advance,

Dan
naitram
Posts: 3
Joined: Tue Dec 14, 2004 2:23 am

Post by naitram »

if you search the snmp.php file for "SNMP_WEBUI" you'll come up with two locations, they both look identical

Code: Select all

/* always use SNMP version 1 for UI stuff */
        if ($environ == SNMP_WEBUI) {
                $version = "1";
        }
If you use the /* and */ to comment out those 3 lines like this:

Code: Select all

/* always use SNMP version 1 for UI stuff */
        /*if ($environ == SNMP_WEBUI) {
                $version = "1";
        } */
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.
cpdans
Posts: 43
Joined: Mon Oct 28, 2002 7:59 am

Post by cpdans »

You are awesome. This works great. Thanks for the help.

Dan
Guest

Canopy SNMP v2c

Post by Guest »

Just another Canopy user... and commenting out those lines works for me too.
Thanks so much for the post.

Brian
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest