SNMP-Informant-STD CPU Usage (Windows)

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

ajeskey
Cacti User
Posts: 93
Joined: Mon Mar 28, 2005 4:31 pm
Location: Boston, MA

Post by ajeskey »

I am going to go back through all of my scripts once the new major rev of cacti is released.
- Aaron Jeskey
User avatar
ajohnson
Posts: 36
Joined: Tue Dec 27, 2005 5:36 pm

Getting _Total

Post by ajohnson »

I've been able to get _Total to show up in the initial query by changing these in the SNMP Query XML:

<oid_index>.1.3.6.1.4.1.9600.1.1.5.1.1</oid_index> (Removed the third .1 from the end)

and the OID for CPU instance to the same.

The only problem is, I don't know what the parse syntax I need to get the .6.95.84.111.116.97.108 (the rest of the OID for _Total) so that the data can be polled and fed into the RRD.

If someone is good at OID parsing, it would be great if you could show me how this is done...

Thanks,
Andrew
Jeppe
Posts: 47
Joined: Sun Feb 09, 2003 4:48 am
Contact:

Post by Jeppe »

Code: Select all

<interface>
<name>Win32 - Informant - CPU Stats</name>
<description>Using SNMP-Informant Queries a host for a list of CPU(s) and their stats</descri$
<oid_index>.1.3.6.1.4.1.9600.1.1.5.1.1</oid_index>
<oid_index_parse>OID/REGEXP:.*(1\.48)$</oid_index_parse>                  
<index_order_type>numeric</index_order_type>
That might work? No, didn't try it. :)
User avatar
ajohnson
Posts: 36
Joined: Tue Dec 27, 2005 5:36 pm

Post by ajohnson »

Nah, did it another way. I just realized that _Total has the same OIDs on everymachine. I just setup 3 data templates for the Processor/Privileged/User time and graphed them the same as the indexed CPUs.

I could've written an XML or script, but I hate coding.
tgk
Posts: 28
Joined: Sat Mar 11, 2006 10:46 pm

Post by tgk »

I backed up the last .1 from the oid (like ajohnson suggests), and got it working with _total included:

<oid_index>.1.3.6.1.4.1.9600.1.1.5.1.1</oid_index>
<oid_index_parse>OID/REGEXP:.*\.9600\.1\.1\.5\.1\.1\.(.*)$</oid_index_parse>
ceyounger
Posts: 44
Joined: Fri Feb 10, 2006 2:59 pm
Location: Orange County, CA
Contact:

Post by ceyounger »

Has anyone found a solution to this? I get the same results ever since upgrading to 0.8.6i

Code: Select all

+ Running data query [17].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/snmp_informant_cpu.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9600.1.1.5.1.1'
+ Located input field 'cpuinformInstance' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9600.1.1.5.1.1.1'
+ Found item [cpuinformInstance='End of MIB'] index: End of MIB [from value]
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/snmp_informant_cpu.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/snmp_informant_cpu.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/snmp_informant_cpu.xml'
Yet when I snmpwalk on the commandline I get instances:

Code: Select all

snmpwalk -v 2c -c public 192.168.185.76 .1.3.6.1.4.1.9600.1.1.5.1.1.1
SNMPv2-SMI::enterprises.9600.1.1.5.1.1.1.48 = STRING: "0"
SNMPv2-SMI::enterprises.9600.1.1.5.1.1.1.49 = STRING: "1"
SNMPv2-SMI::enterprises.9600.1.1.5.1.1.1.50 = STRING: "2"
SNMPv2-SMI::enterprises.9600.1.1.5.1.1.1.51 = STRING: "3"
I've tried all these suggestions in this thread to no avail.
rubioley
Posts: 1
Joined: Fri Oct 08, 2010 5:01 am

Re: SNMP-Informant-STD CPU Usage (Windows)

Post by rubioley »

How influential are physical memory and CPU on the performance of games? For instance, if you had two computers that were identical, except one had a dualcore processor and 1 gig of ram, and the other had a hexacore CPU and 4 gig of ram, how noticeable would the performance difference be?
_______________________
keyword research ~ keyword tool ~ keyword tracking ~ affiliate elite
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests