Zabbix是一个基于Web界面的提供分布式系统监控的企业级开源解决方案,Zabbix能监视各种网络参数,保证服务器系统安全稳定地运行,并提供灵活的通知机制以让SA快速定位并解决存在的问题.Zabbix分布式监控系统的优点如下:
注:zabbix-agent(数据采集)—>zabbix-server(数据分析|报警)—> 数据库(数据存储)<—zabbix web(数据展示)
主机组(host groups) 主机(hosts) 应用(application) 监控项(items) 触发器(triggers) 事件(events) 动作(actions):条件(conditions)和操作(operations) 媒介(media):发送通知的通道,短信,邮件等 通知(notiflcations) 远程命令(remote command) 报警升级(escalation) 模板(template) 图形(graph) 屏幕(screens) 幻灯(slide show)
wget https://mirror.tuna.tsinghua.edu.cn/zabbix/zabbix/4.0/rhel/7/x86_64/zabbix-agent-4.0.26-1.el7.x86_64.rpm
rpm -ivh zabbix-agent-4.0.26-1.el7.x86_64.rpm
grep ^[a-Z] /etc/zabbix/zabbix_agentd.conf
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=10.1.1.200
ServerActive=127.0.0.1
Hostname=Zabbix server
Include=/etc/zabbix/zabbix_agentd.d/*.conf
[root@web01 ~]# systemctl start zabbix-agent.service
[root@web01 ~]# systemctl enable zabbix-agent.service
[root@web01 ~]# netstat -lntup|grep 10050
等待时间长可以选择刷新zabbix-server端缓存来增加速度
[root@zabbix ~]# zabbix_server -R config_cache_reload
zabbix_server [44137]: command sent successfully