Windows performance counters & VBS/WMI via SNMP
Moderators: Developers, Moderators
Windows performance counters & VBS/WMI via SNMP
Hello there,
I have been using cacti in production environement for a while and the tool is great and has been very helpful in many situations.
Still, MS Windows does not always provide the right OID's, and particularly when it comes to retrieve performance counters.
This is why I have developped a snmp agent that is simply an interface between SNMP and the windows perf counters.
This way, any existing perf counters on my windows boxes can be retrieved via snmp and used from cacti running on my linux box.
The agent can also debug incoming snmp requests to a log file.
So the tool is there with a quick how to : http://erwan.labalec.fr/snmptools .
The tool is a freeware, provided as is, and is meant to eventually help sysadmins monitoring windows boxes.
Any feedback welcome.
Regards,
Erwan.
Added :
-An oid can now also point to an external executable (like a vbs / wmi script).
-SnmpTools now support 32 and 64 bits platforms.
-Snmptools also support snmp v2c, spine, and 64 bits counters.
Tested fine on w2k, w2k3, w2k8.
Current version : 2.0.0.16 history here http://erwan.labalec.fr/snmptools/history.txt
Download (binaries included in zip file) http://erwan.labalec.fr/snmptools/snmptools2.zip
Download (32bits installer) http://erwan.labalec.fr/snmptools/snmptools32.exe
Download (64bits installer) http://erwan.labalec.fr/snmptools/snmptools64.exe
Source Code (latest version minus 1) http://sourceforge.net/projects/snmptools/
I have been using cacti in production environement for a while and the tool is great and has been very helpful in many situations.
Still, MS Windows does not always provide the right OID's, and particularly when it comes to retrieve performance counters.
This is why I have developped a snmp agent that is simply an interface between SNMP and the windows perf counters.
This way, any existing perf counters on my windows boxes can be retrieved via snmp and used from cacti running on my linux box.
The agent can also debug incoming snmp requests to a log file.
So the tool is there with a quick how to : http://erwan.labalec.fr/snmptools .
The tool is a freeware, provided as is, and is meant to eventually help sysadmins monitoring windows boxes.
Any feedback welcome.
Regards,
Erwan.
Added :
-An oid can now also point to an external executable (like a vbs / wmi script).
-SnmpTools now support 32 and 64 bits platforms.
-Snmptools also support snmp v2c, spine, and 64 bits counters.
Tested fine on w2k, w2k3, w2k8.
Current version : 2.0.0.16 history here http://erwan.labalec.fr/snmptools/history.txt
Download (binaries included in zip file) http://erwan.labalec.fr/snmptools/snmptools2.zip
Download (32bits installer) http://erwan.labalec.fr/snmptools/snmptools32.exe
Download (64bits installer) http://erwan.labalec.fr/snmptools/snmptools64.exe
Source Code (latest version minus 1) http://sourceforge.net/projects/snmptools/
Last edited by erwan.l on Wed Apr 11, 2012 10:56 am, edited 13 times in total.
hmm, very interesting. I'll have to give it a try this weekend.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Erwan,
Maybe I spoke a bit too soon. I have this setup on a test box, dumped the .zip file contents into the system32 folder and then ran the registry edit successfully. I can browse all the normal SNMP OID's on windows, but get
enterprises.15 = No Such Object available on this agent at this OID
When checking 15
Maybe I spoke a bit too soon. I have this setup on a test box, dumped the .zip file contents into the system32 folder and then ran the registry edit successfully. I can browse all the normal SNMP OID's on windows, but get
enterprises.15 = No Such Object available on this agent at this OID
When checking 15
Hi,
The oid is 1.3.6.1.4.1.15.
snmp get this oid and you should get snmptools.
merge the reg file :
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\ExtensionAgents]
"snmptools"="SOFTWARE\\snmptools\\CurrentVersion"
[HKEY_LOCAL_MACHINE\SOFTWARE\snmptools\currentversion]
"Pathname"="%systemroot%\\system32\\snmptools.dll"
Add debug="1" (string) under [HKEY_LOCAL_MACHINE\SOFTWARE\snmptools\currentversion] to debug to c:\log.txt.
Restart the snmp agent.
Let me know what you get in your log.txt so that I may be able to help you.
Regards,
Erwan.
The oid is 1.3.6.1.4.1.15.
snmp get this oid and you should get snmptools.
merge the reg file :
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\ExtensionAgents]
"snmptools"="SOFTWARE\\snmptools\\CurrentVersion"
[HKEY_LOCAL_MACHINE\SOFTWARE\snmptools\currentversion]
"Pathname"="%systemroot%\\system32\\snmptools.dll"
Add debug="1" (string) under [HKEY_LOCAL_MACHINE\SOFTWARE\snmptools\currentversion] to debug to c:\log.txt.
Restart the snmp agent.
Let me know what you get in your log.txt so that I may be able to help you.
Regards,
Erwan.
Uhm indeed, this is wierd.
The good news is that the agent is installed sucessfully and starts along with the snmp daemon.
The bad news is that it cannot retrieve the local perf counters and therefore terminates right away.
What kind of windows server is this?
I have tested snmptools ok with w2k and w2k3, standard and enterprise edition, 32 bits.
Regards,
Erwan.
PS :
to test perf counters, you can use iptools to list these.
download here : http://Erwan.l.free.fr/sniffer.zip, and goto tools\ms networks\perf counters and get a screen like the one below.
if you get a similar list as below, at least I know that the perf counters part is fine and I have to look on the snmp agent part.
if it is a perf issue, see MS KB there : http://support.microsoft.com/kb/300956/en-us (lodctr /R to rebuild counters list).
The good news is that the agent is installed sucessfully and starts along with the snmp daemon.
The bad news is that it cannot retrieve the local perf counters and therefore terminates right away.
What kind of windows server is this?
I have tested snmptools ok with w2k and w2k3, standard and enterprise edition, 32 bits.
Regards,
Erwan.
PS :
to test perf counters, you can use iptools to list these.
download here : http://Erwan.l.free.fr/sniffer.zip, and goto tools\ms networks\perf counters and get a screen like the one below.
if you get a similar list as below, at least I know that the perf counters part is fine and I have to look on the snmp agent part.
if it is a perf issue, see MS KB there : http://support.microsoft.com/kb/300956/en-us (lodctr /R to rebuild counters list).
- Attachments
-
- perf.jpg (61.56 KiB) Viewed 74913 times
Who is online
Users browsing this forum: No registered users and 1 guest