My Data Query for "available harddisks" works fine, I made a Data Template for the free space in GB, a graph template and so one...
The querie tells me the available drive letters for the Win2000 Device and I'm able to create a graph for each harddisk.
In the cacti logfile I found the according entry:
09/26/2005 05:21:02 PM - CMDPHP: Poller[0] Host[31] DS[124] SNMP: v1: nwsh1-management.stadt-nw.de, dsname: snmpi_freemb, oid: .1.3.6.1.4.1.9600.1.1.1.1.20.2.68.58, output: 8025
Now i wanted to do the same for the CPU of this win machine. Doing the same steps I created the XML File:
Created a Data Query, Data and Graph Template. And I'm also able to list the CPUs of my Device, they are named "0" and "1". I'm also able to create the graphs with the according Data Sources, but cacti ist not polling any data.<query>
<name>Win32 CPU Table - SNMP (Informant)</name>
<description>Using SNMP-Informant Queries for a list of cpus and their stats</description>
<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\.([0-9\.]*)$</oid_index_parse>
<index_order>informCpuInstance</index_order>
<index_order_type>alphabetic</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<informCpuInstance>
<name>Cpu Instance</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.9600.1.1.5.1.1</oid>
</informCpuInstance>
<informPercentProcessorTime>
<name>Percent Processor Time</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.9600.1.1.5.1.5</oid>
</informPercentProcessorTime>
</fields>
</query>
I can't find an entry in the logfile ?
The data Source debug says:
And here the data query debug (this is only a one cpu machine, but i tested it also on a 2 cpu machine)Data Source Debug
c:/rrdtool/rrdtool.exe create \
C:/cactid/rra/nwsh1management_snmpi_cputime_126.rrd \
--step 300 \
DS:snmpi_cputime:GAUGE:600:0:100 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \
Data Query Debug Information
+ Running data query [11].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:/cactid/resource/script_queries/win32_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 'informCpuInstance' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9600.1.1.5.1.1'
+ Found item [informCpuInstance='0'] index: 1.48 [from value]
+ Found item [informCpuInstance='_Total'] index: 6.95.84.111.116.97.108 [from value]
+ Found data query XML file at 'C:/cactid/resource/script_queries/win32_cpu.xml'
+ Found data query XML file at 'C:/cactid/resource/script_queries/win32_cpu.xml'
+ Found data query XML file at 'C:/cactid/resource/script_queries/win32_cpu.xml'
+ Found data query XML file at 'C:/cactid/resource/script_queries/win32_cpu.xml'