Windows performance counters & VBS/WMI via SNMP
Moderators: Developers, Moderators
Eureka! We're getting closer on the 32-bit machine!
It loaded a small portion of the counters this time, but stopped at the end of my SNMP walk with the following:
SNMPv2-SMI::enterprises.15.72.2 = STRING: "2"
SNMPv2-SMI::enterprises.15.72.3 = STRING: "-1"
Error in packet.
Reason: (genError) A general failure occured
Failed object: SNMPv2-SMI::enterprises.15.72.3
<edited by malken00>
It loaded a small portion of the counters this time, but stopped at the end of my SNMP walk with the following:
SNMPv2-SMI::enterprises.15.72.2 = STRING: "2"
SNMPv2-SMI::enterprises.15.72.3 = STRING: "-1"
Error in packet.
Reason: (genError) A general failure occured
Failed object: SNMPv2-SMI::enterprises.15.72.3
<edited by malken00>
Last edited by malken00 on Fri Feb 15, 2008 11:03 am, edited 1 time in total.
Good gawd man, put that crap in attachments.
| 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 |
Hi Malken,
Oki it should be working then now.
SNMPWalk is partially supported which explained why you may get errors here and there.
Looking at the debug :
15:52:57:180,SnmpExtensionQuery
15:52:57:180,SNMP_PDU_GETNEXT
15:52:57:180,GetNextRequest:1.3.6.1.4.1.15.12.1(9)
15:52:57:180,result=6 length=1 idlength=9
15:52:57:180,GetNextRequest OK
15:52:57:180,SnmpExtensionQuery
15:52:57:180,SNMP_PDU_GETNEXT
15:52:57:180,GetNextRequest:1.3.6.1.4.1.15.12.2(9)
15:52:57:180,result=2 length=1 idlength=9
15:52:57:180,GetNextRequest OK
15:52:57:180,SnmpExtensionQuery
15:52:57:180,SNMP_PDU_GETNEXT
15:52:57:180,GetNextRequest:1.3.6.1.4.1.15.12.3(9)
15:52:57:180,result=Active Server Pages length=19 idlength=9
15:52:57:180,GetNextRequest OK
You should read this like this :
OID 1.3.6.1.4.1.15.13.1 (the next oid for 1.3.6.1.4.1.15.12.3) will result in a return "Active Server Pages"
OID 1.3.6.1.4.1.15.13.2 will return the number of counters for that object
OID 1.3.6.1.4.1.15.13.3 will return the number of instances for that object
OID 1.3.6.1.4.1.15.13.6.0.2 will return the value of object.counter.instance 13.6.0 (the number of bytes in on my server).
Use the perf object browser mentionned in my previous post to know the exact oid.
It looks you are pretty close to return the datas you are looking for.
Regards,
Erwan.
Oki it should be working then now.
SNMPWalk is partially supported which explained why you may get errors here and there.
Looking at the debug :
15:52:57:180,SnmpExtensionQuery
15:52:57:180,SNMP_PDU_GETNEXT
15:52:57:180,GetNextRequest:1.3.6.1.4.1.15.12.1(9)
15:52:57:180,result=6 length=1 idlength=9
15:52:57:180,GetNextRequest OK
15:52:57:180,SnmpExtensionQuery
15:52:57:180,SNMP_PDU_GETNEXT
15:52:57:180,GetNextRequest:1.3.6.1.4.1.15.12.2(9)
15:52:57:180,result=2 length=1 idlength=9
15:52:57:180,GetNextRequest OK
15:52:57:180,SnmpExtensionQuery
15:52:57:180,SNMP_PDU_GETNEXT
15:52:57:180,GetNextRequest:1.3.6.1.4.1.15.12.3(9)
15:52:57:180,result=Active Server Pages length=19 idlength=9
15:52:57:180,GetNextRequest OK
You should read this like this :
OID 1.3.6.1.4.1.15.13.1 (the next oid for 1.3.6.1.4.1.15.12.3) will result in a return "Active Server Pages"
OID 1.3.6.1.4.1.15.13.2 will return the number of counters for that object
OID 1.3.6.1.4.1.15.13.3 will return the number of instances for that object
OID 1.3.6.1.4.1.15.13.6.0.2 will return the value of object.counter.instance 13.6.0 (the number of bytes in on my server).
Use the perf object browser mentionned in my previous post to know the exact oid.
It looks you are pretty close to return the datas you are looking for.
Regards,
Erwan.
Hi Malken00,
Glad to see it is working on your x32 servers
Would you mind sharing a graph screeshot so others may benefit from it?
About x64, after a bit of research, it appears that my compiler (delphi) wont run on x64 platforms.
But it seems that x32 code may work on x64 computers (by putting it in the syswow64 folder).
So ,the last track would be to understand what does not work in my code on x64.
Can tell me what you get in the log.txt and also in the app & sys events log?
Regards,
Erwan.
Glad to see it is working on your x32 servers
Would you mind sharing a graph screeshot so others may benefit from it?
About x64, after a bit of research, it appears that my compiler (delphi) wont run on x64 platforms.
But it seems that x32 code may work on x64 computers (by putting it in the syswow64 folder).
So ,the last track would be to understand what does not work in my code on x64.
Can tell me what you get in the log.txt and also in the app & sys events log?
Regards,
Erwan.
Still working on actually graphing the data. I'll post a screen when I'm finished.
For the x64 machines, I tried editing the registry to syswow64 and get:
The SNMP Service is ignoring extension agent dll C:\WINDOWS\syswow64\snmptools.dll because it is missing or misconfigured.
In the system event viewer when starting snmp.
For the x64 machines, I tried editing the registry to syswow64 and get:
The SNMP Service is ignoring extension agent dll C:\WINDOWS\syswow64\snmptools.dll because it is missing or misconfigured.
In the system event viewer when starting snmp.
-
- Posts: 9
- Joined: Wed Feb 13, 2008 10:16 am
- Location: Tampa, Florida
- Contact:
Unable to identify OID and what do you do with it?
So I am fairly new to Cacti and SNMP, but somehow managed to get the Cacti website up and running. Everything appears to be working and graphing correctly, so now I am anxious to try and enhance the product by allowing Cacti to measure Windows Counters.
I have followed the instructions (which btw are awesome) on this page and appear to have SNMPTOOLS working correctly. However I am a bit confused by how to get the OID and what to do with it after I have it. I am trying to capture Avg Queue Length and I am including a screen shot of what IP Tools and MIB Browser reports.
Can anyone help please? Thanks, in advance for any feedback.
I have followed the instructions (which btw are awesome) on this page and appear to have SNMPTOOLS working correctly. However I am a bit confused by how to get the OID and what to do with it after I have it. I am trying to capture Avg Queue Length and I am including a screen shot of what IP Tools and MIB Browser reports.
Can anyone help please? Thanks, in advance for any feedback.
- Attachments
-
- My Documents.zip
- (19.71 KiB) Downloaded 1097 times
Hi Bgardner007,
You have done most of the work and you are almost there.
Looking at your screen shot, the OID you must graph from cacti is :
1.3.6.1.4.1.15.17.4.2.2 .
Notice the last 2 at the end which means you want to get the value for object 17.4.2 under enterprise OID 1.3.6.1.4.1.15.
17.4.2 comes from the iptools screenshot you have attached.
Let me know if it works out for you.
Regards,
Erwan.
PS:I assumed you knew how to use a "snmp generic oid" graph template in cacti.
You have done most of the work and you are almost there.
Looking at your screen shot, the OID you must graph from cacti is :
1.3.6.1.4.1.15.17.4.2.2 .
Notice the last 2 at the end which means you want to get the value for object 17.4.2 under enterprise OID 1.3.6.1.4.1.15.
17.4.2 comes from the iptools screenshot you have attached.
Let me know if it works out for you.
Regards,
Erwan.
PS:I assumed you knew how to use a "snmp generic oid" graph template in cacti.
-
- Posts: 9
- Joined: Wed Feb 13, 2008 10:16 am
- Location: Tampa, Florida
- Contact:
Hey erwan.l,
Thanks for the quick response I think I now have a better understanding of the Enterprise OID and where the 17.4.2 addresses derives from, but when I try to Query that OID in SNMP Tools or MIB Browser I recieve a error message stating SendQuery failed (status:3) or Bad Value in MIB Browser.
Just to confirm the OID I query'ed for was 1.3.6.1.4.1.15.17.4.2.2
1.3.6.1.4.1.15 - reports back snmptools so I know my Enterprise is correct.
Unfortunately, I have tried to merge the REG entry for Debugging but that attempt does not generate a C:\Log.txt....I have also attempted to restart SNMP Service. Any other ideas are definitely welcome.
Thanks for the quick response I think I now have a better understanding of the Enterprise OID and where the 17.4.2 addresses derives from, but when I try to Query that OID in SNMP Tools or MIB Browser I recieve a error message stating SendQuery failed (status:3) or Bad Value in MIB Browser.
Just to confirm the OID I query'ed for was 1.3.6.1.4.1.15.17.4.2.2
1.3.6.1.4.1.15 - reports back snmptools so I know my Enterprise is correct.
Unfortunately, I have tried to merge the REG entry for Debugging but that attempt does not generate a C:\Log.txt....I have also attempted to restart SNMP Service. Any other ideas are definitely welcome.
Who is online
Users browsing this forum: No registered users and 1 guest