I had followed this doc to migrate :
Code: Select all
http://www.cacti.net/downloads/docs/html/upgrade.html
old cacti version : 0.8.8b
new cacti version : 0.8.8g
old / new RRDTool version 1.4.7
Old OS : CentOS 6.7 x86_64
New OS : CentOS 6.7 x86_64
I had followed these steps:
1. backup old mysql data
2. download and extract new cacti in httpd folder /var/www/html/
3. update new cacti config file in include/config.php
4. rsync -av --chown=apache:apache cacti_old/rra/* cacti/rra/
5. rsync -av --chown=apache:apache cacti_old/resource/* cacti/resource/
6: chmod -R 755 /var/www/html/cacti/rra
7: chmod -R 755 /var/www/html/cacti/log
8. restore old database to cacti db on new box
9. restarted httpd deamon
10. run manually poller /usr/bin/php /var/www/html/cacti/poller.php
11. resolved dependencies in custom scripts
12. added cron entry
*/5 * * * * apache /usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1
SELinux and IPTables are disabled
I am able to view old data perfectly however new data is not getting populated.
When I saw RRDTool info, i think it is not writing data.
cacti poller log doesnt shows any errors.
Cacti Poller Log :
Old:
New:03/07/2016 04:46:00 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
03/07/2016 04:46:00 PM - SYSTEM STATS: Time:58.0844 Method:cmd.php Processes:5 Threads:N/A Hosts:181 HostsPerProcess:37 DataSources:11224 RRDsProcessed:5393
RRDTool Info :03/07/2016 04:42:48 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
03/07/2016 04:42:48 PM - SYSTEM STATS: Time:58.0466 Method:cmd.php Processes:8 Threads:N/A Hosts:181 HostsPerProcess:23 DataSources:11232 RRDsProcessed:2472
Old :
Code: Select all
http://pastebin.com/raw/FKtnLZmf
Code: Select all
http://pastebin.com/raw/5Sppd6Hb
Old box :
Code: Select all
http://prntscr.com/ac95ox
Code: Select all
http://prntscr.com/ac95i4
I am okay if there is gap in between data because of old and new cacti poller in cron being shut