Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
joohanhong
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JooHan Hong
joohanhong
Commits
216e12f0
Commit
216e12f0
authored
Feb 19, 2023
by
JooHan Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zabbix-ha contents input3
parent
4d58dc6f
Pipeline
#6969
passed with stages
in 1 minute and 1 second
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
1 deletion
+61
-1
README.md
MON/ZABBIX/README.md
+61
-1
zabbix_proxy1.png
MON/ZABBIX/images/zabbix_proxy1.png
+0
-0
zabbix_proxy2.png
MON/ZABBIX/images/zabbix_proxy2.png
+0
-0
zabbix_proxy3.png
MON/ZABBIX/images/zabbix_proxy3.png
+0
-0
No files found.
MON/ZABBIX/README.md
View file @
216e12f0
...
...
@@ -91,9 +91,11 @@ MariaDB [mysql]> grant all privileges on zabbix.* to zabbix@localhost;
```
기본적으로 제공하는 스키마를 MariaDB에 적용하면 된다.
```
bash
# zcat /usr/share/doc/zabbix-server-mysql-5.0.30/create.sql.gz | mysql -u zabbix -p zabbix
Enter password:
...처리가 완료되면, 프롬프트가 그냥 떨어지게 된다.
```
위에서 설정된 DB 정보를 Zabbix 설정 파일에 적용한다.
...
...
@@ -110,9 +112,67 @@ DBPassword=디비패스워드
Created symlink from /etc/systemd/system/multi-user.target.wants/zabbix-server.service to /usr/lib/systemd/system/zabbix-server.service.
```
## Zabbix Proxy 설치
> Zabbix Proxy도 Server와 같이 Proxy와 DBMS으로 구성되기 때문에 DB가 별도로 구성되기 때문에 Server 쪽의 DB 구성과 같다.
다음과 같이 패키지를 설치한다.
```
bash
# rpm -ivh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
# yum install mariadb mariadb-devel mariadb-server
# systemctl enable mariadb.service
# systemctl start mariadb.service
# yum install zabbix-agent zabbix-proxy-mysql
# mysql_secure_installation
# mysql -u root -p
MariaDB
[(
none
)]>
create database zabbix_proxy character
set
utf8 collate utf8_bin
;
MariaDB
[(
none
)]>
grant all privileges on zabbix_proxy.
*
to zabbix@localhost identified by
'패스워드'
;
MariaDB
[(
none
)]>
exit
;
# zcat /usr/share/doc/zabbix-proxy-mysql-5.0.31/schema.sql.gz | mysql -u zabbix -p zabbix_proxy
Enter password:
# cat /etc/zabbix/zabbix_proxy.conf
...
LogFileSize
=
14
...
Server
=
zabbix의 서버IP
...
Hostname
=
zabbix-proxy.hongsnet.net <- 반드시 /etc/hosts 또는 DNS에 등록된 이름을 지정해야 한다. 아니면, 수집불가에러가 발생된다.
...
DBName
=
zabbix_proxy
...
DBUser
=
zabbix
...
DBPassword
=
ghdwngkselql
# systemctl enable zabbix-proxy.service
# systemctl start zabbix-proxy.service
```
> 아래의 프록시 설정은 Ansible을 통해 자동화 할 수 있기 때문에 "자동화" Article를 참조한다.
1.
관리 -> 프록시 -> 프록시 작성 이동
![
zabbix-proxy1
](
./images/zabbix_proxy1.png
)
2.
호스트 -> 프록시에 의한 감시 설정
![
zabbix-proxy2
](
./images/zabbix_proxy2.png
)
3.
설정완료 후 현황 확인
![
zabbix-proxy3
](
./images/zabbix_proxy3.png
)
## Pacemaker 설치 및 구성
...
...
MON/ZABBIX/images/zabbix_proxy1.png
0 → 100644
View file @
216e12f0
6.44 KB
MON/ZABBIX/images/zabbix_proxy2.png
0 → 100644
View file @
216e12f0
19.7 KB
MON/ZABBIX/images/zabbix_proxy3.png
0 → 100644
View file @
216e12f0
75.3 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment