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
a0d4b4a0
Commit
a0d4b4a0
authored
Mar 03, 2023
by
JooHan Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memory 모니터링 업데이트9
parent
3c04ad33
Pipeline
#7001
passed with stages
in 1 minute and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
README.md
OS/RISK/MEMORY/MONITORING/README.md
+11
-0
zabbix_memory_item.png
OS/RISK/MEMORY/MONITORING/images/zabbix_memory_item.png
+0
-0
No files found.
OS/RISK/MEMORY/MONITORING/README.md
View file @
a0d4b4a0
...
...
@@ -224,6 +224,17 @@ fi
> 위의 스크립트는 간단하다. /proc/meminfo 현황파일의 필드를 잡아(grep) 이를 필드 위치(awk)에 맞게 가져온 후 이를 Zabbix의 수집단위인
Bytes에 맞게 단위를 환산(expr 명령)하면 된다.
그리고 구조를 보면, 스크립트에 인자를 호출하는 방식이기 때문에 유지보수도 쉬운 장점이 있다
```
bash
$
memory_ext.sh
test
```
> 위의 test 인자를 호출하였기 때문에 if ~ elif 제어조건문에 이를 처리하는 로직을 구현하면 된다.
# Zabbix 아이템 설정
설정 -> 템플릿
![
swap_mem
](
./images/zabbix_memory_item.png
)
OS/RISK/MEMORY/MONITORING/images/zabbix_memory_item.png
0 → 100644
View file @
a0d4b4a0
99 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