lepus 配置监控Mysql+Redis+Mongodb服务器

LEPUS 配置监控MYSQL+REDIS+MONGODB 数据库监控

lepus 部署 文档链接地址:https://www.cnblogs.com/hushaojie/p/12612571.html

MYSQL监控:

 创建一个数据监控账号,一个内网网段可以执行(线上不建议给all的权限):

grant all privileges on *.* to 'lepus'@'xx.xx.xx.%' identified by 'xxx';
flush privileges;

 

过一会即可在MYSQL监控查看到了,如果查看不到 在服务器上执行 脚本检查

cd /usr/local/lepus/
python check_os.py

  

 

Linux服务器监控:

   安装snmp服务

yum install -y net-snmp net-snmp-utils
vim /etc/snmp/snmpd.conf

 启动snmpd服务

[root@iZbp10sc8bf7id921404mqZ lepus]# systemctl restart snmpd 
[root@iZbp10sc8bf7id921404mqZ lepus]# systemctl staus snmpd 

 配置完成 可以在主机监控里查看到,需要等一分钟左右,这看自己配置的时间,如果很长时间还是没有,在服务器上执行脚本检查

原文地址:https://www.cnblogs.com/hushaojie/p/12612858.html