Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2267605
  • 博文数量: 168
  • 博客积分: 6641
  • 博客等级: 准将
  • 技术积分: 1996
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-02 11:49
文章存档

2020年(4)

2019年(6)

2017年(1)

2016年(3)

2015年(3)

2014年(8)

2013年(2)

2012年(12)

2011年(19)

2010年(10)

2009年(3)

2008年(17)

2007年(80)

分类: LINUX

2008-10-01 11:45:13

为CACTI系统安装Thold、Monitor插件

2008-09-26 TsengYia#126.com
 

################################################################

系统环境:RHEL5 [ 2.6.18-8.el5xen ]

软件环境:

    cacti0.8.7b

    cacti-plugin-arch-2.1

    settings-0.5

    monitor-0.8.2

    thold-0.3.9
 

    参考下载地址:

       

       

       

       
 

目标功能:

    安装monitor插件,提供更简略、直观的设备状态图示;安装thold插件,提供设备异常预警。

##########################################################################

一、安装cacti-0.8.7b系统

    另见:http://blog.chinaunix.net/u1/40349/showart.php?id=694588

 

二、安装thold、monitor插件

    1、安装Plugin Architecture补丁

shell> tar zxvf cacti-plugin-arch.tar.gz -C /var/www/cacti

shell> cd /var/www/cacti/

shell> patch -p1 -N < cacti-plugin-arch/cacti-plugin-0.8.7b-PA-v2.1.diff

shell> /opt/mysql/bin/mysql -u cactiuser -p cactidb < cacti-plugin-arch/pa.sql

 
    2、安装thold、monitor插件

shell> tar zxvf settings-0.5.tar.gz -C /var/www/cacti/plugins

shell> tar zxvf thold-0.3.9.tar.gz -C /var/www/cacti/plugins

shell> tar zxvf monitor-0.8.2.tar.gz -C /var/www/cacti/plugins

shell> cd /var/www/cacti/plugins/

shell> /opt/mysql/bin/mysql -u cactiuser -p cactidb < thold/thold.sql

shell> /opt/mysql/bin/mysql -u cactiuser -p cactidb < monitor/monitor.sql
 

    3、修改config.php配置文件

shell> vi /var/www/cacti/include/config.php

$config['url_path'] = "/";        #//改为cacti对应于web目录下的路径

$plugins = array();

$plugins[] = thold;

$plugins[] = monitor;
 

    4、刷新cacti系统的web管理界面,可以看到多出两个标签页(thold、monitor)。

 

三、使用monitor插件

    1、打开“Console->Settings->Misc”,可以调整Monitor的各项配置。例如:勾选“Show Icon Legend”可以在监控页面显示图例;

“View”可以选用Tiles类型,以显示设备状态表格。

    2、为cacti添加新设备时,勾选上“Monitor Host”项。对已添加的设备可以通过“Management->Devices”进去修改。

    3、单击Web页面上方的“monitor”标签链接,可以进入查看各设备/主机的状态图示。
 


四、使用thold插件

    1、打开“Console->Settings->Mail/DNS”,可以调整“SMTP Options”和“DNS Options”等配置,用于确保预警邮件能够发出。

    2、打开“Console->Settings->Alerting/Thold”,可以调整Thold的各项配置。例如:“Dead Host Notifications Email”处可填写设

备当机时发送警告信息到哪个邮箱;勾选“Send alerts as text”项,可以设置只发送文本格式的邮件。

    3、打开“Templates->Threshold Templates”,可以添加、取出需要关联到预警系统的模板,例如:可以添加和“Interface-Traffic”

模板的关联,选择“traffic_in”、“traffic_out”数据项,分别设置警告阈值“High Threshold”(如200000000比特/秒);可以添加和“

Unix-Disk Space”模板的关联……。

    4、打开“Create->New Graphs”,选择需要提供预警的设备,单击右侧上方的“Auto-create thresholds”创建预警项目。

    5、打开“Management->Thresholds”,可以管理已经创建的预警项目。

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