월간 인기 게시물

게시물 1,372건
   
리눅스 Net-SNMP CPU 및 저장소 정보
글쓴이 : 최고관리자 날짜 : 2011-08-30 (화) 13:16 조회 : 10145
글주소 :
                                
출처 : http://blog.daum.net/thermidor/6788599


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.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

 


이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.