I am running Cacti 0.8.7d on Linux (SuSe SLES 10.1).
I want to monitor the CPU usage of our Windows 2003 servers using Cacti and added those hosts using the Windows 2000/XP Host template.
The "SNMP - Interface Statistics" query works fine, returning 14 items, 2 rows, and no problems with the SNMP queries "Host MIB - Logged in Users" and "Host MIB - Processes" either.
However, the "SNMP - Get Processor Information" query returns status "Success [0 Items, 0 Rows]", with the following debug information:
Code: Select all
+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at '/opt/cacti-0.8.7d/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /opt/cacti-0.8.7d/scripts/ss_host_cpu.php MYHOST 25 2:161:500:1:20:XXXXX:::MD5::DES: index'
+ Executing script query '/usr/bin/php -q /opt/cacti-0.8.7d/scripts/ss_host_cpu.php MYHOST 25 2:161:500:1:20:XXXXX:::MD5::DES: query index'
+ Found data query XML file at '/opt/cacti-0.8.7d/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/opt/cacti-0.8.7d/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/opt/cacti-0.8.7d/resource/script_server/host_cpu.xml'
snmpwalk runs fine:
Code: Select all
snmpwalk -v2c -c 'XXXXX' MYHOST processor
HOST-RESOURCES-MIB::hrProcessorFrwID.2 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.3 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.4 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.5 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.6 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.7 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.8 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.9 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorLoad.2 = INTEGER: 0
HOST-RESOURCES-MIB::hrProcessorLoad.3 = INTEGER: 2
HOST-RESOURCES-MIB::hrProcessorLoad.4 = INTEGER: 0
HOST-RESOURCES-MIB::hrProcessorLoad.5 = INTEGER: 2
HOST-RESOURCES-MIB::hrProcessorLoad.6 = INTEGER: 4
HOST-RESOURCES-MIB::hrProcessorLoad.7 = INTEGER: 1
HOST-RESOURCES-MIB::hrProcessorLoad.8 = INTEGER: 1
HOST-RESOURCES-MIB::hrProcessorLoad.9 = INTEGER: 5
... and running the ss_host_cpu.php script manually does actually retrieves the correct data:
Code: Select all
php /opt/cacti/scripts/ss_host_cpu.php MYHOST 25 2:161:500:1:10:XXXXX:::MD5::DES: query usage
0!1
1!0
2!0
3!1
4!3
5!3
6!2
7!3
When I turn on DEBUG logging, I get the following entries for this host:
Code: Select all
03/30/2009 11:55:04 AM - CMDPHP: Poller[0] Host[25] PING: UDP Ping Success (1.89 ms)
03/30/2009 11:55:04 AM - CMDPHP: Poller[0] Host[25] RECACHE: Processing 3 items in the auto reindex cache for 'MYHOST'.
03/30/2009 11:55:04 AM - CMDPHP: Poller[0] Host[25] DS[481] SNMP: v2: MYHOST, dsname: proc, oid: .1.3.6.1.2.1.25.1.6.0, output: 112
03/30/2009 11:55:04 AM - CMDPHP: Poller[0] Host[25] DS[480] SNMP: v2: MYHOST, dsname: users, oid: .1.3.6.1.2.1.25.1.5.0, output: 13
03/30/2009 11:55:04 AM - CMDPHP: Poller[0] Host[25] DS[479] SNMP: v2: MYHOST, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.65539, output: 494549702
03/30/2009 11:55:04 AM - CMDPHP: Poller[0] Host[25] DS[479] SNMP: v2: MYHOST, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.65539, output: 3911759620
I have searched the forum and Google and found quite a few entries with the same issue, but none specifies what exactly is going wrong and how to fix it.
I would appreciate any help to get this solved.
Thanks!