cacti with SNMP4W2K

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

Moderators: Developers, Moderators

Post Reply
boubouche
Posts: 1
Joined: Wed Feb 05, 2003 8:39 am

cacti with SNMP4W2K

Post by boubouche »

I have installed SNMP4W2K on my windows 2000 pro, and i try to get all the information about my PC but i have only the network traffic, why ???
Can you help me ??

Thanks :roll:
Boubouche

Ca progresse ...
jlancaster
Posts: 38
Joined: Tue Feb 04, 2003 12:05 pm
Location: Dallas, TX
Contact:

Post by jlancaster »

Which Data Input Source (DIS) are you using to poll SNMP on Windows? You should be using "Get SNMP Data".

Also note that the guy that supports SNMP4W2K encourages the use of GetIf to browse the mibs on the target host to figure out where and what you want to poll. I discovered a wierd error in GetIf when I tried to install it on the same WinXP Pro workstation that I am using to test Cacti.

Installing Cacti on a Windows box requires that you move the mib files that come with PHP to the C:\USR\MIBS directory. GetIf normally looks for mib files in the subdirectory immediately below the directory where it is installed. (e.g., C:\Program Files\GetIf v2.2\mibs). However, I discovered that GetIf will also find the mib files in C:\USR\MIBS and not work properly because the mib files that come with PHP are SNMPv2. GetIf only works with SNMPv1.

The only way I was able to work around the problem is to write a batch file to temporarily move C:\USR\MIBS until after I started GetIf, then move it back. I can post the batch file if you'd like.

After browsing the mib and deciding on what to monitor, I also discovered that OIDs I specified must include a leading "." or the poll won't work. For example, to poll for NetWare processor load, I used an OID of ".1.3.6.1.2.1.25.3.3.1.2.1" where the ".1" at the end of the string indicates the OID instance. I think the leading "." must be an idiosyncracy of PHP; Perl does not use it.

Hope this helps.
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

Leading "." is rather standard in snmp world. For example ucd(net)-snmp uses the same notation. Seems that dot should be recognized as a root of the MIB tree.

- bulek
DavidM
Posts: 34
Joined: Sat Feb 08, 2003 9:52 pm

Post by DavidM »

Can someone tell me how to add an OID from a Windows MIB to Cacti on Linux?

I have the OID # -- I just don't know how to get the counters from Linux and into Cacti. Is there a built in script for this?

Please advise.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests