LoginSignup
2
2

More than 5 years have passed since last update.

Ubuntu 14.04でZabbixを立てる

Posted at

資料

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
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2