資料
aptリポジトリの追加
wget http://repo.zabbix.com/zabbix/2.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.4-1+trusty_all.deb
dpkg -i zabbix-release_2.4-1+trusty_all.deb
sudo apt-get update
パッケージのインストール
sudo apt-get install snmp snmp-mibs-downloader fonts-ipafont-gothic zabbix-server-mysql zabbix-frontend-php
タイムゾーンの設定
/etc/httpd/conf.d/zabbix.conf
# php_value date.timezone Europe/Riga
php_value date.timezone Asia/Tokyo
スキーマとデータのインポート
cd /usr/share/zabbix-server-mysql
mysql -u $DBユーザ名 $DB名 < schema.sql
mysql -u $DBユーザ名 $DB名 < images.sql
mysql -u $DBユーザ名 $DB名 < data.sql
グラフで日本語を表示するためにIPAフォントを使用する
sudo ln -s /usr/share/fonts/truetype/fonts-japanese-gothic.ttf /usr/share/zabbix/fonts/graphfont.ttf
Zabbix Serverの設定
/etc/zabbix/zabbix_server.conf
DBHost=
DBName=
DBUser=
DBPassword=
サービスのリスタート
sudo service apache2 restart
sudo service zabbix-server restart