Chinaunix首页 | 论坛 | 博客
  • 博客访问: 77435
  • 博文数量: 11
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 125
  • 用 户 组: 普通用户
  • 注册时间: 2014-09-04 22:10
文章分类

全部博文(11)

文章存档

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时候出现的问题

 1The map config directory is not writable by the web server 

[root@localhost weathermap]# chmod +w configs/

 

2The 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;

阅读(1513) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~