«   2021/05   »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
05-08 07:43
Notice
Today
10
Total
1,423,024
관리 메뉴

변군이글루

[ZABBIX] Zabbix Proxy 서버 구성 본문

* 리눅스

[ZABBIX] Zabbix Proxy 서버 구성

변군 변군이글루 2021. 4. 10. 11:24

Zabbix Proxy 서버 구성

Zabbix Proxy DB 서버 설치

$ wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
$ rpm -ivh mysql57-community-release-el7-11.noarch.rpm

$ yum install -y mysql-server

$ systemctl enable --now mysqld

MySQL 5.7 비밀번호 재설정

$ systemctl stop mysqld

$ systemctl set-environment MYSQLD_OPTS="--skip-grant-tables"

###ROOT 패스워드 변경
$ mysql -uroot
mysql> UPDATE mysql.user SET authentication_string = PASSWORD('새로운_비밀번호') WHERE User = 'root' AND Host = 'localhost';
mysql> FLUSH PRIVILEGES;

$ systemctl stop mysqld

$ systemctl unset-environment MYSQLD_OPTS

$ systemctl start mysqld
$ mysql -uroot -p
mysql> use mysql;
mysql> ALTER USER root@localhost IDENTIFIED BY '비밀번호_재설정';
mysql> FLUSH PRIVILEGES;

$ mysql_secure_installation

자빅스 프록시 디비 생성(zabbix_proxy_db)

$ mysql -uroot -p
mysql> CREATE DATABASE zabbix_proxy_db CHARACTER SET UTF8;
mysql> GRANT ALL PRIVILEGES on zabbix_proxy_db.* to zabbix@localhost IDENTIFIED BY 'zabbixpw1!';
mysql> FLUSH PRIVILEGES;

zabbix proxy 설치

$ yum install -y zabbix-proxy-mysql zabbix-agent

자빅스 디비 스키마 입력

$ mysql -u zabbix -p'zabbixpw1!' zabbix_proxy_db < /usr/share/doc/zabbix-proxy-mysql-5.0.10/schema.sql 

zabbix-proxy 설정

$ vi /etc/zabbix/zabbix_proxy.conf
ProxyMode=0
Server=server_ip
Hostname=zabbix-proxy
DBName=zabbix_proxy_db
DBUser=zabbix
DBPassword=zabbixpw1!

zabbix(zabbix-proxy, zabbix-agent) 프로세스 시작 및 시작프로그램 등록

$ systemctl enable --now zabbix-proxy
$ systemctl enable --now zabbix-agent

 

 

0 Comments
댓글쓰기 폼