[모니터링툴]자빅스6 설치# Operation System/Linux2022. 6. 3. 08:35
Table of Contents
728x90
반응형
이전에 3.5버전 설치후 벌써 6버전까지 나온
설치환경
[daraksharavim.tistory.com]$ cat /etc/redhat-release
Rocky Linux release 8.6 (Green Obsidian)
[daraksharavim.tistory.com]$ httpd -v
Server version: Apache/2.4.37 (rocky)
Server built: May 10 2022 18:05:14
[daraksharavim.tistory.com]$ mysql -V
mysql Ver 15.1 Distrib 10.3.32-MariaDB, for Linux (x86_64) using readline 5.1
[daraksharavim.tistory.com]$ php -v
PHP 7.2.24 (cli) (built: Oct 22 2019 08:28:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.24, Copyright (c) 1999-2018, by Zend Technologies
자빅스6 설치
[daraksharavim.tistory.com]$ rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-1.el8.noarch.rpm
[daraksharavim.tistory.com]$ dnf clean all
[daraksharavim.tistory.com]$ dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent
[daraksharavim.tistory.com]$ mysql -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 18
Server version: 10.3.32-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database zabbix character set utf8mb4 collate utf8mb4_bin;
Query OK, 1 row affected (0.000 sec)
MariaDB [(none)]> create user zabbix@localhost identified by 'password';
Query OK, 0 rows affected (0.000 sec)
MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost;
Query OK, 0 rows affected (0.000 sec)
MariaDB [(none)]> quit;
Bye
[daraksharavim.tistory.com]$ zcat /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix
Enter password:
/etc/zabbix/zabbix_server.conf수정
# 129라인 패스워드입력
DBPassword=password
서비스 구동
[daraksharavim.tistory.com]$ systemctl restart zabbix-server zabbix-agent httpd php-fpm
Job for zabbix-server.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status zabbix-server.service" and "journalctl -xe" for details.
[daraksharavim.tistory.com]$
서비스 확인
[daraksharavim.tistory.com]$ systemctl status zabbix-server
● zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; disabled; vendor preset: disabled)
Active: activating (start) since Sat 2022-06-04 15:19:41 KST; 901ms ago
Cntrl PID: 11748 (zabbix_server)
Tasks: 2 (limit: 23458)
Memory: 2.2M
CGroup: /system.slice/zabbix-server.service
└─11748 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
6월 04 15:19:41 darksharavim systemd[1]: Starting Zabbix Server...
[daraksharavim.tistory.com]$ systemctl status zabbix-agent
● zabbix-agent.service - Zabbix Agent
Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; disabled; vendor preset: disabled)
Active: active (running) since Sat 2022-06-04 15:19:17 KST; 40s ago
Process: 11706 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=0/SUCCESS)
Main PID: 11714 (zabbix_agentd)
Tasks: 6 (limit: 23458)
Memory: 3.9M
CGroup: /system.slice/zabbix-agent.service
├─11714 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
├─11715 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
├─11716 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection]
├─11717 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection]
├─11718 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection]
└─11719 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]
6월 04 15:19:17 darksharavim systemd[1]: Starting Zabbix Agent...
6월 04 15:19:17 darksharavim systemd[1]: Started Zabbix Agent.
[daraksharavim.tistory.com]$ systemctl status zabbix-server
● zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; disabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: protocol) since Sat 2022-06-04 15:20:44 KST; 8s ago
Process: 11998 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)
6월 04 15:20:44 darksharavim systemd[1]: Failed to start Zabbix Server.
11994:20220604:152030.660 Unable to start Zabbix server due to unsupported MariaDB database server version (10.03.32)
11994:20220604:152030.660 Must be at least (10.05.00)
11994:20220604:152030.660 Use of supported database version is highly recommended.
11994:20220604:152030.660 Override by setting AllowUnsupportedDBVersions=1 in Zabbix server configuration file at your own risk.
mariadb버전이 문제인듯 버전 업그레이드!
# MariaDB repository 추가
[daraksharavim.tistory.com]$ curl -LsS -O https://downloads.mariadb.com/MariaDB/mariadb_repo_setup
[daraksharavim.tistory.com]$ bash mariadb_repo_setup
[daraksharavim.tistory.com]$ dnf install MariaDB-server MariaDB-client
# 버전확인
[daraksharavim.tistory.com]$ mysql -V
mysql Ver 15.1 Distrib 10.7.4-MariaDB, for Linux (x86_64) using readline 5.1
# Start and enable MariaDB.
[daraksharavim.tistory.com]$ systemctl start mariadb && sudo systemctl enable mariadb
[daraksharavim.tistory.com]$ mariadb-secure-installation
다시 자빅스서버 재기동
[daraksharavim.tistory.com]$ systemctl start zabbix-server
[daraksharavim.tistory.com]$ systemctl status zabbix-server
● zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; disabled; vendor preset: disabled)
Active: active (running) since Sat 2022-06-04 16:38:26 KST; 828ms ago
Process: 17783 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)
Main PID: 17785 (zabbix_server)
Tasks: 1 (limit: 23458)
Memory: 2.5M
CGroup: /system.slice/zabbix-server.service
└─17785 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
웹브라우저에서 자빅스 URL접속
http://[도메인 or IP]/zabbix/
https://nextgentips.com/2022/03/24/how-to-install-zabbix-6-0-on-oracle-linux-8/
https://www.zabbix.com/documentation/6.0/en/manual/installation/install
728x90
반응형
'# Operation System > Linux' 카테고리의 다른 글
tar 분할압축 및 해제 (0) | 2022.07.27 |
---|---|
linux malware detect maldet (0) | 2022.07.08 |
ntp(network time protocol) 서버 구축 (0) | 2022.05.20 |
centos6x yum update 에러 해결 (0) | 2022.05.19 |
linux 확장자 일괄 변경 rename (0) | 2022.04.19 |
@다크쉐라빔 :: 다크쉐라빔의 주절주절
안녕하세요. 이곳은 IT위주의 잡다한 정보를 올려두는 개인 블로그입니다.
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!