Table of Contents

Zabbix

Zabbix Server (CentOS7)

Installation

# yum install mariadb-server
# /etc/my.cnf.d/server.cnf  /etc/my.cnf.d/server.cnf.org
# vi /etc/my.cnf.d/server.cnf
[mysqld]
character-set-server = utf8
collation-server     = utf8_bin
skip-character-set-client-handshake
innodb_file_per_table
# mysql -uroot
MariaDB [(none)]> create database zabbix;
MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost identified by 'password' ;
MariaDB [(none)]> exit
# systemctl stop firewalld.service 
# systemctl disable firewalld.service 

Installing repository configuration package

# rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
# yum install zabbix-server-mysql zabbix-web-mysql
# yum install zabbix-agent
# cd /usr/share/doc/zabbix-server-mysql-3.0.4/
#  zcat create.sql.gz | mysql -uroot zabbix
# cp -p /etc/zabbix/zabbix_server.conf /etc/zabbix/zabbix_server.conf.org
# vi /etc/zabbix/zabbix_server.conf

DBPassword=password
# vi /etc/httpd/conf.d/zabbix.conf

php_value date.timezone Asia/Tokyo
# systemctl start zabbix-server
# systemctl start zabbix-agent
# systemctl start httpd

# systemctl enable zabbix-server
# systemctl enable zabbix-agent
# systemctl enable httpd



http://xx.xx.xx.xx/zabbix

User : Admin
Password : zabbix


Note

Trouble : zabbix-server has failed

-- Unit zabbix-server.service has begun starting up.
 9 03 00:50:22 centos7 kernel: zabbix_server[2488]: segfault at 18 ip 00007fc150472bd0 sp 00007ffff6488c08 error 4 in libpthread-2.17.so[7fc150
 9 03 00:50:22 centos7 systemd[1]: zabbix-server.service: control process exited, code=killed status=11
 9 03 00:50:22 centos7 systemd[1]: Failed to start Zabbix Server.
-- Subject: Unit zabbix-server.service has failed

answer

yum install trousers