Cacti+Nagios监控系统(五):Cacti安装插件

Cacti插件说明及下载地址:http://docs.cacti.net/plugins


一、Settings插件

cd /root/download

wget http://docs.cacti.net/_media/plugin:settings-v0.7-1.tgz

mv plugin:settings-v0.7-1.tgz settings-v0.7-1.tgz

tar zxvf settings-v0.7-1.tgz -C /var/www/html/cacti/plugins/

二、Thold插件

Cacti阈值报警插件,对某项数据设定一个范围,超过这个范围就会伐alarm,比如说我监控cpu,设定cpu使用率大于90%或者小于10%就发mail给我。

wget http://docs.cacti.net/_media/plugin:thold-v0.5.0.tgz

mv plugin:thold-v0.5.0.tgz thold-v0.5.0.tgz

tar zxvf thold-v0.5.0.tgz -C /var/www/html/cacti/plugins/

在页面上点击Plugin Management中install和enable启用插件

三、WeatherMap插件

  网络拓朴图插件,创建网络设备间连接关系图,展现其性能指标

1、安装

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

unzip php-weathermap-0.97c.zip -d /var/www/html/cacti/plugins/

在页面上点击Plugin Management中install和enable启用插件

2、配置

chmod -R 777 /var/www/html/cacti/plugins/weathermap

cd /var/www/html/cacti/plugins/weathermap

chown apache output -R

chown apache configs -R

vi editor.php

ENABLED=true

3、创建

页面左侧weathermap-->add--add添加默认的示例simple.conf

页面顶部weathermap-->下方Editor

四、Discovery插件

设备发现插件,自动扫描指定IP段内的设备

cd /root/download

wget http://docs.cacti.net/_media/plugin:discovery-v1.5-1.tgz

tar zxvf discovery-v1.5-1.tgz -C /var/www/html/cacti/plugins/

页面settings-->设置扫描IP段和DNS

手动搜索:

php -q /var/www/html/cacti/plugins/discovery/findhosts.php -f -d

五、Monitor插件

设备在线状态监控插件,在cacti页面host中设置了的主机会在monitor页面显示在线状态,可以和thold插件配置报警.

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

tar zxvf monitor-v1.3-1.tgz  -C /var/www/html/cacti/plugins/

六、设置Cacti

网上说要在这添加插件,我直接在页面点击install和enable后就出现了,没有刷出来的可以设置下。

vi /var/www/html/cacti/include/config.php

$plugins[] = ‘npc‘;

$plugins[] = ‘thold‘;

$plugins[] = ‘weathermap‘;

$plugins[] = ‘discovery‘;

$plugins[] = ‘monitor‘;

Cacti+Nagios监控系统(五):Cacti安装插件

时间: 2024-08-01 20:29:04

Cacti+Nagios监控系统(五):Cacti安装插件的相关文章

Cacti+Nagios监控系统(五):Nagios监控windows(基于check_nt)

一.工作原理 Nagios服务器使用check_nt工具与客户端程序通讯,客户端程序NSCP使用命令来获取本地客户端的信息并返回给check_nt. check_nt只是NSCP其中一项服务,Nagios还可以通过check命令(如check_http检查WEB服务).check_nrpe.NSCA.WMI来监控windows客户端. 二.下载客户端程序 下载地址:  http://nsclient.org/nscp/downloads 64位系统下载:NSCP-0.4.1.105-x64.ms

Cacti+Nagios监控系统(三):安装Nagios

一.添加用户 groupadd nagcmd useradd -G nagcmd nagios passwd nagios 123456 usermod -a -G nagcmd apache 二.安装nagios cd /root/download wget http://jaist.dl.sourceforge.net/project/nagios/nagios-4.x/nagios-4.0.7/nagios-4.0.7.tar.gz 也可以从这里下载:http://www.nagios.o

Cacti+Nagios监控系统(二):安装Cacti

一.设置mysql,创建Cacti数据库和账号 mysql -u root -p mysql> create database cactidb; mysql> GRANT ALL ON cactidb.* TO [email protected] IDENTIFIED BY '123456'; mysql> flush privileges; mysql> quit 二.安装rrdtool yum -y install rrdtool  rrdtool-devel  rrdtool

Cacti+Nagios监控系统(四):Cacti整合Nagios

一.原理 整合cacti和nagios是利用了cacti的一个插件nagios for cacti,它的原理是将nagios的数据通过ndo2db导入到mysql数据库(cacti的库中),然后cacti读取数据库信息将nagios的结果展示出来. 二.cacti扩展模块 cacti扩展模块需要下载安装cacti-plugin,cacti-0.8.8a及以后版本已集成此扩展模块不需要再单独安装,如果使用的是老版本cacti,扩展模块安装如下: cd /root/download wget htt

Cacti+Nagios监控系统(六):Cacti整合Ntop

Ntop是一种监控网络流量工具 一.安装环境 cd /root/download yum install libtool libpcap libpcap-devel gdbm gdbm-devel zlib zlib-devel wget http://mirror01.idc.hinet.net/EPEL/5Server/x86_64/GeoIP-1.4.8-1.el5.x86_64.rpm wget http://mirror01.idc.hinet.net/EPEL/5Server/x86

Cacti+Nagios监控系统(一):准备工作

一.系统环境 1.设置yum源 (1)使用本地源 挂载光驱ISO文件 确认路径/media/CentOS_6.5_Final/ cd /etc/yum.repos.d mv CentOS-Base.repo CentOS-Base.repo.bak vi CentOS-Base.repo [base] name=Base baseurl=file:///media/CentOS_6.5_Final/ gpgcheck=0 #(1检测 0不检测) enabled=1 #(1启动 0不启动) (2)

[转] Cacti+Nagios监控平台完美整合

Cacti+Nagios监控平台完美整合 http://os.51cto.com/art/201411/458006.htm 整合nagios+cacti+微信.飞信实现网络监控报警 http://blog.itpub.net/29357437/viewspace-1169680/

Nagios监控系统

一.Nagios监控系统简介 1.Nagios工作原理 Nagios本身不包括监控主机和服务的功能.所有的监控.监测功能都是通过各种插件来完成的.安装完nagios之后,在nagios主目录下的/libexex里面放有nagios自带的插件,如:check_disk是检查磁盘空间的插件,check_load是检查cpu负载的插件,每一个插件可以通过运行./check_xxx -h命令来检查其使用方法和功能. 1.Nagios的四种监控状态 Nagios可以识别四种状态返回信息.0(OK)表示状态

Nagios 监控系统架设全攻略

Nagios 全名为(Nagios Ain’t Goona Insist on Saintood),最初项目名字是 NetSaint.它是一款免费的开源 IT 基础设施监控系统,其功能强大,灵活性强,能有效监控 Windows .Linux.VMware 和 Unix 主机状态,交换机.路由器等网络设置等.一旦主机或服务状态出现异常时,会发出邮件或短信报警第一时间通知 IT 运营人员,在状态恢复后发出正常的邮件或短信通知.Nagios 结构简单,可维护性强,越来越受中小企业青睐,以及运维和管理人