安装Zabbix agent2
rpm -Uvh https://repo.zabbix.com/zabbix/7.0/rhel/7/x86_64/zabbix-release-latest-7.0.el7.noarch.rpm
yum install zabbix-agent2 -y
yum install zabbix-agent2-plugin-mongodb zabbix-agent2-plugin-mssql zabbix-agent2-plugin-postgresql -y
cat /etc/zabbix/zabbix_agent2.conf
Server=100.100.137.92 # 允许哪些 Zabbix Server IP 连接
ListenPort=10050
ServerActive=100.100.137.92 ## 主动模式下的 Server IP
Hostname=jenkins
systemctl restart zabbix-agent2
systemctl enable zabbix-agent2
systemctl status zabbix-agent2
zabbix server添加主机
添加之后观察状态:
绿色为正常,红色为异常。