snmp error (Windows)

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
lhunt

snmp error (Windows)

Post by lhunt »

I have installed Cacti on Windows XP and am having a problem with snmp.

The binary paths for snmpget and snmpwalk are both set to <DEFAULT>. Does anyone know what <DEFAULT> refers to? I would like to make sure that the snmpget and snmpwalk binaries are found in this default location.
What snmpget does Cacti try to run (a windows utility, 3rd party utility, or bundled with Cacti)? I have installed and configured Cacti on Linux/Unix systems so a Windows install is new ground for me.

I receive the following after running a verbose query.

Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:\Program Files\Apache Group\Apache2\htdocs\cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned



Thanks,

lhunt
Lux
Cacti User
Posts: 195
Joined: Tue Nov 11, 2003 10:57 am
Location: Luxembourg

Post by Lux »

BY default Cacti uses the PHP snmp implementation. PHP is limited to SNMP version 1 at the moment. If you try to do a query using version 2, Cacti will not produce an error message beyonw what you have seen.

If you need SNMP v2 or v3, you will need an external program. There is a binary of UCD-SNMP for Windows at the Net-snmp home page. When yoiu put in the path for one of these, make sure that you give the full path, including the executable name!

One potential problem that I see with your installation. Most of the programs that Cacti uses were originally developed on a Unix environment. Unix doesn't like spaces in its path names. I have simply avoided using spaces in my paths from the beginning, so I don't know if there are any hidden problems that might occur.

Mike
lhunt

Windows snmp problem

Post by lhunt »

Thanks for your reply Mike. I have downloaded ucd-snmp for windows and have installed the snmpget.exe and snmpwalk.exe files in c:\bin. I have changed the binary paths to point to this location. I can run snmpget and snmpwalk from the command line but I am still receiving the following message when running a verbose query:

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:\Program Files\Apache Group\Apache2\htdocs\cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned

Any information that can help solve this issue would be greatly appreciated. :D

regards,

lhunt
Lux
Cacti User
Posts: 195
Joined: Tue Nov 11, 2003 10:57 am
Location: Luxembourg

Post by Lux »

First check your community string in Cacti. I mistyped one at one point and it took me forever to find the error.

If you have a network analyser on that system, you could obtain all sorts of useful information. If you don't have one, check out Ethereal. With this, you will be able to see if cacti is sending the snmp queries or not. It will also show if the network device is replying.

Check your path again. if you have snmpwalk in c:\bin, then you must put in c:\bin\snmpwalk.exe for the path in Cacti.

Check your network device for access list restrictions on SNMP. If it replies to SNMPwalk from the command line than this isn't an issue....

Finally, check your version of Cacti. If you are using 0.8.5 I would recommend upgrading to 0.8.5a. I never got 0.8.5 to work :(


Mike
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest