close

이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.

linux

SNMP 관련 for MRTG

mysop 2021. 9. 15. 11:27
728x90
반응형

갑자기 찾으려면 없다

 

일단 여기다가 정리

 

CPU
1분간 평균 사용률: .1.3.6.1.4.1.2021.10.1.3.1
5분간 평균 사용률: .1.3.6.1.4.1.2021.10.1.3.2
15분간 평균 사용률: .1.3.6.1.4.1.2021.10.1.3.3

사용자 CPU 시간(%): .1.3.6.1.4.1.2021.11.9.0
사용자 CPU 시간 원본값: .1.3.6.1.4.1.2021.11.50.0
시스템 CPU 시간(%): .1.3.6.1.4.1.2021.11.10.0
시스템 CPU 시간 원본값: .1.3.6.1.4.1.2021.11.52.0
유휴 CPU 시간(%): .1.3.6.1.4.1.2021.11.11.0
유휴 CPU 시간 원본값: .1.3.6.1.4.1.2021.11.53.0
raw nice cpu time: .1.3.6.1.4.1.2021.11.51.0

메모리

전체 Swap 메모리 크기: .1.3.6.1.4.1.2021.4.3.0
사용 가능한 Swap 메모리 크기: .1.3.6.1.4.1.2021.4.4.0
전체 물리 메모리(RAM) 크기: .1.3.6.1.4.1.2021.4.5.0
사용 가능한 물리 메모리(RAM) 크기: .1.3.6.1.4.1.2021.4.6.0
사용 가능한 전체 메모리 크기(=사용 가능한 Swap 메모리 크기 + 사용 가능한 물리 메모리 크기): .1.3.6.1.4.1.2021.4.11.0
전체 공유 메모리 크기: .1.3.6.1.4.1.2021.4.13.0
전체 버퍼 메모리 크기: .1.3.6.1.4.1.2021.4.14.0
전체 캐쉬 메모리 크기: .1.3.6.1.4.1.2021.4.15.0

디스크

The snmpd.conf needs to be edited. Add the following (assuming a machine with a single ‘/’ partition):

disk / 100000 (or)

includeAllDisks 10% for all partitions and disks

The OIDs are as follows

Path where the disk is mounted: .1.3.6.1.4.1.2021.9.1.2.1
Path of the device for the partition: .1.3.6.1.4.1.2021.9.1.3.1
Total size of the disk/partion (kBytes): .1.3.6.1.4.1.2021.9.1.6.1
Available space on the disk: .1.3.6.1.4.1.2021.9.1.7.1
Used space on the disk: .1.3.6.1.4.1.2021.9.1.8.1
Percentage of space used on disk: .1.3.6.1.4.1.2021.9.1.9.1
Percentage of inodes used on disk: .1.3.6.1.4.1.2021.9.1.10.1

System Uptime: .1.3.6.1.2.1.1.3.0

참고1: http://www.debianadmin.com/linux-snmp-oids-for-cpumemory-and-disk-statistics.html

참고2: http://coolx.net/cboard/read.jsp?db=computer&num=76

2. 디스크 관련 추가 설정 정보

기본적으로 Net-SNMP를 설치하면 /(root) 에 대한 SNMP 정보만 표시된다.

루트 이외의 파티션 정보를 SNMP로 노출하려면 아래의 설정을 수정해야 한다.

- snmpd.conf 파일에 디스크 파티션 정보를 수정/추가해야 한다.

- datacollection-config.xml 파일에 디스크 파티션 정보를 수정/추가해야 한다.

참고: http://www.opennms.org/index.php/Monitoring_disk_space_with_Net-SNMP

 

 

 

출처 : https://blog.daum.net/thermidor/7346820

 

리눅스 Net-SNMP CPU 및 저장소 정보

티스토리(http://thermidor.tistory.com/51)로 자료 옮김 ... 접기 1. 기본 정보 CPU 1분간 평균 사용률: .1.3.6.1.4.1.2021.10.1.3.1 5분간 평균 사용률: .1.3.6.1.4.1.2021.10.1.3.2 15분간 평균 사용률: .1.3.6..

blog.daum.net

 

 

728x90
반응형

'linux' 카테고리의 다른 글

시놀로지 NAS 한글 깨짐 복구하기 (EUCKR->UTF8)  (0) 2022.01.08
Certbot 갱신에러  (0) 2021.12.08
cron 1분 이하 설정  (0) 2021.08.09
nf_conntrack full로 인한 Packet Drop 대응  (0) 2021.07.29
curl 실행시간 초간단  (0) 2021.07.21