Ubuntu 16.04にZabbixをインストールするメモ
1.Zabbixのインストール
# apt-get install php7.0-bcmath php7.0-xml php7.0-mbstring
$ wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb
# dpkg -i zabbix-release_3.2-1+xenial_all.deb
# apt-get update
# apt-get install zabbix-server-mysql zabbix-frontend-php
# apt-get install zabbix-agent
2.MySQLの設定
$ mysql -uroot -p
mysql> CREATE DATABASE zabbix CHARACTER SET utf8 COLLATE utf8_bin;
Query OK, 1 row affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON zabbix.* TO zabbix@localhost IDENTIFIED BY 'Pw#12345a’;
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> EXIT;
Bye
初期化
# zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uzabbix -p zabbix
# $EDITOR /etc/zabbix/zabbix_server.conf
### Option: DBPassword
# Database password. Ignored for SQLite.
# Comment this line if no password is used.
#
# Mandatory: no
# Default:
# DBPassword=
パスワードの作成
DBPassword=’Pw#12345a