Moving process:
Make a cacti installation (same version of cacti and mysql)
dumb mysql databases on old host and import them to the new one
copy rra, scrip and resource folders to the new host
copy the cron script to the new host
When I put graphs to debug mode on the new host it says they are ok. Also when I look at the device list they are listed as ok, it manges to poll snmp from them fine.
from cron log
Code: Select all
Nov 17 09:30:01 vault.sulake.com crond[3253]: (cacti) CMD (php /var/www/cacti/poller.php &>/dev/null)
Nov 17 09:30:01 vault.sulake.com crond[3254]: (cacti) CMD (php /var/www/cacti/poller.php > /dev/null 2>&1)
Nov 17 09:35:01 vault.sulake.com crond[4654]: (cacti) CMD (php /var/www/cacti/poller.php > /dev/null 2>&1)
Nov 17 09:35:01 vault.sulake.com crond[4655]: (cacti) CMD (php /var/www/cacti/poller.php &>/dev/null)
Nov 17 09:40:01 vault.sulake.com crond[6059]: (cacti) CMD (php /var/www/cacti/poller.php > /dev/null 2>&1)
Nov 17 09:40:01 vault.sulake.com crond[6061]: (cacti) CMD (php /var/www/cacti/poller.php &>/dev/null)
Code: Select all
# cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
*/5 * * * * cacti php /var/www/cacti/poller.php > /dev/null 2>&1
edit:
Actually the hosts did not have the exact same version:
new host
# rpm -q cacti
cacti-0.8.6i-1.el4.rf
# rpm -q rrdtool
rrdtool-1.2.15-1.el4.rf
old host
$ rpm -q cacti
cacti-0.8.6h-1.2.el4.rf
$ rpm -q rrdtool
rrdtool-1.2.15-1.el4.rf
During setup I selected "new install", not upgrade...
edit2:
Seems there is some problem with mysql, as the log is filling up with:
Code: Select all
11/17/2006 11:50:44 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "insert into poller_output (local_data_id, rrd_name, time, output) values (516, 'hdd_used', '2006-11-17 11:50:43', '138716')"
11/17/2006 11:50:44 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "insert into poller_output (local_data_id, rrd_name, time, output) values (516, 'hdd_free', '2006-11-17 11:50:43', '3688164')"
11/17/2006 11:50:44 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "insert into poller_output (local_data_id, rrd_name, time, output) values (515, 'hdd_used', '2006-11-17 11:50:43', '8159976')"