修改apache的配置文件
[root@cacti ApacheStats_0.8.2]#cd
[root@cacti ~]# vim/etc/httpd/conf/httpd.conf
217 ExtendedStatus On /////打开这一行
903 #<Location /server-status>
904 # SetHandler server-status
905 # Order deny,allow
906 # Deny from all
907 # Allow from .example.com
908 #</Location>
909 <Location /server-status>
910 SetHandler server-status
911 Order deny,allow
912 Deny from all
913 Allow from all
914 </Location>
将apache重启
[root@cacti ~]# service httpd restart

在安装插件之前要先安装插件管理器
[root@cacti cacti]# cd /root/software/
[root@cacti software]# tar -zxvf cacti-plugin-0.8.7g-PA-v2.8.tar.gz
[root@cacti software]# cp -R cacti-plugin-arch/* /var/www/html/cacti/
[root@cacti software]# cd /var/www/html/cacti/
[root@cacti cacti]# mysql -u root -pcacti<pa.sql
[root@cacti cacti]# patch -p1 -N<cacti-plugin-0.8.7g-PA-v2.8.diff
[root@cacti cacti]# vim include/config.php
42 $url_path = "/cacti/"; /////修改这一行的路径
安装插件
[root@cacti cacti]# cd /root/software/
[root@cacti software]# tar -zxvf monitor-latest.tgz
[root@cacti software]# tar -zxvf settings-latest.tgz
[root@cacti software]# tar -zxvf thold-latest.tgz
[root@cacti software]# mv monitor-0.9/ /var/www/html/cacti/plugins/monitor
[root@cacti software]# mv settings-0.6/ /var/www/html/cacti/plugins/settings
[root@cacti software]# mv thold-0.41/ /var/www/html/cacti/plugins/thold
在控制台启用插件



