Windows performance counters & VBS/WMI via SNMP

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

Moderators: Developers, Moderators

Post Reply
dacrowsam
Posts: 2
Joined: Sat Jan 07, 2012 6:03 pm

Re: Windows performance counters & VBS/WMI via SNMP

Post by dacrowsam »

Hi
I did the default query and everything worked

I am trying to get the outlook rpc values when I use the iptools i query it and get the value

but when i use any of the snmp query i always get 0

i have attached my raw perf counters and here is my counters file
[1.3.6.1.4.1.15.2.1.1]
type=string
counter=1


[1.3.6.1.4.1.15.2.2.1]
type=string
counter=Time Avg (all)


[1.3.6.1.4.1.15.2.3.1]
counter=Outlook\Time Avg (all)

here is my debug log

14:49:39:930 , SnmpExtensionQueryEx, len:1
14:49:39:930 , nRequestType=SNMP_EXTENSION_GET
14:49:39:930 , GetRequest: OID=1.3.6.1.4.1.15.2.3.1 (10)
14:49:39:930 , GetPerf: path=Outlook\Time Avg (all)
14:49:39:930 , GetPerf: pdh_counter_path=\Outlook\Time Avg (all)
14:49:40:930 , GetPerf: vartype=Double
14:49:40:930 , GetRequest: value=0 asn_type=2
14:49:40:930 , GetRequest: OK

please help i cant seem to get it to work
Attachments
iptools.png
iptools.png (80.33 KiB) Viewed 7447 times
erwan.l
Cacti User
Posts: 138
Joined: Tue Jan 22, 2008 4:36 am
Contact:

Re: Windows performance counters & VBS/WMI via SNMP

Post by erwan.l »

minor news :

-snmptools moved to http://erwan.labalec.fr (first post modified)
-latest version 2.0.0.17 (minor improvements around memory usage)

/Erwan
my blog : [url]http://labalec.fr/erwan/[/url]
my web site : [url]http://erwan.labalec.fr/[/url]
aacable
Posts: 2
Joined: Tue Jul 24, 2012 12:38 am

Re: Windows performance counters & VBS/WMI via SNMP

Post by aacable »

I have installed the snmptools on windows 2008 64bit. I can query the default oid's in the c:\counters.ini , I tried to add some other counters related to disk and they worked too.
But the problem is that if I try to add any Forefront TMG 2010 counter, it return nothing. just blank.

How can I monitor Forefront TMG 2010 via snmptools?

snmptools on windows 2003 works great because I dont have to manually enter the counter, all counters comes in .15 tree, but in 2008, they dont.
Mooninite
Posts: 1
Joined: Thu Apr 26, 2012 7:40 am

Re: Windows performance counters & VBS/WMI via SNMP

Post by Mooninite »

Very promising tool, I've been struggling to find something like this for a while.
But there are a couple of thing I don't get.
I installed snmptools using snmptools64.exe, I can get the "snmptools" string by querying the enteprisde oid. But strangely I don't have any entries in HKLM\Software\snmptools.

As I understand, the common way to query oids is through adding them to counter.ini? Can someone please explain the other parts of this file?
And in some posts there are some hardcoded oids mentioned, how can I get a list of them?
peoples
Posts: 1
Joined: Sat Feb 16, 2013 7:14 pm

Re: Windows performance counters & VBS/WMI via SNMP

Post by peoples »

First thank you erwan.l for your great work ...

One question, how you know which performance couter refers to a specified OID ?
Performance counters in your sniffer just show me the path not the objects and index ? See screenshot

Thanks
regards
Alex
Attachments
sniffer.PNG
sniffer.PNG (28 KiB) Viewed 6634 times
pmw
Posts: 1
Joined: Tue Aug 11, 2015 5:00 am

Re: Windows performance counters & VBS/WMI via SNMP

Post by pmw »

Topic seems to be pretty dead, I'll still try my luck.

I installed 64bit version of this tool into my Windows 7 Pro machine.
I got the same error as guys before me, event viewer says files are damaged.

Install is completely fresh, I've restarted SNMP and tried to add Debug => 1, but nothing helps. And I see no debug log either.
Is the tool obsolete? Or is there something I've missed?
erwan.l
Cacti User
Posts: 138
Joined: Tue Jan 22, 2008 4:36 am
Contact:

Re: Windows performance counters & VBS/WMI via SNMP

Post by erwan.l »

double post...
Last edited by erwan.l on Sat Aug 22, 2015 2:10 pm, edited 1 time in total.
my blog : [url]http://labalec.fr/erwan/[/url]
my web site : [url]http://erwan.labalec.fr/[/url]
erwan.l
Cacti User
Posts: 138
Joined: Tue Jan 22, 2008 4:36 am
Contact:

Re: Windows performance counters & VBS/WMI via SNMP

Post by erwan.l »

erwan.l wrote:Hi There,

I have been away for some time but I am back to coding these last days.

Post your issues there and I'll do my best to support/fix/improve snmptools.

About the x64 version, please ignore it : it is far from being as stable and complete as the x32 version.

The x32 version works pretty fine on x64 servers (been using it on a few production servers at my side).
For x32 on x64, use the correct reg file (regagentWow6432.reg).
For x32 on x32, use the standard reg file (regagent.reg).

The reg file looks like below.

Code: Select all

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"
"debug"="1"
"counters"="c:\\counters.ini"
To find counters, most sys admins will probably know what to look for for the perf32.exe (in the zip file) will list all counters for you.

Once you know which counter you want to monitor, add it to config.ini like below.

Code: Select all

[1.3.6.1.4.1.15.1]
counter=PhysicalDisk\Avg. Disk Queue Length\_Total
Regards,
Erwan
my blog : [url]http://labalec.fr/erwan/[/url]
my web site : [url]http://erwan.labalec.fr/[/url]
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest