Zabbix公式リポジトリとEPELがあるが、公式の方がより新しいバージョンが使える
LTS対応
# 12.04 LTS wget http://repo.zabbix.com/zabbix/2.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.2-1+precise_all.deb sudo dpkg -i zabbix-release_2.2-1+precise_all.deb # 14.05 LTS wget http://repo.zabbix.com/zabbix/2.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.4-1+trusty_all.deb sudo dpkg -i zabbix-release_2.4-1+trusty_all.deb sudo aptitude update
sudo aptitude install zabbix-agent # 設定 sudo vim /etc/zabbix/zabbix_agentd.conf ---- Server=192.168.1.10 ListenIP=0.0.0.0 ServerActive=192.168.1.10 Hostname=ubuntu.example.com ---- sudo service zabbix-agent restart sudo sysv-rc-conf zabbix-agent on # ポート開放(LANの場合) sudo ufw allow proto tcp from 192.168.1.0/24 to any port 10050
sudo rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm sudo yum install zabbix-agent sudo vim /etc/zabbix/zabbix_agentd.conf sudo service zabbix-agent restart sudo chkconfig zabbix-agent on