Help us understand the problem. What is going on with this article?

Ubuntu 16.04にzabbix 3.4をインストール

More than 1 year has passed since last update.

Ubuntu 16.04にzabbix 3.4をインストール

リポジトリを追加

wget https://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+xenial_all.deb

sudo dpkg -i zabbix-release_3.4-1+xenial_all.deb

インストール

sudo apt-get install zabbix-server-mysql zabbix-agent zabbix-frontend-php

MySQLにログイン

ユーザzabbixをパスワードhogehoge123で作成する。

mysql -u root -p

create database zabbix;
create user zabbix@'localhost' identified by 'hogehoge123';
grant all privileges on zabbix.* to zabbix@'localhost'; 
exit;

日本語フォントのインストール

sudo apt-get install fonts-vlgothic

DBデータを登録

zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uroot zabbix -p

configを変更

DBPasswordだけ

http://qiita.com/koara-local/items/26475b321030140d2048

nginxの設定をする

シンボリックリンクを貼る 

ln -s /usr/share/zabbix/ /var/www/html/zabbix

ファイルphp.iniを編集

date.timezone = "Asia/Tokyo"

いろいろあってWebからアクセス

The frontend does not match Zabbix database.って表示されたらDBの初期化に失敗している証拠

http://qiita.com/dz_/items/3e85dd369c8053ceffe8

なんかエラー起きるからDB入れなおしたほうが良さそう

mysql -uroot zbx -p < create.sql
Enter password:
ERROR 1366 (HY000) at line 3390: Incorrect string value: '\xD0\xA1' for column 'units' at row 1

めも

DB回りの処理

DBの削除 drop database DB名

ユーザの削除 drop user 'ユーザ名'@'localhost';

日本語の設定


Copyright (c) 2017 Tomoyuki KOYAMA
Released under the MIT license
http://opensource.org/licenses/mit-license.php

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした