728x90
- zabbix 설치 사이트
https://www.zabbix.com/download?
- 구성 환경
Zabbix 6.0LTS
Rocky Linux 9
Server, Frontend, Agent
MySQL
Apache
1. mysql 설치
[root@localhost ~]# dnf install mysql-server -y
Rocky Linux 9 - BaseOS 1.9 MB/s | 2.3 MB 00:01
Rocky Linux 9 - AppStream 9.9 MB/s | 8.0 MB 00:00
Rocky Linux 9 - Extras 20 kB/s | 15 kB 00:00
Dependencies resolved.
=============================================================================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================================================================
Installing:
mysql-server x86_64 8.0.36-1.el9_3 appstream 17 M
Installing dependencies:
checkpolicy x86_64 3.6-1.el9 appstream 352 k
libicu x86_64 67.1-9.el9 baseos 9.6 M
libtirpc x86_64 1.3.3-8.el9_4 baseos 93 k
mariadb-connector-c-config noarch 3.2.6-1.el9_0 appstream 9.8 k
mecab x86_64 0.996-3.el9.4 appstream 346 k
mysql x86_64 8.0.36-1.el9_3 appstream 2.7 M
mysql-common x86_64 8.0.36-1.el9_3 appstream 69 k
mysql-errmsg x86_64 8.0.36-1.el9_3 appstream 497 k
mysql-selinux noarch 1.0.10-1.el9 appstream 36 k
perl-AutoLoader noarch 5.74-481.el9 appstream 20 k
perl-B x86_64 1.80-481.el9 appstream 178 k
perl-Carp noarch 1.50-460.el9 appstream 29 k
perl-Class-Struct noarch 0.66-481.el9 appstream 21 k
perl-Data-Dumper x86_64 2.174-462.el9 appstream 55 k
perl-Digest noarch 1.19-4.el9 appstream 25 k
perl-Digest-MD5 x86_64 2.58-4.el9 appstream 36 k
perl-Encode x86_64 4:3.08-462.el9 appstream 1.7 M
perl-Errno x86_64 1.30-481.el9 appstream 13 k
perl-Exporter noarch 5.74-461.el9 appstream 31 k
perl-Fcntl x86_64 1.13-481.el9 appstream 19 k
perl-File-Basename noarch 2.85-481.el9 appstream 16 k
perl-File-Path noarch 2.18-4.el9 appstream 35 k
perl-File-Temp noarch 1:0.231.100-4.el9 appstream 59 k
perl-File-stat noarch 1.09-481.el9 appstream 16 k
perl-FileHandle noarch 2.03-481.el9 appstream 14 k
perl-Getopt-Long noarch 1:2.52-4.el9 appstream 60 k
perl-Getopt-Std noarch 1.12-481.el9 appstream 14 k
perl-HTTP-Tiny noarch 0.076-462.el9 appstream 53 k
perl-IO x86_64 1.43-481.el9 appstream 85 k
perl-IO-Socket-IP noarch 0.41-5.el9 appstream 42 k
perl-IO-Socket-SSL noarch 2.073-1.el9 appstream 217 k
perl-IPC-Open3 noarch 1.21-481.el9 appstream 21 k
perl-MIME-Base64 x86_64 3.16-4.el9 appstream 30 k
perl-Mozilla-CA noarch 20200520-6.el9 appstream 12 k
perl-Net-SSLeay x86_64 1.92-2.el9 appstream 365 k
perl-POSIX x86_64 1.94-481.el9 appstream 95 k
perl-PathTools x86_64 3.78-461.el9 appstream 85 k
perl-Pod-Escapes noarch 1:1.07-460.el9 appstream 20 k
perl-Pod-Perldoc noarch 3.28.01-461.el9 appstream 83 k
perl-Pod-Simple noarch 1:3.42-4.el9 appstream 215 k
perl-Pod-Usage noarch 4:2.01-4.el9 appstream 40 k
perl-Scalar-List-Utils x86_64 4:1.56-461.el9 appstream 71 k
perl-SelectSaver noarch 1.02-481.el9 appstream 10 k
perl-Socket x86_64 4:2.031-4.el9 appstream 54 k
perl-Storable x86_64 1:3.21-460.el9 appstream 95 k
perl-Symbol noarch 1.08-481.el9 appstream 13 k
perl-Term-ANSIColor noarch 5.01-461.el9 appstream 48 k
perl-Term-Cap noarch 1.17-460.el9 appstream 22 k
perl-Text-ParseWords noarch 3.30-460.el9 appstream 16 k
perl-Text-Tabs+Wrap noarch 2013.0523-460.el9 appstream 23 k
perl-Time-Local noarch 2:1.300-7.el9 appstream 33 k
perl-URI noarch 5.09-3.el9 appstream 108 k
perl-base noarch 2.27-481.el9 appstream 15 k
perl-constant noarch 1.33-461.el9 appstream 23 k
perl-if noarch 0.60.800-481.el9 appstream 13 k
perl-interpreter x86_64 4:5.32.1-481.el9 appstream 70 k
perl-libnet noarch 3.13-4.el9 appstream 125 k
perl-libs x86_64 4:5.32.1-481.el9 appstream 2.0 M
perl-mro x86_64 1.23-481.el9 appstream 27 k
perl-overload noarch 1.31-481.el9 appstream 44 k
perl-overloading noarch 0.02-481.el9 appstream 11 k
perl-parent noarch 1:0.238-460.el9 appstream 14 k
perl-podlators noarch 1:4.14-460.el9 appstream 112 k
perl-subs noarch 1.03-481.el9 appstream 10 k
perl-vars noarch 1.05-481.el9 appstream 12 k
policycoreutils-python-utils noarch 3.6-2.1.el9 appstream 71 k
protobuf-lite x86_64 3.14.0-13.el9 appstream 231 k
python3-audit x86_64 3.1.2-2.el9 appstream 82 k
python3-distro noarch 1.5.0-7.el9 appstream 36 k
python3-libsemanage x86_64 3.6-1.el9 appstream 79 k
python3-policycoreutils noarch 3.6-2.1.el9 appstream 2.0 M
python3-setools x86_64 4.4.4-1.el9 baseos 551 k
python3-setuptools noarch 53.0.0-12.el9_4.1 baseos 838 k
Installing weak dependencies:
perl-NDBM_File x86_64 1.15-481.el9 appstream 21 k
Transaction Summary
=============================================================================================================================================================================================================
Install 75 Packages
Total download size: 41 M
Installed size: 251 M
Downloading Packages:
(1/75): libtirpc-1.3.3-8.el9_4.x86_64.rpm 705 kB/s | 93 kB 00:00
(2/75): python3-setuptools-53.0.0-12.el9_4.1.noarch.rpm 5.3 MB/s | 838 kB 00:00
(3/75): python3-setools-4.4.4-1.el9.x86_64.rpm 19 MB/s | 551 kB 00:00
(4/75): perl-Text-ParseWords-3.30-460.el9.noarch.rpm 1.2 MB/s | 16 kB 00:00
(5/75): perl-Exporter-5.74-461.el9.noarch.rpm 3.0 MB/s | 31 kB 00:00
(6/75): perl-Pod-Simple-3.42-4.el9.noarch.rpm 13 MB/s | 215 kB 00:00
(7/75): perl-File-Path-2.18-4.el9.noarch.rpm 2.6 MB/s | 35 kB 00:00
(8/75): perl-Pod-Perldoc-3.28.01-461.el9.noarch.rpm 6.5 MB/s | 83 kB 00:00
(9/75): perl-Getopt-Long-2.52-4.el9.noarch.rpm 4.4 MB/s | 60 kB 00:00
(10/75): perl-Pod-Usage-2.01-4.el9.noarch.rpm 3.5 MB/s | 40 kB 00:00
(11/75): perl-IO-Socket-IP-0.41-5.el9.noarch.rpm 3.6 MB/s | 42 kB 00:00
(12/75): python3-distro-1.5.0-7.el9.noarch.rpm 3.8 MB/s | 36 kB 00:00
(13/75): perl-Time-Local-1.300-7.el9.noarch.rpm 3.6 MB/s | 33 kB 00:00
(14/75): perl-libnet-3.13-4.el9.noarch.rpm 13 MB/s | 125 kB 00:00
(15/75): checkpolicy-3.6-1.el9.x86_64.rpm 23 MB/s | 352 kB 00:00
(16/75): python3-audit-3.1.2-2.el9.x86_64.rpm 6.0 MB/s | 82 kB 00:00
(17/75): libicu-67.1-9.el9.x86_64.rpm 31 MB/s | 9.6 MB 00:00
(18/75): mysql-selinux-1.0.10-1.el9.noarch.rpm 495 kB/s | 36 kB 00:00
(19/75): mariadb-connector-c-config-3.2.6-1.el9_0.noarch.rpm 144 kB/s | 9.8 kB 00:00
(20/75): perl-Carp-1.50-460.el9.noarch.rpm 5.5 MB/s | 29 kB 00:00
(21/75): perl-podlators-4.14-460.el9.noarch.rpm 17 MB/s | 112 kB 00:00
(22/75): perl-Term-Cap-1.17-460.el9.noarch.rpm 3.0 MB/s | 22 kB 00:00
(23/75): perl-Term-ANSIColor-5.01-461.el9.noarch.rpm 8.8 MB/s | 48 kB 00:00
(24/75): perl-HTTP-Tiny-0.076-462.el9.noarch.rpm 9.5 MB/s | 53 kB 00:00
(25/75): perl-Digest-1.19-4.el9.noarch.rpm 4.4 MB/s | 25 kB 00:00
(26/75): perl-URI-5.09-3.el9.noarch.rpm 17 MB/s | 108 kB 00:00
(27/75): perl-constant-1.33-461.el9.noarch.rpm 4.5 MB/s | 23 kB 00:00
(28/75): perl-Encode-3.08-462.el9.x86_64.rpm 57 MB/s | 1.7 MB 00:00
(29/75): policycoreutils-python-utils-3.6-2.1.el9.noarch.rpm 1.6 MB/s | 71 kB 00:00
(30/75): python3-policycoreutils-3.6-2.1.el9.noarch.rpm 37 MB/s | 2.0 MB 00:00
(31/75): perl-Data-Dumper-2.174-462.el9.x86_64.rpm 1.9 MB/s | 55 kB 00:00
(32/75): perl-Scalar-List-Utils-1.56-461.el9.x86_64.rpm 5.5 MB/s | 71 kB 00:00
(33/75): perl-IO-Socket-SSL-2.073-1.el9.noarch.rpm 25 MB/s | 217 kB 00:00
(34/75): perl-Storable-3.21-460.el9.x86_64.rpm 8.9 MB/s | 95 kB 00:00
(35/75): perl-PathTools-3.78-461.el9.x86_64.rpm 6.9 MB/s | 85 kB 00:00
(36/75): perl-Mozilla-CA-20200520-6.el9.noarch.rpm 1.2 MB/s | 12 kB 00:00
(37/75): perl-Text-Tabs+Wrap-2013.0523-460.el9.noarch.rpm 2.6 MB/s | 23 kB 00:00
(38/75): perl-Digest-MD5-2.58-4.el9.x86_64.rpm 4.0 MB/s | 36 kB 00:00
(39/75): perl-Pod-Escapes-1.07-460.el9.noarch.rpm 2.4 MB/s | 20 kB 00:00
(40/75): perl-MIME-Base64-3.16-4.el9.x86_64.rpm 3.8 MB/s | 30 kB 00:00
(41/75): perl-File-Temp-0.231.100-4.el9.noarch.rpm 6.8 MB/s | 59 kB 00:00
(42/75): python3-libsemanage-3.6-1.el9.x86_64.rpm 9.4 MB/s | 79 kB 00:00
(43/75): mecab-0.996-3.el9.4.x86_64.rpm 6.4 MB/s | 346 kB 00:00
(44/75): perl-Socket-2.031-4.el9.x86_64.rpm 1.0 MB/s | 54 kB 00:00
(45/75): perl-mro-1.23-481.el9.x86_64.rpm 559 kB/s | 27 kB 00:00
(46/75): perl-libs-5.32.1-481.el9.x86_64.rpm 57 MB/s | 2.0 MB 00:00
(47/75): perl-interpreter-5.32.1-481.el9.x86_64.rpm 1.9 MB/s | 70 kB 00:00
(48/75): perl-POSIX-1.94-481.el9.x86_64.rpm 2.5 MB/s | 95 kB 00:00
(49/75): perl-NDBM_File-1.15-481.el9.x86_64.rpm 4.1 MB/s | 21 kB 00:00
(50/75): perl-IO-1.43-481.el9.x86_64.rpm 14 MB/s | 85 kB 00:00
(51/75): perl-Fcntl-1.13-481.el9.x86_64.rpm 2.7 MB/s | 19 kB 00:00
(52/75): perl-Errno-1.30-481.el9.x86_64.rpm 2.8 MB/s | 13 kB 00:00
(53/75): perl-B-1.80-481.el9.x86_64.rpm 25 MB/s | 178 kB 00:00
(54/75): perl-vars-1.05-481.el9.noarch.rpm 1.6 MB/s | 12 kB 00:00
(55/75): perl-subs-1.03-481.el9.noarch.rpm 1.5 MB/s | 10 kB 00:00
(56/75): perl-overloading-0.02-481.el9.noarch.rpm 2.3 MB/s | 11 kB 00:00
(57/75): perl-overload-1.31-481.el9.noarch.rpm 8.3 MB/s | 44 kB 00:00
(58/75): perl-if-0.60.800-481.el9.noarch.rpm 1.7 MB/s | 13 kB 00:00
(59/75): perl-base-2.27-481.el9.noarch.rpm 3.0 MB/s | 15 kB 00:00
(60/75): perl-Symbol-1.08-481.el9.noarch.rpm 2.6 MB/s | 13 kB 00:00
(61/75): perl-SelectSaver-1.02-481.el9.noarch.rpm 2.1 MB/s | 10 kB 00:00
(62/75): perl-IPC-Open3-1.21-481.el9.noarch.rpm 4.3 MB/s | 21 kB 00:00
(63/75): perl-Getopt-Std-1.12-481.el9.noarch.rpm 2.8 MB/s | 14 kB 00:00
(64/75): perl-FileHandle-2.03-481.el9.noarch.rpm 2.8 MB/s | 14 kB 00:00
(65/75): perl-File-stat-1.09-481.el9.noarch.rpm 3.2 MB/s | 16 kB 00:00
(66/75): perl-File-Basename-2.85-481.el9.noarch.rpm 3.2 MB/s | 16 kB 00:00
(67/75): perl-Class-Struct-0.66-481.el9.noarch.rpm 4.1 MB/s | 21 kB 00:00
(68/75): perl-AutoLoader-5.74-481.el9.noarch.rpm 4.0 MB/s | 20 kB 00:00
(69/75): perl-Net-SSLeay-1.92-2.el9.x86_64.rpm 37 MB/s | 365 kB 00:00
(70/75): mysql-common-8.0.36-1.el9_3.x86_64.rpm 406 kB/s | 69 kB 00:00
(71/75): mysql-server-8.0.36-1.el9_3.x86_64.rpm 55 MB/s | 17 MB 00:00
(72/75): mysql-8.0.36-1.el9_3.x86_64.rpm 17 MB/s | 2.7 MB 00:00
(73/75): mysql-errmsg-8.0.36-1.el9_3.x86_64.rpm 1.4 MB/s | 497 kB 00:00
(74/75): protobuf-lite-3.14.0-13.el9.x86_64.rpm 4.1 MB/s | 231 kB 00:00
(75/75): perl-parent-0.238-460.el9.noarch.rpm 516 kB/s | 14 kB 00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 22 MB/s | 41 MB 00:01
Rocky Linux 9 - BaseOS 1.7 MB/s | 1.7 kB 00:00
Importing GPG key 0x350D275D:
Userid : "Rocky Enterprise Software Foundation - Release key 2022 <releng@rockylinux.org>"
Fingerprint: 21CB 256A E16F C54C 6E65 2949 702D 426D 350D 275D
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : perl-Digest-1.19-4.el9.noarch 1/75
Installing : perl-Digest-MD5-2.58-4.el9.x86_64 2/75
Installing : perl-B-1.80-481.el9.x86_64 3/75
Installing : perl-FileHandle-2.03-481.el9.noarch 4/75
Installing : perl-Data-Dumper-2.174-462.el9.x86_64 5/75
Installing : perl-libnet-3.13-4.el9.noarch 6/75
Installing : perl-base-2.27-481.el9.noarch 7/75
Installing : perl-AutoLoader-5.74-481.el9.noarch 8/75
Installing : perl-URI-5.09-3.el9.noarch 9/75
Installing : perl-Mozilla-CA-20200520-6.el9.noarch 10/75
Installing : perl-Text-Tabs+Wrap-2013.0523-460.el9.noarch 11/75
Installing : perl-Pod-Escapes-1:1.07-460.el9.noarch 12/75
Installing : perl-if-0.60.800-481.el9.noarch 13/75
Installing : perl-File-Path-2.18-4.el9.noarch 14/75
Installing : perl-IO-Socket-IP-0.41-5.el9.noarch 15/75
Installing : perl-Net-SSLeay-1.92-2.el9.x86_64 16/75
Installing : perl-Time-Local-2:1.300-7.el9.noarch 17/75
Installing : perl-IO-Socket-SSL-2.073-1.el9.noarch 18/75
Installing : perl-Term-ANSIColor-5.01-461.el9.noarch 19/75
Installing : perl-POSIX-1.94-481.el9.x86_64 20/75
Installing : perl-Term-Cap-1.17-460.el9.noarch 21/75
Installing : perl-subs-1.03-481.el9.noarch 22/75
Installing : perl-Pod-Simple-1:3.42-4.el9.noarch 23/75
Installing : perl-IPC-Open3-1.21-481.el9.noarch 24/75
Installing : perl-Class-Struct-0.66-481.el9.noarch 25/75
Installing : perl-HTTP-Tiny-0.076-462.el9.noarch 26/75
Installing : perl-File-Temp-1:0.231.100-4.el9.noarch 27/75
Installing : perl-Socket-4:2.031-4.el9.x86_64 28/75
Installing : perl-Symbol-1.08-481.el9.noarch 29/75
Installing : perl-SelectSaver-1.02-481.el9.noarch 30/75
Installing : perl-File-stat-1.09-481.el9.noarch 31/75
Installing : perl-podlators-1:4.14-460.el9.noarch 32/75
Installing : perl-Pod-Perldoc-3.28.01-461.el9.noarch 33/75
Installing : perl-mro-1.23-481.el9.x86_64 34/75
Installing : perl-Fcntl-1.13-481.el9.x86_64 35/75
Installing : perl-overloading-0.02-481.el9.noarch 36/75
Installing : perl-IO-1.43-481.el9.x86_64 37/75
Installing : perl-Pod-Usage-4:2.01-4.el9.noarch 38/75
Installing : perl-Text-ParseWords-3.30-460.el9.noarch 39/75
Installing : perl-constant-1.33-461.el9.noarch 40/75
Installing : perl-Scalar-List-Utils-4:1.56-461.el9.x86_64 41/75
Installing : perl-MIME-Base64-3.16-4.el9.x86_64 42/75
Installing : perl-Errno-1.30-481.el9.x86_64 43/75
Installing : perl-vars-1.05-481.el9.noarch 44/75
Installing : perl-overload-1.31-481.el9.noarch 45/75
Installing : perl-Getopt-Std-1.12-481.el9.noarch 46/75
Installing : perl-File-Basename-2.85-481.el9.noarch 47/75
Installing : perl-Storable-1:3.21-460.el9.x86_64 48/75
Installing : perl-parent-1:0.238-460.el9.noarch 49/75
Installing : perl-Getopt-Long-1:2.52-4.el9.noarch 50/75
Installing : perl-Exporter-5.74-461.el9.noarch 51/75
Installing : perl-Carp-1.50-460.el9.noarch 52/75
Installing : perl-NDBM_File-1.15-481.el9.x86_64 53/75
Installing : perl-PathTools-3.78-461.el9.x86_64 54/75
Installing : perl-Encode-4:3.08-462.el9.x86_64 55/75
Installing : perl-libs-4:5.32.1-481.el9.x86_64 56/75
Installing : perl-interpreter-4:5.32.1-481.el9.x86_64 57/75
Installing : mariadb-connector-c-config-3.2.6-1.el9_0.noarch 58/75
Installing : mysql-common-8.0.36-1.el9_3.x86_64 59/75
Installing : python3-setuptools-53.0.0-12.el9_4.1.noarch 60/75
Installing : python3-setools-4.4.4-1.el9.x86_64 61/75
Installing : python3-distro-1.5.0-7.el9.noarch 62/75
Installing : mysql-errmsg-8.0.36-1.el9_3.x86_64 63/75
Installing : mysql-8.0.36-1.el9_3.x86_64 64/75
Installing : protobuf-lite-3.14.0-13.el9.x86_64 65/75
Installing : mecab-0.996-3.el9.4.x86_64 66/75
Installing : python3-libsemanage-3.6-1.el9.x86_64 67/75
Installing : python3-audit-3.1.2-2.el9.x86_64 68/75
Installing : checkpolicy-3.6-1.el9.x86_64 69/75
Installing : python3-policycoreutils-3.6-2.1.el9.noarch 70/75
Installing : policycoreutils-python-utils-3.6-2.1.el9.noarch 71/75
Running scriptlet: mysql-selinux-1.0.10-1.el9.noarch 72/75
Installing : mysql-selinux-1.0.10-1.el9.noarch 72/75
Running scriptlet: mysql-selinux-1.0.10-1.el9.noarch 72/75
libsemanage.semanage_direct_install_info: Overriding mysql module at lower priority 100 with module at priority 200.
Installing : libicu-67.1-9.el9.x86_64 73/75
Installing : libtirpc-1.3.3-8.el9_4.x86_64 74/75
Running scriptlet: mysql-server-8.0.36-1.el9_3.x86_64 75/75
Installing : mysql-server-8.0.36-1.el9_3.x86_64 75/75
Running scriptlet: mysql-server-8.0.36-1.el9_3.x86_64 75/75
Running scriptlet: mysql-selinux-1.0.10-1.el9.noarch 75/75
Running scriptlet: mysql-server-8.0.36-1.el9_3.x86_64 75/75
Verifying : libtirpc-1.3.3-8.el9_4.x86_64 1/75
Verifying : python3-setuptools-53.0.0-12.el9_4.1.noarch 2/75
Verifying : libicu-67.1-9.el9.x86_64 3/75
Verifying : python3-setools-4.4.4-1.el9.x86_64 4/75
Verifying : perl-Text-ParseWords-3.30-460.el9.noarch 5/75
Verifying : perl-Exporter-5.74-461.el9.noarch 6/75
Verifying : perl-Pod-Simple-1:3.42-4.el9.noarch 7/75
Verifying : perl-File-Path-2.18-4.el9.noarch 8/75
Verifying : perl-Pod-Perldoc-3.28.01-461.el9.noarch 9/75
Verifying : perl-Getopt-Long-1:2.52-4.el9.noarch 10/75
Verifying : perl-Pod-Usage-4:2.01-4.el9.noarch 11/75
Verifying : perl-IO-Socket-IP-0.41-5.el9.noarch 12/75
Verifying : python3-distro-1.5.0-7.el9.noarch 13/75
Verifying : perl-Time-Local-2:1.300-7.el9.noarch 14/75
Verifying : perl-libnet-3.13-4.el9.noarch 15/75
Verifying : checkpolicy-3.6-1.el9.x86_64 16/75
Verifying : python3-audit-3.1.2-2.el9.x86_64 17/75
Verifying : mysql-selinux-1.0.10-1.el9.noarch 18/75
Verifying : mariadb-connector-c-config-3.2.6-1.el9_0.noarch 19/75
Verifying : perl-Carp-1.50-460.el9.noarch 20/75
Verifying : perl-podlators-1:4.14-460.el9.noarch 21/75
Verifying : perl-Term-Cap-1.17-460.el9.noarch 22/75
Verifying : perl-Term-ANSIColor-5.01-461.el9.noarch 23/75
Verifying : perl-HTTP-Tiny-0.076-462.el9.noarch 24/75
Verifying : perl-Digest-1.19-4.el9.noarch 25/75
Verifying : perl-URI-5.09-3.el9.noarch 26/75
Verifying : perl-constant-1.33-461.el9.noarch 27/75
Verifying : perl-Encode-4:3.08-462.el9.x86_64 28/75
Verifying : python3-policycoreutils-3.6-2.1.el9.noarch 29/75
Verifying : policycoreutils-python-utils-3.6-2.1.el9.noarch 30/75
Verifying : perl-Data-Dumper-2.174-462.el9.x86_64 31/75
Verifying : perl-Scalar-List-Utils-4:1.56-461.el9.x86_64 32/75
Verifying : perl-IO-Socket-SSL-2.073-1.el9.noarch 33/75
Verifying : perl-Storable-1:3.21-460.el9.x86_64 34/75
Verifying : perl-PathTools-3.78-461.el9.x86_64 35/75
Verifying : perl-Mozilla-CA-20200520-6.el9.noarch 36/75
Verifying : perl-Text-Tabs+Wrap-2013.0523-460.el9.noarch 37/75
Verifying : perl-Digest-MD5-2.58-4.el9.x86_64 38/75
Verifying : perl-Pod-Escapes-1:1.07-460.el9.noarch 39/75
Verifying : perl-MIME-Base64-3.16-4.el9.x86_64 40/75
Verifying : perl-File-Temp-1:0.231.100-4.el9.noarch 41/75
Verifying : python3-libsemanage-3.6-1.el9.x86_64 42/75
Verifying : mecab-0.996-3.el9.4.x86_64 43/75
Verifying : perl-Socket-4:2.031-4.el9.x86_64 44/75
Verifying : perl-mro-1.23-481.el9.x86_64 45/75
Verifying : perl-libs-4:5.32.1-481.el9.x86_64 46/75
Verifying : perl-interpreter-4:5.32.1-481.el9.x86_64 47/75
Verifying : perl-POSIX-1.94-481.el9.x86_64 48/75
Verifying : perl-NDBM_File-1.15-481.el9.x86_64 49/75
Verifying : perl-IO-1.43-481.el9.x86_64 50/75
Verifying : perl-Fcntl-1.13-481.el9.x86_64 51/75
Verifying : perl-Errno-1.30-481.el9.x86_64 52/75
Verifying : perl-B-1.80-481.el9.x86_64 53/75
Verifying : perl-vars-1.05-481.el9.noarch 54/75
Verifying : perl-subs-1.03-481.el9.noarch 55/75
Verifying : perl-overloading-0.02-481.el9.noarch 56/75
Verifying : perl-overload-1.31-481.el9.noarch 57/75
Verifying : perl-if-0.60.800-481.el9.noarch 58/75
Verifying : perl-base-2.27-481.el9.noarch 59/75
Verifying : perl-Symbol-1.08-481.el9.noarch 60/75
Verifying : perl-SelectSaver-1.02-481.el9.noarch 61/75
Verifying : perl-IPC-Open3-1.21-481.el9.noarch 62/75
Verifying : perl-Getopt-Std-1.12-481.el9.noarch 63/75
Verifying : perl-FileHandle-2.03-481.el9.noarch 64/75
Verifying : perl-File-stat-1.09-481.el9.noarch 65/75
Verifying : perl-File-Basename-2.85-481.el9.noarch 66/75
Verifying : perl-Class-Struct-0.66-481.el9.noarch 67/75
Verifying : perl-AutoLoader-5.74-481.el9.noarch 68/75
Verifying : perl-Net-SSLeay-1.92-2.el9.x86_64 69/75
Verifying : mysql-server-8.0.36-1.el9_3.x86_64 70/75
Verifying : mysql-errmsg-8.0.36-1.el9_3.x86_64 71/75
Verifying : mysql-common-8.0.36-1.el9_3.x86_64 72/75
Verifying : mysql-8.0.36-1.el9_3.x86_64 73/75
Verifying : protobuf-lite-3.14.0-13.el9.x86_64 74/75
Verifying : perl-parent-1:0.238-460.el9.noarch 75/75
Installed:
checkpolicy-3.6-1.el9.x86_64 libicu-67.1-9.el9.x86_64 libtirpc-1.3.3-8.el9_4.x86_64 mariadb-connector-c-config-3.2.6-1.el9_0.noarch
mecab-0.996-3.el9.4.x86_64 mysql-8.0.36-1.el9_3.x86_64 mysql-common-8.0.36-1.el9_3.x86_64 mysql-errmsg-8.0.36-1.el9_3.x86_64
mysql-selinux-1.0.10-1.el9.noarch mysql-server-8.0.36-1.el9_3.x86_64 perl-AutoLoader-5.74-481.el9.noarch perl-B-1.80-481.el9.x86_64
perl-Carp-1.50-460.el9.noarch perl-Class-Struct-0.66-481.el9.noarch perl-Data-Dumper-2.174-462.el9.x86_64 perl-Digest-1.19-4.el9.noarch
perl-Digest-MD5-2.58-4.el9.x86_64 perl-Encode-4:3.08-462.el9.x86_64 perl-Errno-1.30-481.el9.x86_64 perl-Exporter-5.74-461.el9.noarch
perl-Fcntl-1.13-481.el9.x86_64 perl-File-Basename-2.85-481.el9.noarch perl-File-Path-2.18-4.el9.noarch perl-File-Temp-1:0.231.100-4.el9.noarch
perl-File-stat-1.09-481.el9.noarch perl-FileHandle-2.03-481.el9.noarch perl-Getopt-Long-1:2.52-4.el9.noarch perl-Getopt-Std-1.12-481.el9.noarch
perl-HTTP-Tiny-0.076-462.el9.noarch perl-IO-1.43-481.el9.x86_64 perl-IO-Socket-IP-0.41-5.el9.noarch perl-IO-Socket-SSL-2.073-1.el9.noarch
perl-IPC-Open3-1.21-481.el9.noarch perl-MIME-Base64-3.16-4.el9.x86_64 perl-Mozilla-CA-20200520-6.el9.noarch perl-NDBM_File-1.15-481.el9.x86_64
perl-Net-SSLeay-1.92-2.el9.x86_64 perl-POSIX-1.94-481.el9.x86_64 perl-PathTools-3.78-461.el9.x86_64 perl-Pod-Escapes-1:1.07-460.el9.noarch
perl-Pod-Perldoc-3.28.01-461.el9.noarch perl-Pod-Simple-1:3.42-4.el9.noarch perl-Pod-Usage-4:2.01-4.el9.noarch perl-Scalar-List-Utils-4:1.56-461.el9.x86_64
perl-SelectSaver-1.02-481.el9.noarch perl-Socket-4:2.031-4.el9.x86_64 perl-Storable-1:3.21-460.el9.x86_64 perl-Symbol-1.08-481.el9.noarch
perl-Term-ANSIColor-5.01-461.el9.noarch perl-Term-Cap-1.17-460.el9.noarch perl-Text-ParseWords-3.30-460.el9.noarch perl-Text-Tabs+Wrap-2013.0523-460.el9.noarch
perl-Time-Local-2:1.300-7.el9.noarch perl-URI-5.09-3.el9.noarch perl-base-2.27-481.el9.noarch perl-constant-1.33-461.el9.noarch
perl-if-0.60.800-481.el9.noarch perl-interpreter-4:5.32.1-481.el9.x86_64 perl-libnet-3.13-4.el9.noarch perl-libs-4:5.32.1-481.el9.x86_64
perl-mro-1.23-481.el9.x86_64 perl-overload-1.31-481.el9.noarch perl-overloading-0.02-481.el9.noarch perl-parent-1:0.238-460.el9.noarch
perl-podlators-1:4.14-460.el9.noarch perl-subs-1.03-481.el9.noarch perl-vars-1.05-481.el9.noarch policycoreutils-python-utils-3.6-2.1.el9.noarch
protobuf-lite-3.14.0-13.el9.x86_64 python3-audit-3.1.2-2.el9.x86_64 python3-distro-1.5.0-7.el9.noarch python3-libsemanage-3.6-1.el9.x86_64
python3-policycoreutils-3.6-2.1.el9.noarch python3-setools-4.4.4-1.el9.x86_64 python3-setuptools-53.0.0-12.el9_4.1.noarch
Complete!
2. mysql 서비스 영구 활성화
[root@localhost ~]# systemctl enable mysqld --now
Created symlink /etc/systemd/system/multi-user.target.wants/mysqld.service → /usr/lib/systemd/system/mysqld.service.
3. mysql 구성 설정
[root@localhost ~]# /usr/bin/mysql_secure_installation
Securing the MySQL server deployment.
Connecting to MySQL using a blank password.
VALIDATE PASSWORD COMPONENT can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD component?
Press y|Y for Yes, any other key for No: y
There are three levels of password validation policy:
LOW Length >= 8
MEDIUM Length >= 8, numeric, mixed case, and special characters
STRONG Length >= 8, numeric, mixed case, special characters and dictionary file
Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: ^C
[root@localhost ~]# /usr/bin/mysql_secure_installation
Securing the MySQL server deployment.
Connecting to MySQL using a blank password.
The 'validate_password' component is installed on the server.
The subsequent steps will run with the existing configuration
of the component.
Please set the password for root here.
New password:
Re-enter new password:
Estimated strength of the password: 100
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.
Normally, root should only be allowed to connect from
'localhost'. This ensures that someone cannot guess at
the root password from the network.
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Success.
By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
- Dropping test database...
Success.
- Removing privileges on test database...
Success.
Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.
All done!
4. zabbix 저장소 설정
[root@localhost ~]# rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/9/x86_64/zabbix-release-6.0-5.el9.noarch.rpm
Retrieving https://repo.zabbix.com/zabbix/6.0/rhel/9/x86_64/zabbix-release-6.0-5.el9.noarch.rpm
warning: /var/tmp/rpm-tmp.dvaFoQ: Header V4 RSA/SHA512 Signature, key ID 08efa7dd: NOKEY
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:zabbix-release-6.0-5.el9 ################################# [100%]
5. dnf clean
dnf clean all
6. Zabbix 패키지 설치
[root@localhost ~]# dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent
Rocky Linux 9 - BaseOS 2.8 MB/s | 2.3 MB 00:00
Rocky Linux 9 - AppStream 6.8 MB/s | 8.0 MB 00:01
Rocky Linux 9 - Extras 22 kB/s | 15 kB 00:00
Zabbix Official Repository - x86_64 233 kB/s | 385 kB 00:01
Zabbix Official Repository (non-supported) - x86_64 970 B/s | 1.1 kB 00:01
Zabbix Official Repository (Agent2 Plugins) - x86_64 1.4 kB/s | 1.6 kB 00:01
Dependencies resolved.
=============================================================================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================================================================
Installing:
zabbix-agent x86_64 6.0.33-release2.el9 zabbix 548 k
zabbix-apache-conf noarch 6.0.33-release2.el9 zabbix 13 k
zabbix-selinux-policy x86_64 6.0.33-release2.el9 zabbix 267 k
zabbix-server-mysql x86_64 6.0.33-release2.el9 zabbix 1.8 M
zabbix-sql-scripts noarch 6.0.33-release2.el9 zabbix 8.1 M
zabbix-web-mysql noarch 6.0.33-release2.el9 zabbix 12 k
Installing dependencies:
OpenIPMI-libs x86_64 2.0.32-3.el9 appstream 510 k
apr x86_64 1.7.0-12.el9_3 appstream 122 k
apr-util x86_64 1.6.1-23.el9 appstream 94 k
apr-util-bdb x86_64 1.6.1-23.el9 appstream 12 k
dejavu-sans-fonts noarch 2.37-18.el9 baseos 1.3 M
fontconfig x86_64 2.14.0-2.el9_1 appstream 274 k
fonts-filesystem noarch 1:2.0.5-7.el9.1 baseos 9.0 k
fping x86_64 5.1-1.el9 zabbix-non-supported 35 k
freetype x86_64 2.10.4-9.el9 baseos 387 k
gd x86_64 2.3.2-3.el9 appstream 131 k
graphite2 x86_64 1.3.14-9.el9 baseos 94 k
harfbuzz x86_64 2.7.4-10.el9 baseos 623 k
httpd x86_64 2.4.57-11.el9_4.1 appstream 44 k
httpd-core x86_64 2.4.57-11.el9_4.1 appstream 1.4 M
httpd-filesystem noarch 2.4.57-11.el9_4.1 appstream 11 k
httpd-tools x86_64 2.4.57-11.el9_4.1 appstream 79 k
jbigkit-libs x86_64 2.1-23.el9 appstream 52 k
langpacks-core-font-en noarch 3.0-16.el9 appstream 9.5 k
libX11 x86_64 1.7.0-9.el9 appstream 650 k
libX11-common noarch 1.7.0-9.el9 appstream 151 k
libXau x86_64 1.0.9-8.el9 appstream 30 k
libXpm x86_64 3.5.13-10.el9 appstream 58 k
libjpeg-turbo x86_64 2.0.90-7.el9 appstream 174 k
libpng x86_64 2:1.6.37-12.el9 baseos 116 k
libtiff x86_64 4.4.0-12.el9 appstream 197 k
libtool-ltdl x86_64 2.4.6-45.el9 appstream 36 k
libwebp x86_64 1.2.0-8.el9 appstream 276 k
libxcb x86_64 1.13.1-9.el9 appstream 224 k
libxslt x86_64 1.1.34-9.el9 appstream 240 k
mailcap noarch 2.1.49-5.el9 baseos 32 k
mariadb-connector-c x86_64 3.2.6-1.el9_0 appstream 195 k
net-snmp-libs x86_64 1:5.9.1-13.el9_4.2 appstream 740 k
nginx-filesystem noarch 1:1.20.1-16.el9_4.1 appstream 8.1 k
php-bcmath x86_64 8.0.30-1.el9_2 appstream 33 k
php-common x86_64 8.0.30-1.el9_2 appstream 665 k
php-fpm x86_64 8.0.30-1.el9_2 appstream 1.6 M
php-gd x86_64 8.0.30-1.el9_2 appstream 39 k
php-ldap x86_64 8.0.30-1.el9_2 appstream 39 k
php-mbstring x86_64 8.0.30-1.el9_2 appstream 468 k
php-mysqlnd x86_64 8.0.30-1.el9_2 appstream 148 k
php-pdo x86_64 8.0.30-1.el9_2 appstream 81 k
php-xml x86_64 8.0.30-1.el9_2 appstream 131 k
rocky-logos-httpd noarch 90.15-2.el9 appstream 24 k
unixODBC x86_64 2.3.9-4.el9 appstream 458 k
xml-common noarch 0.6.3-58.el9 appstream 31 k
zabbix-web noarch 6.0.33-release2.el9 zabbix 7.5 M
zabbix-web-deps noarch 6.0.33-release2.el9 zabbix 13 k
Installing weak dependencies:
apr-util-openssl x86_64 1.6.1-23.el9 appstream 14 k
mod_http2 x86_64 2.0.26-2.el9_4 appstream 162 k
mod_lua x86_64 2.4.57-11.el9_4.1 appstream 58 k
Transaction Summary
=============================================================================================================================================================================================================
Install 56 Packages
Total download size: 30 M
Installed size: 105 M
Is this ok [y/N]: y
Downloading Packages:
Rocky Linux 9 - BaseOS 196% [====================================================================================================================(1/56): fonts-filesystem-2.0.5-7.el9.1.noarch.rpm 59 kB/s | 9.0 kB 00:00
(2/56): graphite2-1.3.14-9.el9.x86_64.rpm 4.8 MB/s | 94 kB 00:00
(3/56): harfbuzz-2.7.4-10.el9.x86_64.rpm 3.5 MB/s | 623 kB 00:00
(4/56): mailcap-2.1.49-5.el9.noarch.rpm 2.0 MB/s | 32 kB 00:00
(5/56): freetype-2.10.4-9.el9.x86_64.rpm 25 MB/s | 387 kB 00:00
(6/56): rocky-logos-httpd-90.15-2.el9.noarch.rpm 1.0 MB/s | 24 kB 00:00
(7/56): libpng-1.6.37-12.el9.x86_64.rpm 3.9 MB/s | 116 kB 00:00
(8/56): dejavu-sans-fonts-2.37-18.el9.noarch.rpm 5.6 MB/s | 1.3 MB 00:00
(9/56): gd-2.3.2-3.el9.x86_64.rpm 6.9 MB/s | 131 kB 00:00
(10/56): mod_lua-2.4.57-11.el9_4.1.x86_64.rpm 3.2 MB/s | 58 kB 00:00
(11/56): httpd-2.4.57-11.el9_4.1.x86_64.rpm 4.6 MB/s | 44 kB 00:00
(12/56): httpd-filesystem-2.4.57-11.el9_4.1.noarch.rpm 1.1 MB/s | 11 kB 00:00
(13/56): httpd-tools-2.4.57-11.el9_4.1.x86_64.rpm 5.4 MB/s | 79 kB 00:00
(14/56): apr-util-bdb-1.6.1-23.el9.x86_64.rpm 2.5 MB/s | 12 kB 00:00
(15/56): apr-util-openssl-1.6.1-23.el9.x86_64.rpm 1.8 MB/s | 14 kB 00:00
(16/56): nginx-filesystem-1.20.1-16.el9_4.1.noarch.rpm 1.2 MB/s | 8.1 kB 00:00
(17/56): fontconfig-2.14.0-2.el9_1.x86_64.rpm 25 MB/s | 274 kB 00:00
(18/56): apr-util-1.6.1-23.el9.x86_64.rpm 5.9 MB/s | 94 kB 00:00
(19/56): libXpm-3.5.13-10.el9.x86_64.rpm 9.3 MB/s | 58 kB 00:00
(20/56): mariadb-connector-c-3.2.6-1.el9_0.x86_64.rpm 22 MB/s | 195 kB 00:00
(21/56): libX11-common-1.7.0-9.el9.noarch.rpm 16 MB/s | 151 kB 00:00
(22/56): libtool-ltdl-2.4.6-45.el9.x86_64.rpm 4.0 MB/s | 36 kB 00:00
(23/56): langpacks-core-font-en-3.0-16.el9.noarch.rpm 1.2 MB/s | 9.5 kB 00:00
(24/56): unixODBC-2.3.9-4.el9.x86_64.rpm 27 MB/s | 458 kB 00:00
(25/56): libXau-1.0.9-8.el9.x86_64.rpm 3.5 MB/s | 30 kB 00:00
(26/56): net-snmp-libs-5.9.1-13.el9_4.2.x86_64.rpm 32 MB/s | 740 kB 00:00
(27/56): libxcb-1.13.1-9.el9.x86_64.rpm 22 MB/s | 224 kB 00:00
(28/56): OpenIPMI-libs-2.0.32-3.el9.x86_64.rpm 24 MB/s | 510 kB 00:00
(29/56): libjpeg-turbo-2.0.90-7.el9.x86_64.rpm 11 MB/s | 174 kB 00:00
(30/56): mod_http2-2.0.26-2.el9_4.x86_64.rpm 8.1 MB/s | 162 kB 00:00
(31/56): jbigkit-libs-2.1-23.el9.x86_64.rpm 8.8 MB/s | 52 kB 00:00
(32/56): libtiff-4.4.0-12.el9.x86_64.rpm 22 MB/s | 197 kB 00:00
(33/56): apr-1.7.0-12.el9_3.x86_64.rpm 15 MB/s | 122 kB 00:00
(34/56): libwebp-1.2.0-8.el9.x86_64.rpm 26 MB/s | 276 kB 00:00
(35/56): xml-common-0.6.3-58.el9.noarch.rpm 3.1 MB/s | 31 kB 00:00
(36/56): libxslt-1.1.34-9.el9.x86_64.rpm 7.2 MB/s | 240 kB 00:00
(37/56): php-xml-8.0.30-1.el9_2.x86_64.rpm 7.9 MB/s | 131 kB 00:00
(38/56): php-pdo-8.0.30-1.el9_2.x86_64.rpm 4.4 MB/s | 81 kB 00:00
(39/56): php-mysqlnd-8.0.30-1.el9_2.x86_64.rpm 14 MB/s | 148 kB 00:00
(40/56): php-ldap-8.0.30-1.el9_2.x86_64.rpm 3.9 MB/s | 39 kB 00:00
(41/56): php-gd-8.0.30-1.el9_2.x86_64.rpm 6.5 MB/s | 39 kB 00:00
(42/56): php-mbstring-8.0.30-1.el9_2.x86_64.rpm 11 MB/s | 468 kB 00:00
(43/56): php-bcmath-8.0.30-1.el9_2.x86_64.rpm 5.9 MB/s | 33 kB 00:00
(44/56): libX11-1.7.0-9.el9.x86_64.rpm 37 MB/s | 650 kB 00:00
(45/56): php-common-8.0.30-1.el9_2.x86_64.rpm 9.9 MB/s | 665 kB 00:00
(46/56): httpd-core-2.4.57-11.el9_4.1.x86_64.rpm 37 MB/s | 1.4 MB 00:00
(47/56): php-fpm-8.0.30-1.el9_2.x86_64.rpm 12 MB/s | 1.6 MB 00:00
(48/56): zabbix-apache-conf-6.0.33-release2.el9.noarch.rpm 18 kB/s | 13 kB 00:00
(49/56): zabbix-selinux-policy-6.0.33-release2.el9.x86_64.rpm 240 kB/s | 267 kB 00:01
(50/56): zabbix-agent-6.0.33-release2.el9.x86_64.rpm 445 kB/s | 548 kB 00:01
(51/56): zabbix-server-mysql-6.0.33-release2.el9.x86_64.rpm 2.4 MB/s | 1.8 MB 00:00
(52/56): zabbix-web-deps-6.0.33-release2.el9.noarch.rpm 32 kB/s | 13 kB 00:00
(53/56): zabbix-web-6.0.33-release2.el9.noarch.rpm 7.8 MB/s | 7.5 MB 00:00
(54/56): zabbix-web-mysql-6.0.33-release2.el9.noarch.rpm 41 kB/s | 12 kB 00:00
(55/56): fping-5.1-1.el9.x86_64.rpm 106 kB/s | 35 kB 00:00
(56/56): zabbix-sql-scripts-6.0.33-release2.el9.noarch.rpm 4.9 MB/s | 8.1 MB 00:01
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 7.0 MB/s | 30 MB 00:04
Zabbix Official Repository - x86_64 3.0 MB/s | 3.1 kB 00:00
Importing GPG key 0x08EFA7DD:
Userid : "Zabbix LLC (Jul 2022) <packager@zabbix.com>"
Fingerprint: D9AA 84C2 B617 479C 6E4F CF4D 19F2 4753 08EF A7DD
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-08EFA7DD
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : php-common-8.0.30-1.el9_2.x86_64 1/56
Installing : apr-1.7.0-12.el9_3.x86_64 2/56
Installing : apr-util-bdb-1.6.1-23.el9.x86_64 3/56
Installing : apr-util-1.6.1-23.el9.x86_64 4/56
Installing : apr-util-openssl-1.6.1-23.el9.x86_64 5/56
Installing : libwebp-1.2.0-8.el9.x86_64 6/56
Installing : libjpeg-turbo-2.0.90-7.el9.x86_64 7/56
Installing : net-snmp-libs-1:5.9.1-13.el9_4.2.x86_64 8/56
Running scriptlet: httpd-filesystem-2.4.57-11.el9_4.1.noarch 9/56
Installing : httpd-filesystem-2.4.57-11.el9_4.1.noarch 9/56
Installing : libpng-2:1.6.37-12.el9.x86_64 10/56
Installing : fonts-filesystem-1:2.0.5-7.el9.1.noarch 11/56
Installing : dejavu-sans-fonts-2.37-18.el9.noarch 12/56
Installing : zabbix-web-6.0.33-release2.el9.noarch 13/56
Running scriptlet: zabbix-web-6.0.33-release2.el9.noarch 13/56
Installing : langpacks-core-font-en-3.0-16.el9.noarch 14/56
Installing : OpenIPMI-libs-2.0.32-3.el9.x86_64 15/56
Installing : httpd-tools-2.4.57-11.el9_4.1.x86_64 16/56
Installing : php-pdo-8.0.30-1.el9_2.x86_64 17/56
Installing : php-mysqlnd-8.0.30-1.el9_2.x86_64 18/56
Installing : php-mbstring-8.0.30-1.el9_2.x86_64 19/56
Installing : php-ldap-8.0.30-1.el9_2.x86_64 20/56
Installing : php-bcmath-8.0.30-1.el9_2.x86_64 21/56
Installing : fping-5.1-1.el9.x86_64 22/56
Running scriptlet: xml-common-0.6.3-58.el9.noarch 23/56
Installing : xml-common-0.6.3-58.el9.noarch 23/56
Installing : libxslt-1.1.34-9.el9.x86_64 24/56
Installing : php-xml-8.0.30-1.el9_2.x86_64 25/56
Installing : jbigkit-libs-2.1-23.el9.x86_64 26/56
Installing : libtiff-4.4.0-12.el9.x86_64 27/56
Installing : libXau-1.0.9-8.el9.x86_64 28/56
Installing : libxcb-1.13.1-9.el9.x86_64 29/56
Installing : libtool-ltdl-2.4.6-45.el9.x86_64 30/56
Installing : unixODBC-2.3.9-4.el9.x86_64 31/56
Installing : libX11-common-1.7.0-9.el9.noarch 32/56
Installing : libX11-1.7.0-9.el9.x86_64 33/56
Installing : libXpm-3.5.13-10.el9.x86_64 34/56
Installing : mariadb-connector-c-3.2.6-1.el9_0.x86_64 35/56
Running scriptlet: nginx-filesystem-1:1.20.1-16.el9_4.1.noarch 36/56
Installing : nginx-filesystem-1:1.20.1-16.el9_4.1.noarch 36/56
Installing : php-fpm-8.0.30-1.el9_2.x86_64 37/56
Running scriptlet: php-fpm-8.0.30-1.el9_2.x86_64 37/56
Installing : rocky-logos-httpd-90.15-2.el9.noarch 38/56
Installing : mailcap-2.1.49-5.el9.noarch 39/56
Installing : httpd-core-2.4.57-11.el9_4.1.x86_64 40/56
Installing : mod_lua-2.4.57-11.el9_4.1.x86_64 41/56
Installing : httpd-2.4.57-11.el9_4.1.x86_64 42/56
Running scriptlet: httpd-2.4.57-11.el9_4.1.x86_64 42/56
Installing : mod_http2-2.0.26-2.el9_4.x86_64 43/56
Installing : graphite2-1.3.14-9.el9.x86_64 44/56
Installing : freetype-2.10.4-9.el9.x86_64 45/56
Installing : harfbuzz-2.7.4-10.el9.x86_64 46/56
Installing : fontconfig-2.14.0-2.el9_1.x86_64 47/56
Running scriptlet: fontconfig-2.14.0-2.el9_1.x86_64 47/56
Installing : gd-2.3.2-3.el9.x86_64 48/56
Installing : php-gd-8.0.30-1.el9_2.x86_64 49/56
Installing : zabbix-web-deps-6.0.33-release2.el9.noarch 50/56
Installing : zabbix-web-mysql-6.0.33-release2.el9.noarch 51/56
Installing : zabbix-apache-conf-6.0.33-release2.el9.noarch 52/56
Running scriptlet: zabbix-apache-conf-6.0.33-release2.el9.noarch 52/56
Running scriptlet: zabbix-server-mysql-6.0.33-release2.el9.x86_64 53/56
Installing : zabbix-server-mysql-6.0.33-release2.el9.x86_64 53/56
Running scriptlet: zabbix-server-mysql-6.0.33-release2.el9.x86_64 53/56
Installing : zabbix-sql-scripts-6.0.33-release2.el9.noarch 54/56
Installing : zabbix-selinux-policy-6.0.33-release2.el9.x86_64 55/56
Running scriptlet: zabbix-selinux-policy-6.0.33-release2.el9.x86_64 55/56
Running scriptlet: zabbix-agent-6.0.33-release2.el9.x86_64 56/56
Installing : zabbix-agent-6.0.33-release2.el9.x86_64 56/56
Running scriptlet: zabbix-agent-6.0.33-release2.el9.x86_64 56/56
Running scriptlet: httpd-2.4.57-11.el9_4.1.x86_64 56/56
Running scriptlet: fontconfig-2.14.0-2.el9_1.x86_64 56/56
Running scriptlet: zabbix-agent-6.0.33-release2.el9.x86_64 56/56
Verifying : dejavu-sans-fonts-2.37-18.el9.noarch 1/56
Verifying : fonts-filesystem-1:2.0.5-7.el9.1.noarch 2/56
Verifying : harfbuzz-2.7.4-10.el9.x86_64 3/56
Verifying : graphite2-1.3.14-9.el9.x86_64 4/56
Verifying : mailcap-2.1.49-5.el9.noarch 5/56
Verifying : freetype-2.10.4-9.el9.x86_64 6/56
Verifying : libpng-2:1.6.37-12.el9.x86_64 7/56
Verifying : rocky-logos-httpd-90.15-2.el9.noarch 8/56
Verifying : gd-2.3.2-3.el9.x86_64 9/56
Verifying : mod_lua-2.4.57-11.el9_4.1.x86_64 10/56
Verifying : httpd-tools-2.4.57-11.el9_4.1.x86_64 11/56
Verifying : httpd-2.4.57-11.el9_4.1.x86_64 12/56
Verifying : httpd-filesystem-2.4.57-11.el9_4.1.noarch 13/56
Verifying : apr-util-openssl-1.6.1-23.el9.x86_64 14/56
Verifying : apr-util-bdb-1.6.1-23.el9.x86_64 15/56
Verifying : apr-util-1.6.1-23.el9.x86_64 16/56
Verifying : fontconfig-2.14.0-2.el9_1.x86_64 17/56
Verifying : nginx-filesystem-1:1.20.1-16.el9_4.1.noarch 18/56
Verifying : libXpm-3.5.13-10.el9.x86_64 19/56
Verifying : mariadb-connector-c-3.2.6-1.el9_0.x86_64 20/56
Verifying : libX11-common-1.7.0-9.el9.noarch 21/56
Verifying : libtool-ltdl-2.4.6-45.el9.x86_64 22/56
Verifying : unixODBC-2.3.9-4.el9.x86_64 23/56
Verifying : langpacks-core-font-en-3.0-16.el9.noarch 24/56
Verifying : net-snmp-libs-1:5.9.1-13.el9_4.2.x86_64 25/56
Verifying : libXau-1.0.9-8.el9.x86_64 26/56
Verifying : libxcb-1.13.1-9.el9.x86_64 27/56
Verifying : OpenIPMI-libs-2.0.32-3.el9.x86_64 28/56
Verifying : mod_http2-2.0.26-2.el9_4.x86_64 29/56
Verifying : libjpeg-turbo-2.0.90-7.el9.x86_64 30/56
Verifying : jbigkit-libs-2.1-23.el9.x86_64 31/56
Verifying : libtiff-4.4.0-12.el9.x86_64 32/56
Verifying : libxslt-1.1.34-9.el9.x86_64 33/56
Verifying : apr-1.7.0-12.el9_3.x86_64 34/56
Verifying : libwebp-1.2.0-8.el9.x86_64 35/56
Verifying : xml-common-0.6.3-58.el9.noarch 36/56
Verifying : php-xml-8.0.30-1.el9_2.x86_64 37/56
Verifying : php-pdo-8.0.30-1.el9_2.x86_64 38/56
Verifying : php-mysqlnd-8.0.30-1.el9_2.x86_64 39/56
Verifying : php-mbstring-8.0.30-1.el9_2.x86_64 40/56
Verifying : php-ldap-8.0.30-1.el9_2.x86_64 41/56
Verifying : php-gd-8.0.30-1.el9_2.x86_64 42/56
Verifying : php-fpm-8.0.30-1.el9_2.x86_64 43/56
Verifying : php-common-8.0.30-1.el9_2.x86_64 44/56
Verifying : php-bcmath-8.0.30-1.el9_2.x86_64 45/56
Verifying : libX11-1.7.0-9.el9.x86_64 46/56
Verifying : httpd-core-2.4.57-11.el9_4.1.x86_64 47/56
Verifying : zabbix-agent-6.0.33-release2.el9.x86_64 48/56
Verifying : zabbix-apache-conf-6.0.33-release2.el9.noarch 49/56
Verifying : zabbix-selinux-policy-6.0.33-release2.el9.x86_64 50/56
Verifying : zabbix-server-mysql-6.0.33-release2.el9.x86_64 51/56
Verifying : zabbix-sql-scripts-6.0.33-release2.el9.noarch 52/56
Verifying : zabbix-web-6.0.33-release2.el9.noarch 53/56
Verifying : zabbix-web-deps-6.0.33-release2.el9.noarch 54/56
Verifying : zabbix-web-mysql-6.0.33-release2.el9.noarch 55/56
Verifying : fping-5.1-1.el9.x86_64 56/56
Installed:
OpenIPMI-libs-2.0.32-3.el9.x86_64 apr-1.7.0-12.el9_3.x86_64 apr-util-1.6.1-23.el9.x86_64 apr-util-bdb-1.6.1-23.el9.x86_64
apr-util-openssl-1.6.1-23.el9.x86_64 dejavu-sans-fonts-2.37-18.el9.noarch fontconfig-2.14.0-2.el9_1.x86_64 fonts-filesystem-1:2.0.5-7.el9.1.noarch
fping-5.1-1.el9.x86_64 freetype-2.10.4-9.el9.x86_64 gd-2.3.2-3.el9.x86_64 graphite2-1.3.14-9.el9.x86_64
harfbuzz-2.7.4-10.el9.x86_64 httpd-2.4.57-11.el9_4.1.x86_64 httpd-core-2.4.57-11.el9_4.1.x86_64 httpd-filesystem-2.4.57-11.el9_4.1.noarch
httpd-tools-2.4.57-11.el9_4.1.x86_64 jbigkit-libs-2.1-23.el9.x86_64 langpacks-core-font-en-3.0-16.el9.noarch libX11-1.7.0-9.el9.x86_64
libX11-common-1.7.0-9.el9.noarch libXau-1.0.9-8.el9.x86_64 libXpm-3.5.13-10.el9.x86_64 libjpeg-turbo-2.0.90-7.el9.x86_64
libpng-2:1.6.37-12.el9.x86_64 libtiff-4.4.0-12.el9.x86_64 libtool-ltdl-2.4.6-45.el9.x86_64 libwebp-1.2.0-8.el9.x86_64
libxcb-1.13.1-9.el9.x86_64 libxslt-1.1.34-9.el9.x86_64 mailcap-2.1.49-5.el9.noarch mariadb-connector-c-3.2.6-1.el9_0.x86_64
mod_http2-2.0.26-2.el9_4.x86_64 mod_lua-2.4.57-11.el9_4.1.x86_64 net-snmp-libs-1:5.9.1-13.el9_4.2.x86_64 nginx-filesystem-1:1.20.1-16.el9_4.1.noarch
php-bcmath-8.0.30-1.el9_2.x86_64 php-common-8.0.30-1.el9_2.x86_64 php-fpm-8.0.30-1.el9_2.x86_64 php-gd-8.0.30-1.el9_2.x86_64
php-ldap-8.0.30-1.el9_2.x86_64 php-mbstring-8.0.30-1.el9_2.x86_64 php-mysqlnd-8.0.30-1.el9_2.x86_64 php-pdo-8.0.30-1.el9_2.x86_64
php-xml-8.0.30-1.el9_2.x86_64 rocky-logos-httpd-90.15-2.el9.noarch unixODBC-2.3.9-4.el9.x86_64 xml-common-0.6.3-58.el9.noarch
zabbix-agent-6.0.33-release2.el9.x86_64 zabbix-apache-conf-6.0.33-release2.el9.noarch zabbix-selinux-policy-6.0.33-release2.el9.x86_64 zabbix-server-mysql-6.0.33-release2.el9.x86_64
zabbix-sql-scripts-6.0.33-release2.el9.noarch zabbix-web-6.0.33-release2.el9.noarch zabbix-web-deps-6.0.33-release2.el9.noarch zabbix-web-mysql-6.0.33-release2.el9.noarch
Complete!
7. mysql 데이터베이스 생성
[root@localhost ~]# mysql -uroot -p
Enter password: [루트패스워드입력]
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 8.0.36 Source distribution
Copyright (c) 2000, 2024, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
Query OK, 1 row affected (0.00 sec)
mysql> create user zabbix@localhost identified by '패스워드입력';
Query OK, 0 rows affected (0.01 sec)
mysql> grant all privileges on zabbix.* to zabbix@localhost;
Query OK, 0 rows affected (0.00 sec)
mysql> set global log_bin_trust_function_creators = 1;
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql>
mysql> quit
Bye
8. Zabbix 서버 호스트에서 스키마와 데이터 습득
[root@localhost ~]# zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -u zabbix -p zabbix
Enter password: 패스워드입력
9. log_bin_trust_function_creators 옵션을 비활성화
[root@localhost ~]# mysql -u root -p
Enter password: 패스워드입력
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 17
Server version: 8.0.36 Source distribution
Copyright (c) 2000, 2024, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> set global log_bin_trust_function_creators = 0;
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> quit
Bye
10. /etc/zabbix/zabbix_server.conf 파일 내용 수정
[root@localhost ~]# vi /etc/zabbix/zabbix_server.conf
DBPassword=패스워드입력 << 해당 내용 추가 후 저장
11. zabbix 서비스 활성화
[root@localhost ~]# systemctl restart zabbix-server zabbix-agent httpd php-fpm
[root@localhost ~]# systemctl enable zabbix-server zabbix-agent httpd php-fpm
Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-server.service → /usr/lib/systemd/system/zabbix-server.service.
Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-agent.service → /usr/lib/systemd/system/zabbix-agent.service.
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.
Created symlink /etc/systemd/system/multi-user.target.wants/php-fpm.service → /usr/lib/systemd/system/php-fpm.service.
12. Rocky Linux 방화벽 해제
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# systemctl disable firewalld
Removed "/etc/systemd/system/multi-user.target.wants/firewalld.service".
Removed "/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service".
13. zabbix 접속
http://[RockyLinuxIP]/zabbix/setup.php << 해당 링크로 접속
728x90
'Monitoring' 카테고리의 다른 글
[Monitoring] Vmware +Rocky Linux + Zabbix 모니터링 구축 [4] (4) | 2024.09.30 |
---|---|
[Monitoring] Vmware +Rocky Linux + Zabbix 모니터링 구축 [3] (2) | 2024.09.26 |
[Monitoring] Vmware +Rocky Linux + Zabbix 모니터링 구축 [1] (0) | 2024.09.23 |
[Monitoring] Grafana + Prometheus 설치 [3/3] (0) | 2024.05.03 |
[Monitoring] Grafana + Prometheus 설치 [2/3] (0) | 2024.05.03 |