Windows performance counters & VBS/WMI via SNMP
Moderators: Developers, Moderators
Re: Windows performance counters & VBS/WMI via SNMP
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
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 (80.33 KiB) Viewed 7331 times
Re: Windows performance counters & VBS/WMI via SNMP
minor news :
-snmptools moved to http://erwan.labalec.fr (first post modified)
-latest version 2.0.0.17 (minor improvements around memory usage)
/Erwan
-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]
my web site : [url]http://erwan.labalec.fr/[/url]
Re: Windows performance counters & VBS/WMI via SNMP
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.
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.
Re: Windows performance counters & VBS/WMI via SNMP
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?
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?
Re: Windows performance counters & VBS/WMI via SNMP
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
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 (28 KiB) Viewed 6518 times
Re: Windows performance counters & VBS/WMI via SNMP
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?
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?
Re: Windows performance counters & VBS/WMI via SNMP
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]
my web site : [url]http://erwan.labalec.fr/[/url]
Re: Windows performance counters & VBS/WMI via SNMP
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.
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.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"
Once you know which counter you want to monitor, add it to config.ini like below.
Regards,Code: Select all
[1.3.6.1.4.1.15.1] counter=PhysicalDisk\Avg. Disk Queue Length\_Total
Erwan
my blog : [url]http://labalec.fr/erwan/[/url]
my web site : [url]http://erwan.labalec.fr/[/url]
my web site : [url]http://erwan.labalec.fr/[/url]
Who is online
Users browsing this forum: No registered users and 1 guest