######URL PATH:
/usr/share/cacti/site/include/config.php
ORIGINAL = $url_path = “/cacti/”;
CHANGE TO:
$url_path = “/”;
#####RRD PATH:
/usr/share/cacti/site/include/global.php
ORIGINAL:
$config[“rra_path”] = ‘/var/lib/cacti/rra’;
MAY CHANGE TO:
$config[“rra_path”] = $config[“base_path”] . ‘/rra’;
####OLD
# cd /var/www/cacti/rra
# for i in `find -name “*.rrd”`; do rrdtool dump $i > $i.xml; done
# tar czf cacti-xml.tar.gz ./*xml
###NEW
# cd /var/lib/cacti/rra
# tar xzf ./cacti-xml.tar.gz
# for i in `find -name “*.xml”`; do rrdtool restore $i `echo $i |sed s/.xml//g`; done
# mysql -u cacti -p cacti < /tmp/cacti.sql
Cacti – manually rebuild poller cache
#php -q /usr/share/cacti/cli/rebuild_poller_cache.php
###Set the appropriate permissions on cacti’s directories for graph/log generation
#chown -R www-data:www-data /var/lib/cacti/rra