RSS구독하기:SUBSCRIBE TO RSS FEED
즐겨찾기추가:ADD FAVORITE
글쓰기:POST
관리자:ADMINISTRATOR
Web_developing/Mysql  2006/09/08 12:31
출처 카페 > 하준용 in Net / likeasky
원본 http://cafe.naver.com/likeasky/78

http://www.phpschool.com/bbs/view.html?id=2590&code=tnt&start=0

http://www.mrtg.co.kr/

http://tunelinux.pe.kr/bbs/read.php?table=linuxinfo&no=18&o[at]=s&o[sc]=t&o[ss]=mrtg&o[st]=a

http://www.wowlinux.co.kr/download/specialview.html?id=55&view=1

http://tunelinux.pe.kr/bbs/read.php?table=linuxinfo&no=72
가장 나은 듯..


일단 snmpd 데몬이 실행되어야 함..
snmpd가 데이타를 만들고 mrtg는 순간의 데이타를 취합하여 통계를 내는 것..

mrtg설치시 gd가 필요하고 gd는 zlib랑 모가 필요하다는데 요즘 배포판에 모두 설치되어 있는 것들임.. 그냥 ./configure 하면 됨..

snmpd 떠 있으면 ./cfgmaker 가 mrtg.cfg 화일 제대로 만들어줌..

수작업으로 mrtg.cfg 화일 편집해야함(snmpd.conf도 함께.. 리부팅 필요)


ns2.myfolder.net 의 mrtg.cfg


### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '211.62.49.37' | Eth: '00-01-02-62-1e-b1' ###


################################################################################
# Traffic
################################################################################

Target[traffic]: 2:public@ns2.myfolder.net:
SetEnv[traffic]: MRTG_INT_IP="211.62.49.37" MRTG_INT_DESCR="eth0"
MaxBytes[traffic]: 5625000
Title[traffic]: Traffic
PageTop[traffic]:
Traffic


################################################################################
# HTTPD Daemon
################################################################################

Target[http]: `/usr/local/mrtg-2.9.10/web_count.sh`
WithPeak[http]: my
MaxBytes[http]: 512
Title[http]: HTTPD Daemon
Options[http]: gauge,integer,nopercent,growright
YLegend[http]: Number of HTTPD
LegendI[http]: httpd daemon:
LegendO[http]: httpd session:
Legend1[http]: Number of httpd
Legend2[http]: Number of session
Legend3[http]: 5 Min Max Number of httpd
Legend4[http]: 5 Min Max Number of httpd session
ShortLegend[http]: 개
PageTop[http]:
HTTPD Daemon


################################################################################
# MySQL Daemon
################################################################################

Target[mysql]: `/usr/local/mrtg-2.9.10/mysql_count.sh`
WithPeak[mysql]: my
MaxBytes[mysql]: 100
Title[mysql]: MySQL Daemon
Options[mysql]: gauge,integer,nopercent,growright
YLegend[mysql]: Number of MySQL
LegendI[mysql]: mysql daemon:
LegendO[mysql]: mysql session:
Legend1[mysql]: Number of mysql
Legend2[mysql]: Number of session
Legend3[mysql]: 5 Min Max Number of mysql
Legend4[mysql]: 5 Min Max Number of mysql session
ShortLegend[mysql]: 개
PageTop[mysql]:
MySQL Daemon



################################################################################
# LOAD AVG.
################################################################################

Target[load]: .1.3.6.1.4.1.2021.10.1.3.2&.1.3.6.1.4.1.2021.10.1.3.3:public@localhost * 100
WithPeak[load]: my
MaxBytes[load]: 10000
Title[load]: LOAD AVG.
Options[load]: gauge,integer,nopercent,growright
YLegend[load]: Load Average
LegendI[load]: 5 min:
LegendO[load]: 15 min:
Legend1[load]: Load average for 5 Min
Legend2[load]: Load average for 15 Min
Legend3[load]: Max Load average for 5 Min
Legend4[load]: Max Load average for 15 Min
YTicsFactor[load]: 0.01
PageTop[load]:
LOAD AVERAGE


################################################################################
# Memory Usage
################################################################################

Target[memory]: .1.3.6.1.4.1.2021.4.6.0&.1.3.6.1.4.1.2021.4.15.0:public@localhost * 1024
MaxBytes[memory]: 1073741824
Title[memory]: MEMORY USAGE
kilo[memory]: 1024
WithPeak[memory]: my
Options[memory]: gauge,growright
YLegend[memory]: Memory Usage
LegendI[memory]: Used:
LegendO[memory]: Cached:
Legend1[memory]: Used Memory Size
Legend2[memory]: Cached Memory Size
Legend3[memory]: 5min Max Used Memory Size
Legend4[memory]: 5min Max Cached Memory Size
ShortLegend[memory]: B
PageTop[memory]:
MEMORY USAGE


################################################################################
# Disk Usage1
################################################################################


Target[disk]: .1.3.6.1.4.1.2021.9.1.8.1&.1.3.6.1.4.1.2021.9.1.8.2:public@localhost
Title[disk]: Disk Usage1
kilo[disk]: 1024
Options[disk]: gauge,growright
LegendI[disk]: /:
LegendO[disk]: /boot:
Legend1[disk]: / Usage
Legend2[disk]: /boot Usage
MaxBytes1[disk]: 8000000
MaxBytes2[disk]: 23000
ShortLegend[disk]: B
kMG[disk]: K,M,G,T,P
PageTop[disk]:
Disk Usage1


################################################################################
# Disk Usage2
################################################################################

Target[disk2]: .1.3.6.1.4.1.2021.9.1.8.3&.1.3.6.1.4.1.2021.9.1.8.4:public@localhost
Title[disk2]: Disk Usage2
kilo[disk2]: 1024
Options[disk2]: gauge,growright
LegendI[disk2]: /data:
LegendO[disk2]: /disk_sdb1:
Legend1[disk2]: /data Usage
Legend2[disk2]: /disk_sdb1 Usage
MaxBytes1[disk2]: 56000000
MaxBytes2[disk2]: 17000000
ShortLegend[disk2]: B
kMG[disk2]: K,M,G,T,P
PageTop[disk2]:
Disk Usage2



indexmaker mrtg.cfg > index.html 하면 여러페이지를 하나의 인덱스 페이지로 만들어줌..

크론에 등록해야 함..

2006/09/08 12:31 2006/09/08 12:31
이 글에는 트랙백을 보낼 수 없습니다
웅쓰:웅자의 상상플러스
웅자의 상상플러스
전체 (379)
게임 (5)
영화 (2)
기타 (23)
맛집 (5)
영어 (2)
대수학 (3)
형태소 (5)
Hacking (9)
Linux (112)
HTML (48)
Application_developing (48)
Web_developing (102)
Window (11)
«   2024/03   »
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
  1. 2016/01 (1)
  2. 2015/12 (3)
  3. 2015/10 (3)
  4. 2015/03 (2)
  5. 2015/01 (4)