|
|
| Author |
Message |
boubouche
Joined: 05 Feb 2003 Posts: 1
|
Posted: Wed Feb 05, 2003 8:42 am Post subject: cacti with SNMP4W2K |
|
|
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  |
|
| Back to top |
|
 |
jlancaster
Joined: 04 Feb 2003 Posts: 38 Location: Dallas, TX
|
Posted: Thu Feb 13, 2003 3:40 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
bulek Cacti Pro User
Joined: 20 May 2002 Posts: 852 Location: Poland
|
Posted: Thu Feb 13, 2003 5:11 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
DavidM
Joined: 08 Feb 2003 Posts: 34
|
Posted: Sun Feb 16, 2003 7:57 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
|