YUMSERV
article thumbnail
반응형

 

* CentOS 7 설치

* Apache : 2.4 Mysql 5.7 Php : 7.3

$ groupadd zabbix
$ useradd -g zabbix zabbix

$ mkdir /usr/local/zabbix
$ mkdir /usr/local/zabbix/server
$ wget https://cdn.zabbix.com/zabbix/sources/stable/5.2/zabbix-5.2.5.tar.gz
$ tar xvfz zabbix-5.2.5.tar.gz
$ mv zabbix-5.2.5 /usr/local/zabbix
$ cd /usr/local/zabbix/zabbix-5.2.5/
$ ./configure --prefix=/usr/local/zabbix/server --enable-server --enable-agent2 --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2
$ make && make install

$ /usr/local/mysql/bin/mysql -u root -p
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by "DB패스워드";
mysql> flush privileges;

$ /usr/local/mysql/bin/mysql -u root -p zabbix < ./schema.sql
$ /usr/local/mysql/bin/mysql -u root -p zabbix < ./images.sql
$ /usr/local/mysql/bin/mysql -u root -p zabbix < ./data.sql

$ chown -R zabbix.zabbix -R /usr/local/zabbix/

$ vi /usr/local/zabbix/server/etc/zabbix_server.conf
DBName=zabbix
DBUser=zabbix
DBPassword=DB패스워드

# zabbix-web-front 설정
$ cp -arp /usr/local/zabbix/zabbix-5.2.5/ui/* /usr/local/apache/htdocs/zabbix/
$ chwon -R daemon.daemon /usr/local/apache/htdocs/zabbix

$ cp -arp /usr/local/zabbix/zabbix-5.2.5/misc/init.d/fedora/core/zabbix_server /etc/init.d/zabbix_server
$ cp -arp /usr/local/zabbix/zabbix-5.2.5/misc/init.d/fedora/core/zabbix_agentd /etc/init.d/zabbix_agentd
$ vi /etc/init.d/zabbix_server
# 아래 내용 수정
chkconfig: - 2345 90 90
BASEDIR=/usr/local/zabbix/server

$ systemctl daemon-reload
$ /etc/init.d/zabbix_server start
$ /etc/init.d/zabbix_agentd start

Admin / zabbix로 접속하시면 됩니다.

 

반응형

'MONITORING' 카테고리의 다른 글

[Uptime Kuma] 설치 및 사용  (0) 2022.08.19
[Zabbix] pdf-report  (0) 2021.03.28
[Zabbix] Mysql DB 모니터링  (0) 2021.03.14
[Zabbix] telegram 연동  (0) 2021.03.14
[Zabbix] apache 모니터링  (0) 2021.03.14
profile

YUMSERV

@lena04301

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!