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
4d58dc6f
Commit
4d58dc6f
authored
2 years ago
by
JooHan Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zabbix-ha contents input2
parent
8e60f513
master
No related merge requests found
Pipeline
#6968
passed with stages
in 1 minute and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
91 additions
and
0 deletions
+91
-0
README.md
MON/ZABBIX/README.md
+91
-0
No files found.
MON/ZABBIX/README.md
View file @
4d58dc6f
...
...
@@ -19,8 +19,99 @@

### 장점
-
오픈소스 솔루션이지만,
`엔터프라이즈 급의 기능들을 제공`
-
모니터링 요소는 템플릿 -> 아이템의 구조로 구성됨
-
요소별 알람이 필요할 경우 트리거를 사용하여 구성됨
-
`Admin(Beginner) Level의 역랑`
이면, 서버에 직접 아이템을 등록하여 모니터링할 수 있음
-
아이템 별 그래프를 쉽게 생성할 수 있음
-
스크린, 맵을 이용하여, 실시간 모니터링 또는 이를 시각화는 것이 가능
### 단점
-
`Proxy와 Server가 1:1로만 구성`
되기 때문에 이중화/확장을 위해서는 인프라 요소가 다른 솔루션보다 상대적으로 많이 필요
-
즉,
`Proxy - Server - DBMS`
구성으로 하나의 POD가 되는 구조가 Best
## Zabbix Server 설치
1.
Zabbix YUM Repository 설치
```
bash
# rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
```
2.
Zabbix Server 및 Agent 설치
```
bash
# yum install zabbix-server-mysql zabbix-agent
```
3.
WEB U/I 설치
```
bash
# yum install zabbix-web-mysql-scl zabbix-apache-conf-scl mariadb-server mod_ssl
```
4.
DB 설치
상기 구성도는 외부의 DBMS로 되어있기 때문에 아래는 Local 에서 설치하는 것으로 대체한다.
```
bash
# systemctl start mariadb; systemctl enable mariadb
```
다음과 같이 DBMS의 root 패스워드를 입력한다.
```
bash
# mysql -u root -p
Enter password: 그냥 엔터
Welcome to the MariaDB monitor. Commands end with
;
or
\g
.
Your MariaDB connection
id
is 3
Server version: 5.5.68-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
)]>
```
먼저 다음과 같이 root 패스워드를 설정해 준다.
```
bash
MariaDB
[(
none
)]>
use mysql
;
MariaDB
[
mysql]> update user
set
password
=
password
(
'디비루트패스워드'
)
where user
=
'root'
;
MariaDB
[
mysql]> flush privileges
;
```
이제 최종적으로 zabbix 사용자에 대한 디비 작업을 진행 한다.
```
bash
MariaDB
[
mysql]> create database zabbix character
set
utf8 collate utf8_bin
;
MariaDB
[
mysql]> create user zabbix@localhost identified by
'디비루트패스워드'
;
MariaDB
[
mysql]> grant all privileges on zabbix.
*
to zabbix@localhost
;
```
기본적으로 제공하는 스키마를 MariaDB에 적용하면 된다.
# zcat /usr/share/doc/zabbix-server-mysql-5.0.30/create.sql.gz | mysql -u zabbix -p zabbix
Enter password:
...처리가 완료되면, 프롬프트가 그냥 떨어지게 된다.
위에서 설정된 DB 정보를 Zabbix 설정 파일에 적용한다.
```
bash
# cat /etc/zabbix/zabbix_server.conf |grep DBPass
### Option: DBPassword
DBPassword
=
디비패스워드
```
마지막으로 Zabbix Server를 시작하고, 활성화 한다.
```
bash
# systemctl start zabbix-server; systemctl enable zabbix-server
Created symlink from /etc/systemd/system/multi-user.target.wants/zabbix-server.service to /usr/lib/systemd/system/zabbix-server.service.
```
## Zabbix Proxy 설치
## Pacemaker 설치 및 구성
...
...
This diff is collapsed.
Click to expand it.
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