zabbix-agentとは †
zabbixで監視したいサーバにインストールするエージェント。
導入方法 †
zabbix 4.0.0 alpha5 版
CentOS7での導入 †
リポジトリ追加
[root@myhost tmp]# rpm -i http://repo.zabbix.com/zabbix/3.5/rhel/7/x86_64/zabbix-release-3.5-1.el7.noarch.rpm
[root@myhost tmp]# yum install zabbix-agent
configファイル設定
[root@myhost tmp]# vi /etc/zabbix/zabbix_agentd.conf
-----snip-----
Server=192.168.x.x <- (zabbix server address)
ServerActive=192.168.x.x <- (zabbix server address)
Hostname=xxxxxx
-----snip-----
firewalld設定
[root@myhost tmp]# firewall-cmd --add-port=10050/tcp --zone=public --permanent
[root@myhost tmp]# firewall-cmd --reload
[root@myhost tmp]# firewall-cmd --list-ports --zone=public
サービス設定
[root@myhost tmp]# systemctl start zabbix-agent
[root@myhost tmp]# systemctl enable zabbix-agent
[root@myhost tmp]# systemctl status zabbix-agent
Counter: 1019,
today: 1,
yesterday: 1