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
erwan.l
Cacti User
Posts: 138
Joined: Tue Jan 22, 2008 4:36 am
Contact:

Post by erwan.l »

Hi,
I have uploaded an updated version this week end (v1.0.0.2).
Have you given it a try?
If so can you display the log files.

Trying to see the difference with my production servers and yours but so far I get stuck.

Regards,
Erwan.
malken00
Posts: 34
Joined: Wed Jan 17, 2007 1:22 pm
Contact:

Post by malken00 »

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>
Last edited by malken00 on Fri Feb 15, 2008 11:03 am, edited 1 time in total.
malken00
Posts: 34
Joined: Wed Jan 17, 2007 1:22 pm
Contact:

Post by malken00 »

<edited by malken00>
Last edited by malken00 on Fri Feb 15, 2008 11:03 am, edited 1 time in total.
malken00
Posts: 34
Joined: Wed Jan 17, 2007 1:22 pm
Contact:

Post by malken00 »

Is there a function to 'skip failed objects' maybe? :)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Good gawd man, put that crap in attachments.
erwan.l
Cacti User
Posts: 138
Joined: Tue Jan 22, 2008 4:36 am
Contact:

Post by erwan.l »

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.
erwan.l
Cacti User
Posts: 138
Joined: Tue Jan 22, 2008 4:36 am
Contact:

Post by erwan.l »

about this :
Error in packet.
Reason: (genError) A general failure occured
Failed object: SNMPv2-SMI::enterprises.15.72.3

ignore this, you have probably reached the end of your perf objects and my code did not handle it.

I will fix it in 1.0.0.3 version.

Regards,
Erwan.
malken00
Posts: 34
Joined: Wed Jan 17, 2007 1:22 pm
Contact:

Post by malken00 »

Sorry BSOD :oops:


Thanks Erwan, will give it a try today..! 8)


Any luck on an x64 version? If you give the source out I can work on it. 95% of my servers are x64. :)
erwan.l
Cacti User
Posts: 138
Joined: Tue Jan 22, 2008 4:36 am
Contact:

Post by erwan.l »

about this error (minor) when doing a snmpwalk :
Error in packet.
Reason: (genError) A general failure occured
Failed object: SNMPv2-SMI::enterprises.15.72.3

it is now fixed in version 1.0.0.3 (download it from erwan.l.free.fr).

let me give it a try on x64 this week end.

Regards,
Erwan.
malken00
Posts: 34
Joined: Wed Jan 17, 2007 1:22 pm
Contact:

Post by malken00 »

Erwan,


It is working on x86! :) Thank you very much for the help thus far. :)
erwan.l
Cacti User
Posts: 138
Joined: Tue Jan 22, 2008 4:36 am
Contact:

Post by erwan.l »

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.
malken00
Posts: 34
Joined: Wed Jan 17, 2007 1:22 pm
Contact:

Post by malken00 »

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. :(
Bgardner007
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?

Post by Bgardner007 »

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.
Attachments
My Documents.zip
(19.71 KiB) Downloaded 1097 times
erwan.l
Cacti User
Posts: 138
Joined: Tue Jan 22, 2008 4:36 am
Contact:

Post by erwan.l »

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.
Bgardner007
Posts: 9
Joined: Wed Feb 13, 2008 10:16 am
Location: Tampa, Florida
Contact:

Post by Bgardner007 »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests