°Ô½Ã¹° 12°Ç
   
¸®´ª½º Net-SNMP CPU ¹× ÀúÀå¼Ò Á¤º¸
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2011-08-30 (È­) 13:16 Á¶È¸ : 9103
±ÛÁÖ¼Ò :
                                
Ãâó : 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.