2016年(11)
分类: 系统运维
2016-04-13 09:39:33
安装插件
说明:在安装thold插件,必须先安装settings插件,后安装thold插件。因为settings插件提供email的相关设置,thold插件的报警功能是根据settings里的设置来决定发送邮件的。
插件下载地址
settings
[root@localhost src]# tar zxvf settings-v0.71-1.tgz
[root@localhost src]# mv settings /var/www/html/plugins/
[root@localhost src]# cd /usr/local/apache/htdocs/cacti/include
[root@localhost
include]# vi config.php
在plugin Management中
启用后:
settings中出现Mail/DNS
thold
[root@localhost src]# tar zxvf thold-v0.5.0.tgz
[root@localhost src]# mv thold /usr/local/apache/htdocs/cacti/plugins/
[root@localhost src]# cd /usr/local/apache/htdocs/cacti/include
[root@localhost
include]# vi config.php
启用插件
出现thold
monitor
[root@localhost src]# tar zxvf monitor-v1.3-1.tgz
[root@localhost src]# mv monitor/ /usr/local/apache/htdocs/cacti/plugins/
[root@localhost src]# cd /usr/local/apache/htdocs/cacti/plugins/monitor/
[root@localhost monitor]# mysql -ucacti -p123456 cacti < monitor.sql
[root@localhost monitor]# cd /usr/local/apache/htdocs/cacti/include
[root@localhost include]# vi config.php
启用插件
出现插件
weather
[root@localhost src]# unzip php-weathermap-0.97c.zip
[root@localhost src]# mv weathermap/ /usr/local/apache/htdocs/cacti/plugins/
[root@localhost src]# /usr/local/apache/htdocs/cacti/plugins/weathermap
[root@localhost plugins]# chmod –R 777 weathermap/
[root@localhost plugins]# vi /usr/local/apache/htdocs/cacti/include/config.php
编辑weathermap时候出现的问题
1、The map config directory is not writable by the web server
[root@localhost weathermap]# chmod +w configs/
2、The editor has not been enabled yet. You need to set ENABLED=true at the top of editor.php
[root@localhost plugins]# cd /usr/local/apache/htdocs/cacti/plugins/weathermap/
[root@localhost weathermap]# vi editor.php
修改$ENABLED=false; 为$ENABLED=true;