1.應用場景:
Zabbix監控系統提供兩種監控Linux主機的方法,一種是啟用主機上的SNMP協議,另一種是在主機上安裝Zabbix Agent服務,本篇介紹Linux系統下Zabbix Agent的安裝與使用。
2.添加Repository:
本文使用yum方式安裝Zabbix Agent,在安裝前首先添加對應的yum repository,以下列出了CentOS/RHEL版本的添加地址:
CentOS/RHEL 7:
# rpm -Uvh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
CentOS/RHEL 6:
# rpm -Uvh http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
CentOS/RHEL 5:
# rpm -Uvh http://repo.zabbix.com/zabbix/3.2/rhel/5/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
3.安裝Zabbix Agent
yum install zabbix-agent
4.編輯Zabbix Agent 配置文件
vim /etc/zabbix/zabbix_agentd.conf
Server=[zabbix server ip]
ServerActive=[zabbix server ip]
Hostname=[ Hostname of client system ]
5.重啟Zabbix Agent
service zabbix-agent restart
6.添加開機啟動
chkconfig zabbix-agent on