For several data sources (processor and partitions) i get output in logs like that (DEBUG level):
Code: Select all
08/15/2005 10:06:27 AM - CMDPHP: Poller[0] Host[9] DS[171] SERVER: /usr/home/alchemist/www/cacti/scripts/ss_host_disk.php ss_host_disk 192.168.19.254 public 1 9 161 500 get total 9, output: U
08/15/2005 10:06:27 AM - CMDPHP: Poller[0] Host[9] DS[171] WARNING: Result from SERVER not valid. Partial Result:
08/15/2005 10:06:27 AM - CMDPHP: Poller[0] Host[9] DS[171] SERVER: /usr/home/alchemist/www/cacti/scripts/ss_host_disk.php ss_host_disk 192.168.19.254 public 1 9 161 500 get used 9, output: U
08/15/2005 10:06:27 AM - CMDPHP: Poller[0] Host[9] DS[171] WARNING: Result from SERVER not valid. Partial Result:
Code: Select all
root@www /home/alchemist/www/cacti# su cactiuser
cactiuser@www /usr/home/alchemist/www/cacti$ php -q script_server.php
PHP Script Server has Started - Parent is cmd
/usr/home/alchemist/www/cacti/scripts/ss_host_disk.php ss_host_disk 192.168.19.254 public 1 9 161 500 get total 9
259766272
quit
PHP Script Server Shutdown request received, exiting
cactiuser@www /usr/home/alchemist/www/cacti$
Code: Select all
select * from poller_item where local_data_id=171;
local_data_id,poller_id,host_id,action,hostname,snmp_community,snmp_version,snmp_username,snmp_password, snmp_port,snmp_timeout,rrd_name,rrd_path,rrd_num,rrd_step,rrd_next_step,arg1,arg2,arg3,
171,0,9,2,192.168.19.254,public,1,,,161,500,hdd_total, /usr/home/alchemist/www/cacti/rra/smolserver_hdd_total_171.rrd, 2,300,0,/usr/home/alchemist/www/cacti/scripts/ss_host_disk.php ss_host_disk 192.168.19.254 public 1 9 161 500 get total 9,,,
171,0,9,2,192.168.19.254,public,1,,,161,500,hdd_used, /usr/home/alchemist/www/cacti/rra/smolserver_hdd_total_171.rrd, 2,300,0,/usr/home/alchemist/www/cacti/scripts/ss_host_disk.php ss_host_disk 192.168.19.254 public 1 9 161 500 get used 9,,,
Code: Select all
08/15/2005 11:00:53 AM - PHPSVR: Poller[0] DEBUG: INCLUDE: '/usr/home/alchemist/www/cacti/scripts/ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: '192.168.250.2 public 1 4 161 500 get total 9'
08/15/2005 11:00:53 AM - CMDPHP: Poller[0] Host[4] DS[55] SERVER: /usr/home/alchemist/www/cacti/scripts/ss_host_disk.php ss_host_disk 192.168.250.2 public 1 4 161 500 get total 9, output: 259766272
08/15/2005 11:00:53 AM - PHPSVR: Poller[0] SERVER: /usr/home/alchemist/www/cacti/scripts/ss_host_disk.php ss_host_disk 192.168.250.2 public 1 4 161 500 get total 9 output 59766272
Please help!