install†
yum の場合†
rpm -ivh https://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-agent-4.4.7-1.el7.x86_64.rpm
# rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm
yum -y install zabbix-agent
zabbix-server 登録†
/etc/zabbix/zabbix_agentd.conf
Server=【ipaddress】
ServerActive=【ipaddress】
service zabbix-agent start
iptables をかけている場合は zabbix-server からの接続を開ける
iptables -I INPUT 5 -s 【ipaddress】/32 -p tcp -m tcp --dport 10050 -j ACCEPT
firewall-cmd --add-port=10051/tcp --permanent
server 側の設定†
[設定] -> [ホスト] -> 【ホストの作成】-> [ホスト]タブ
- ホスト名
- 表示名
- エージェントのインターフェース : 【agentIPAddress】
[テンプレート]タブ
- 新規テンプレートをリンク
template OS linux