Last active
May 13, 2016 16:43
-
-
Save k-kawa/c1b9db6be96a61d8973c638043282522 to your computer and use it in GitHub Desktop.
Zabbix 3.0 を Ubuntu 14.04 にインストールするための手順 ref: http://qiita.com/k-kawa@github/items/65c30d19e7055fec1114
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+trusty_all.deb | |
sudo dpkg -i zabbix-release_3.0-1+trusty_all.deb | |
sudo apt-get update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install zabbix-agent | |
# そのホストを監視するエージェント。 | |
sudo apt-get install zabbix-server-mysql --no-install-recommends | |
# Zabbix の本体。 | |
# --no-install-recommends をつけないと、ローカルに MySQL をインストールしてしまう。 | |
# まあ、今回は別にインストールしてもいいけど。 | |
sudo apt-get install zabbix-frontend-php | |
# Zabbix のフロントエンド。 | |
sudo apt-get install php5-mysql | |
# PHP の MySQL クライアントライブラリ。表示に使う。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -uroot -p -e "grant all on zabbix.* to 'zabbix'@'localhost' identified by 'SECRETPASSWORD'" | |
mysql -uroot -p -e "create database zabbix character set utf8" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uroot -p zabbix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vi /etc/zabbix/zabbix_server.conf | |
DBHost=localhost | |
DBName=zabbix | |
DBUser=zabbix | |
DBPassword=SECRETPASSWORD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo cp /etc/zabbix/apache.conf /etc/apache2/conf-available/zabbix.conf | |
sudo ln -s /etc/apache2/conf-{available,enabled}/zabbix.conf | |
sudo vi /etc/apache2/conf-available/zabbix.conf | |
.... | |
php_value date.timezone Asia/Tokyo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo service zabbix restart | |
sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment