centos下cacti之monitor、thold、setting、weathermap安装

1、下载须要的安装包php

下载有两种方法:html

一、下载到本地,经过挂载安装:
linux

主下载页面:http://docs.cacti.net/sql

php-weathermap-0.97a.zipapache

settings-v0.71-1.tgzcentos

thold-0.4.1.tar.gzide

monitor-v1.3-1.tgzspa

二、直接在centos里面经过wget命令下载安装:.net

wget http://docs.cacti.net/plugin:settings/settings-v0.71-1.tar.gz
插件

wget http://www.network-weathermap.com/files/php-weathermap-0.97a.zip

wget  http://docs.cacti.net/plugin:monitor/monitor-v1.3-1.tgz

两种方法均可以正常运行,根据我的爱好,下面以wget下载为例来安装。

2、安装插件

一、进入cacti目录下,下载所需安装包

[root@localhost cacti]# cd /usr/share/cacti/

[root@localhost cacti]#  wget  http://docs.cacti.net/plugin:monitor/monitor-v1.3-1.tgz

[root@localhost cacti]#  wget http://docs.cacti.net/plugin:settings/settings-v0.71-1.tar.gz

[root@localhost cacti]#  wget http://www.network-weathermap.com/files/php-weathermap-0.97a.zip

二、解压安装包,将解压文件移动到cacti/plugins/目录下

[root@localhost cacti]# tar zxvf settings-v0.71-1.tar.gz

[root@localhost cacti]# mv settin~1.tgz /usr/share/cacti/

[root@localhost cacti]#  tar zxvf thold-0.4.1.tar.gz
[root@localhost cacti]# mv thold /usr/share/cacti/plugins/

[root@localhost cacti]# unzip php-weathermap-0.97a.zip

[root@localhost cacti]# mv weathermap /usr/share/cacti/plugins/

[root@localhost cacti]# cd plugins/
[root@localhost plugins]# ls
index.php  monitor  settings  simple.conf  thold  weathermap

三、进入而后进入cacti的Plugin Management上的页面对插件配置,以下图所示:

wKiom1exX8rjRV7UAAF0lP9L49w730.png-wh_50

四、点击插件前蓝色下箭头安装插件,点击绿色箭头使能(enbale),变成一个矩形框了,你会发现图中的"Status”那栏变为“active”,此时插件就安装完毕了。

wKioL1exZnmDIN76AACSoY-R2QE889.png-wh_50

下来就是监控主机了console---device---add--添加信息--create建立来监控主机:以下图:

wKioL1exZmfw-szlAAG3VQ59NNU142.png-wh_50

友情提示:cacti新版本无需进行以下配置文件设置,老版本可能须要(旧版本还须要导入各自的sql文件)激活monitor插件,

修改配置文件cacti目录下的include/config.php)。

vi usr/share/cacti/include/config.php

     $plugins = array();,在此行下面加入:
     $plugins[] = ‘monitor';
     $plugins[] = ‘settings';
     $plugins[] = ‘thold';

老版本在安装settings与thold插件时,先安装settings插件,后安装thold插件。由于settings插件提供email的相关设置,后期经过对setting的设置来发送邮件。

五、weathermap的配置

插件安装完毕后,进入weathermap视图,点击edit,如出现错误,须要修改weathermap/editor.php文件,将$ENABLED=false;改成$ENABLED=ture;

wKiom1exa4rg2bynAABBeixxFnc208.png-wh_50

而后修改weathermap/configs/ weathermap/output/宿主权限:

[root@localhost weathermap]# chown -R apache:apache configs/

[root@localhost weathermap]# chown -R cacti:apache output/

修改完毕后就能够建立配置文件,添加图形。

若出现不能编辑图形等问题,请关闭SElinux.

[root@localhost configs]# setenforce 0

相关文章
相关标签/搜索