zabbix被监控端口的简单部署
安装zabbix-agent服务
rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm yum install zabbix-agent
修改配置文件
启动服务并添加开机自启
[root@cache01 ~]# systemctl start zabbix-agent.service [root@cache01 ~]# systemctl enable zabbix-agent.service Created symlink from /etc/systemd/system/multi-user.target.wants/zabbix-agent.service to /usr/lib/systemd/system/zabbix-agent.service.
检查:监控端检查是否可以监控需要下载zabbix-get
yum install -y zabbix-get zabbix_get -s 172.16.1.21 -p 10050 -k "system.cpu.load[all,avg1]"
注意,本文用于centos7系统且相关zabbix为3.*的zabbix版本