I've got perfmon displaying the current number of ASP.NET requests on a Windows 2008 server, all good there.

I've enabled the SNMP service and I can perform an snmpwalk (Linux command to browse the snmp MIBs) on the machine.

I'm now looking to export the perfmon data so I can read this via SNMP.

link|improve this question
feedback

3 Answers

up vote 2 down vote accepted

I don't believe Performance Monitor counters are available through SNMP out of the box. There are some add-ons available that will add that functionality though.

A paid version: SNMP Informant

and a free one: SNMP Tools

link|improve this answer
snmptools did the job perfectly. I couldn't export the native counters, but I used the "exec" with the included perf32.exe to print out the appropiate counters. For anyone interested also, the counter I've started with is \Web Service(_Total)\Total Connection Attempts (all instances) – Phil Jul 9 '09 at 15:33
feedback

Install snmptools and add counters to the counters.ini file.Perfmon counters can be obtained using "Typeperf -qx" command. Example below shows counter.ini file with few general counters.

the base OID is 1.3.6.1.4.1.15

;% Processor Time - 2.1.x


[1.3.6.1.4.1.15.2.1.1]

counter=Processor\% Processor Time\_Total

;Memory - 5.1.x


[1.3.6.1.4.1.15.5.1.1] 

counter=Memory\Available Bytes

;Paging File - 6.1.x


[1.3.6.1.4.1.15.6.1.1]
counter=Paging File(_Total)\% Usage

[1.3.6.1.4.1.15.6.1.2]
counter=Paging File(_Total)\% Usage Peak  

Restart SNMP, check returned values:
snmpget -v2c -c public hostname 1.3.6.1.4.1.15.5.1.1
iso.3.6.1.4.1.15.5.1.1 = STRING: "2235023360"

This counter returns available memory in Bytes.

link|improve this answer
feedback

Phil can I get more information or an example configuration for collecting these counters, I need to get them but I don't want to reinvent the wheel if possible. I have download and installed the snmptools, any help examples would be great!

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.