Zabbix4.0을 CentOS7에 설치
Zabbix
Zabbix의 설치는 아무렇지도 않게 공식 문서로 완결되지 않은 느낌이 있기 때문에, 현시점에서의 설치 방법을 기재한다.
소개
Zabbix 전혀 사용하지 않았지만, 2018/10에 version4.0이 나왔기 때문에 사용해 본다.
SELinux 무효화
vi /etc/selinux/config
SELINUX=disabled
reboot
재부팅
reboot
zabbix 설치
기본적으로 공식 문서 거리에 가다
그리고, 여기 공식 사이트
Zabbix 서버 설치
rpm -ivh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
yum -y install yum-utils
↓사용할 수 없기 때문에↑를 인스톨 할 필요가 있다. (공식 문서에는 기재되지 않음)
yum-config-manager --enable rhel-7-server-optional-rpms
yum -y install zabbix-server-mysql zabbix-proxy-mysql zabbix-web-mysql zabbix-agent
DB 설치
yum install mariadb mariadb-server
Installed:
mariadb.x86_64 1:5.5.60-1.el7_5 mariadb-server.x86_64 1:5.5.60-1.el7_5
systemctl enable mariadb.service
systemctl start mariadb.service
#設定
mysql_secure_installation
Enter current password for root (enter for none):
Set root password? [Y/n] Y
New password:なんか適当に
Re-enter new password:なんか適当に
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] n
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y
mysql -uroot -p
Enter password:
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.01 sec)
grant all privileges on zabbix.* to zabbix@localhost identified by 'password'; -- なんか適当にパスワード
MariaDB [(none)]> quit;
Bye
초기 데이터 및 스키마 가져오기
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
Enter password: # 上記のパスワード
Zabbix 서버의 데이터베이스 설정
vi /etc/zabbix/zabbix_server.conf
DBPassword= #上記のパスワードを入力
Zabbix 프런트 엔드의 시간대 설정
/etc/httpd/conf.d/zabbix.conf
↓をよしなに変更
php_value date.timezone Asia/Tokyo
Zabbix 서버 재부팅
systemctl restart zabbix-server httpd zabbix-agent
systemctl enable zabbix-server httpd zabbix-agent
Zabbix 방문


DB 비밀번호 입력

스쿠쇼와는 달리, Host명은 zabbix
했다.



기본 계정 Admin
/zabbix
로 로그인

했어.
Reference
이 문제에 관하여(Zabbix4.0을 CentOS7에 설치), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/HirokiSakonju/items/3a225cfb3bdd5815796c
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
vi /etc/selinux/config
SELINUX=disabled
reboot
reboot
rpm -ivh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
yum -y install yum-utils
yum-config-manager --enable rhel-7-server-optional-rpms
yum -y install zabbix-server-mysql zabbix-proxy-mysql zabbix-web-mysql zabbix-agent
yum install mariadb mariadb-server
Installed:
mariadb.x86_64 1:5.5.60-1.el7_5 mariadb-server.x86_64 1:5.5.60-1.el7_5
systemctl enable mariadb.service
systemctl start mariadb.service
#設定
mysql_secure_installation
Enter current password for root (enter for none):
Set root password? [Y/n] Y
New password:なんか適当に
Re-enter new password:なんか適当に
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] n
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y
mysql -uroot -p
Enter password:
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.01 sec)
grant all privileges on zabbix.* to zabbix@localhost identified by 'password'; -- なんか適当にパスワード
MariaDB [(none)]> quit;
Bye
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
Enter password: # 上記のパスワード
vi /etc/zabbix/zabbix_server.conf
DBPassword= #上記のパスワードを入力
/etc/httpd/conf.d/zabbix.conf
↓をよしなに変更
php_value date.timezone Asia/Tokyo
systemctl restart zabbix-server httpd zabbix-agent
systemctl enable zabbix-server httpd zabbix-agent
Reference
이 문제에 관하여(Zabbix4.0을 CentOS7에 설치), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/HirokiSakonju/items/3a225cfb3bdd5815796c텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)