LoginSignup
1
1

More than 5 years have passed since last update.

AmazonLinux に Zabbix3.0 をインストールした話

Posted at

構成

Zabbix Server : EC2
Database : RDS(MariaDB)

EC2やRDSの構築は飛ばします

必要パッケージのインストール

EC2にSSHでログインして、以下。

PHP & Apache

yum -y install httpd24 mysql php70 php70-devel php70-gd php70-mbstring php70-mcrypt php70-pdo php70-pecl-apcu-devel zlib-devel php70-mysqlnd php70-bcmath

mariadb

RDSを使うので不要

PHP の設定

vim /etc/php.ini

リポジトリのインストール

rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-1.el6.noarch.rpm

AmazonLinux は init 制御なので RHEL6 版をインストールします。
systemd に変わったら RHEL7 版に変更。

Zabbix3.0 のインストール

yum install zabbix-server-mysql.x86_64 zabbix-web-mysql.noarch zabbix-web-japanese.noarch zabbix-get zabbix-agent

設定

cp /usr/share/doc/zabbix-web-3.0.9/httpd24-example.conf /etc/httpd/conf.d/zabbix.conf
vim /etc/httpd/conf.d/zabbix.conf

以下を変更します。

  • 読み込むモジュールの変更

    変更前:<IfModule mod_php5.c>
    変更後:<IfModule mod_php7.c>

  • タイムゾーンの設定

    変更前:#php_value date.timezone Europe/Riga
    変更後:php_value date.timezone Asia/Tokyo

1
1
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
1
1