- 论坛徽章:
- 1
|
这里有个好的样本,可以参考
- Download the latest version, and uncompress
- EG cd /usr/share
- EG wget http://www.cacti.net/downloads/cacti-0.8.7i.tar.gz
- EG tar -xzvf cacti-0.8.7i.tar.gz
- Update the MySQL config in the new version
- EG vi cacti-0.8.7i/include/config.php
- Backup your existing database
- EG mysqldump -u root -p -l cacti > /home/user/cacti-v0.8.7e.mysql
- Check the poller cron job, if the poller.php path is changing, add an entry for the new path (we can remove the old path once everything is working)
- EG vi /etc/cron.d/cacti
- Check the path that RRA's are expected to go to
- Compare the $config["rra_path"] value in /include/global.php, if necessary override in /include/config.php
- Check the Apache config
- Switch the folders around
- EG mv cacti cacti-v0.8.7e
- EG mv cacti-0.8.7i cacti
- Browse to your installation, and upgrade the database
- Once complete go to System Utilities > View Cacti Log File, and check everything is looking OK
- Remove additional path from crontab (if you added one)
复制代码 |
|