게시물 1,376건
   
IP Bandwidth Monitor
글쓴이 : 최고관리자 날짜 : 2014-08-29 (금) 10:18 조회 : 7308
글주소 :
                                
참고 : 

OS : CentOS 6.X x86_64

Requirement
# yum install libpcap libpcap-devel
# yum install libpng libpng-devel
# yum install gd gd-devel

Last Update: 2013-04-24
# tar zxvf bandwidthd-2.0.1.tgz
# cd bandwidthd-2.0.1
# ./configure && make install


설정파일 수정
원하는 모니터링 네트워크 대역  및 기타 기능관련
/usr/local/bandwidthd/etc/bandwidthd.conf
####################################################
# Bandwidthd.conf
# Commented out options are here to provide
# documentation and represent defaults

# Subnets to collect statistics on.  Traffic that 
# matches none of these subnets will be ignored.
# Syntax is either IP Subnet Mask or CIDR
:: 모니터링 대상 아이피리스트 -> 시스템 로드에 영향을 미치기에 관제대상을 적절히 설정...
subnet 10.0.0.0 255.0.0.0
subnet 192.168.0.0/16
subnet 172.16.0.0/12

# Device to listen on
# Bandwidthd listens on the first device it detects
# by default.  Run "bandwidthd -l" for a list of 
# devices. 
#dev "eth0"    ::모니터링 대상 장치

###################################################
# Options that don't usually get changed

# An interval is 2.5 minutes, this is how many 
# intervals to skip before doing a graphing run
#skip_intervals 0    :: 웹페이지 리로딩 간격 설정 / 기본은 2분 30초

# Graph cutoff is how many k must be transfered by an
# ip before we bother to graph it
#graph_cutoff 1024

#Put interface in promiscuous mode to score to traffic
#that may not be routing through the host machine.
#promiscuous true

#Log data to cdf file htdocs/log.cdf
#output_cdf false

#Read back the cdf file on startup
#recover_cdf false

#Libpcap format filter string used to control what bandwidthd see's
#Please always include "ip" in the string to avoid strange problems
#filter "ip"

#Draw Graphs - This default to true to graph the traffic bandwidthd is recording
#Usually set this to false if you only want cdf output or
#you are using the database output option.  Bandwidthd will use very little
#ram and cpu if this is set to false.
#graph true

#Set META REFRESH seconds (default 150, use 0 to disable).
#meta_refresh 150


모니터링 페이지 아파치 설정추가
모니터링을 원하는 VIrtualhost 에 추가
Alias /bandwidthd “/usr/local/bandwidthd/htdocs”
<Directory “/usr/local/bandwidthd/htdocs”>
Order Allow,Deny
Allow from All
</Directory>

아파치를 재시작하고 일정시간이(기본 2.5분) 지나면 이미지가 생기면서 페이지가 로딩됩니다.
브라우저에.....




※ 참고사항
1)  FTP에 의해 발생되는 트래픽은 세션 트래픽정도만 체크되고 나머지는 TCP 트래픽으로 포함
2) 프로세서를 다시 실행하게 되면 기존 누적데이타 초기화됨
3) 대상을 포괄적으로하면 상당히 지저분하기에 모니터링 관제대상(subnet)을 적절히 사용

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

 



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