Name Last Update
jmx-monit Loading commit data...
monit Loading commit data...
plugin Loading commit data...
metric_config.json Loading commit data...
readme Loading commit data...
1.根据需要安装的监控插件配置metric_config.json
2.cp metric_config.json 到 /etc/ 下
3.创建 /Data/local/metric 目录, cp脚本到此目录下
4.将monit文件夹下  需要监控的插件对应的*.conf配置文件 cp到 monit配置目录下(默认/etc/monit.d/)
5.monit reload 检查是否插件已启动

注意:
插件环境(建议安装 python隔离环境,避免python版本问题)
1. 基础软件包安装
yum -y install libcurl libcurl-devel rrdtool rrdtool-devel perl-rrdtool rrdtool-prel libgcrypt-devel gcc make gcc-c++ liboping liboping-devel perl-CPAN net-snmp net-snmp-devel python-devel

yum install python-pip 
(若安装不成功,首先安装epel扩展源:

sudo yum -y install epel-release

然后再安装pip)

pip install ujson




2.根据安装插件类型选装

#for mysql
yum install mysql

#for redis
pip install redis

#for memcache
pip install python-memcached

#for rabbit
pip install requests

#for java
安装java 1.8  配置java_home生效