I've got a stock Kernel 2.6.15.4 with Fedora Core 2and here are my tools versions :
rrdtool 1.0.50-2.1
net-snmp 5.1.1-2
MySQL 4.0.20
cacti 0.8.6h
cactid 0.8.6g
All the other graphs work pretty well but the disk space stay empty.
This patch : http://forums.cacti.net/viewtopic.php?t=9534
doesn't fix the problem and I get a lot of error messages in the logs. Here is a sample of the cacti log in debug mode :
I think it's a problem with the ss_host_disk function.04/17/2006 09:35:00 PM - CACTID: Poller[0] DEBUG: MySQL Query ID '25': 'SELECT
action,hostname,snmp_community,snmp_version,snmp_username,snmp_password,rrd_name,rrd_path,arg1,arg2,arg3,local_data
_id,rrd_num,snmp_port,snmp_timeout FROM poller_item WHERE host_id=2 ORDER BY arg1'
04/17/2006 09:35:00 PM - CACTID: Poller[0] DEBUG: MySQL Query ID '25': OK
04/17/2006 09:35:00 PM - PHPSVR: Poller[0] DEBUG: INCLUDE:
'/usr/local/apache/sites/CACTI/htdocs/scripts/ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: '192.168.X.X 2
1:161:500:public:::MD5::[None] get total 4'
04/17/2006 09:35:00 PM - CACTID: Poller[0] Host[2] DS[17] SS[0] WARNING: Result from SERVER not valid. Partial
Result:
Warning: main(/usr/...
04/17/2006 09:35:00 PM - CACTID: Poller[0] Host[2] DS[17] SS[0] SERVER:
/usr/local/apache/sites/CACTI/htdocs/scripts/ss_host_disk.php ss_host_disk 192.168.X.X 2
1:161:500:public:::MD5::[None] get total 4, output: U
04/17/2006 09:35:00 PM - PHPSVR: Poller[0] WARNING: Function does not exist
04/17/2006 09:35:00 PM - CACTID: Poller[0] Host[2] DS[17] SS[0] WARNING: Result from SERVER not valid. Partial
Result:
Warning: main(): Fa...
04/17/2006 09:35:00 PM - CACTID: Poller[0] Host[2] DS[17] SS[0] SERVER:
/usr/local/apache/sites/CACTI/htdocs/scripts/ss_host_disk.php ss_host_disk 192.168.X.X 2
1:161:500:public:::MD5::[None] get used 4, output: U
04/17/2006 09:35:00 PM - PHPSVR: Poller[0] DEBUG: INCLUDE:
'/usr/local/apache/sites/CACTI/htdocs/scripts/ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: '192.168.X.X 2
1:161:500:public:::MD5::[None] get used 4'
04/17/2006 09:35:00 PM - PHPSVR: Poller[0] WARNING: Function does not exist
Does anyone have any clue ?
Edit : we found it !
In fact there's a bug in script_server.php.
Line 124 : $inc = strtolower($inc);
Our path is /usr/local/apache/sites/CACTI/htdocs/scripts/ss_host_disk.php, so tolower convert it to :
/usr/local/apache/sites/cacti/htdocs/scripts/ss_host_disk.php and then we got Function does not exist.
So i remove line 124 and all is fine for now