监控对比

zabbix

  • 优点
    • 报警系统
    • 图表展示好
    • Creation of new alerts - either fault based or performance based.
  • Creating an alert & its trigger can be made easier.
  • More VM-based data collection counters should be introduced to have better VM monitoring.
  • The raw counters collection agent in every node is relatively weak. It goes down often, which needs more stability.
1
docker network create --subnet 172.20.0.0/16 --ip-range 172.20.240.0/20 zabbix-net

创建数据库

1
2
3
4
5
6
create database zabbix character set utf8 collate utf8_bin;
create user zabbix@localhost identified by 'zabbix';
grant all privileges on zabbix.* to zabbix@localhost;
grant all privileges on zabbix.* to'zabbix'@'%' identified by 'zabbix';
<<<<<<< HEAD
=======

zabbix 安装

1
2
3
4
5
6
7
8
# 准备机器,环境准备
ifconfig eth0 |awk 'NR==2{print $2}' # 输出IP,如果没有制表符,则第二列不好输出
## 关闭防火墙
systemctl disable --now firewalld
getenforce # 查看是否关闭
iptables -L # 查看流量是否允许过来
free -m # 内存大点,至少两个G, 4G最好
>>>>>>> a578b6565373013651da4fb279b53d904030e944