AWS
mariadb
RHEL7
zabbix3.4

rhel7 + zabbix3.4 + MariaDB on AWS

使用したコマンド

sudo su -
cat /etc/system-release
cat /proc/version
passwd root

setenforce 0

cp -p /usr/share/zoneinfo/Japan /etc/localtime
vi /etc/locale.conf

NG=ja_JP.UTF-8

reboot

setenforce 0

rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
vi /etc/yum.repos.d/redhat-rhui.repo

enabled=1

yum-config-manager --enable rhel-7-server-optional-rpms
yum install zabbix-server-mysql zabbix-proxy-mysql zabbix-web-mysql
vi /etc/yum.repos.d/mariadb.repo

# MariaDB 10.3 RedHat repository list - created 2018-06-11 13:28 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.3/rhel7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

yum install MariaDB-server MariaDB-client
systemctl enable mariadb
systemctl start mariadb
systemctl status mariadb

mysql -uroot -p
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
quit;

zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
vi /etc/zabbix/zabbix_server.conf

DBPassword=zabbix

systemctl enable zabbix-server
systemctl start zabbix-server

vi /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Tokyo

systemctl enable httpd
systemctl start httpd

http://18.182.6.117/zabbix/
スクリーンショット 2018-06-12 00.26.50.png

参考文献

EC2 RHEL 7 へZabbix Server 3.4 をインストール
https://qiita.com/130cmWolf/items/ef9f172e3cca6f38d584
Zabbix Documentation 3.4
https://www.zabbix.com/documentation/3.4/manual/installation/install_from_packages/rhel_centos
Downloads Setting up MariaDB Repositories
https://downloads.mariadb.org/mariadb/repositories/#mirror=yamagata-university&distro=RedHat&distro_release=rhel7-amd64--rhel7&version=10.3

ログ

https://docs.google.com/document/d/1OZHyVwHfz3Qyu-KgJ3akEAngAMji6OpGXUk6hyZDcvI/edit?usp=sharing