I have the same problem, but with a right snmpwalk.
I use the last cacti : cacti-0.8.6b-1.
Data Query Debug Information
+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/html/cacti/scripts/ss_host_cpu.php 192.168.1.84 public 2 index'
+ Executing script query '/usr/bin/php -q /var/www/html/cacti/scripts/ss_host_cpu.php 192.168.1.84 public 2 query index'
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/host_cpu.xml'
It's ok.
snmpwalk :
# snmpwalk 192.168.1.84 .1.3.6.1.2.1.25.3.3
hrProcessorFrwID.7 zeroDotZero
hrProcessorLoad.7 15
And manually :
# php /var/www/html/cacti/scripts/ss_host_cpu.php 192.168.1.84 public 2 index
#
Nothing
I dunno why i have "2 index", but if i do :
# php /var/www/html/cacti/scripts/ss_host_cpu.php 192.168.1.84 public
1 index
0
#
I have 0 in result.
Note that :
# php /var/www/html/cacti/scripts/ss_host_cpu.php 192.168.1.84 public 2 query index
# php /var/www/html/cacti/scripts/ss_host_cpu.php 192.168.1.84 public 1 query index
0!0