MRTG 송 수신 그래프 바꾸기 아래는 mrtg.cfg 파일의 target 부분이며 송수신 그래프를 바꾸기 위해서는 기준점이 & 이다. 원래는 한줄로 표현된다. Target[123.456.78.90]: 1.3.6.1.4.1.14276.2.1.1.1.3.90.78.456.123&1.3.6.1.4.1.14276.2.1.1.1.2.90.678.456.123:community@192.168.0.1:::::2 아래와 같이 바꾸면 된다 Target[123.456.78.90]: 1.3.6.1.4.1.14276.2.1.1.1.2.90.78.456.123&1.3.6.1.4.1.14276.2.1.1.1.3.90.678.456.123:community@192.168.0.1:::::2 & 기준으로 좌측과 우측을 바꾸면 된다
MRTG 에서 램디스크, SSD, SATA 등 성능향상이 없을때 아래와 같이 백그라운드로 해서 여러개를 돌려보자 #!/bin/bash #mrtg_sh=/etc/cron.5m/5min_mrtg.sh mrtg_sh=/etc/sysconfig/5min_mrtg.sh check_count=3let no=0 logger start $0 sed -e 1d $mrtg_sh |grep -v ^# |grep -v ^$ \ | while read mrtgscript ; dolet no=no%$check_count if [ "$no" == "0" ] ; then wait fi$mrtgscript &let no=no+1 done logger end $0
http://oss.oetiker.ch/mrtg/ Mrtg yum install mrtg* yum install net-snmp* yum install httpd* cfg파일 global : 전역에 걸쳐 적용되는 옵션일듯... WorkDir:/home/mrtg/www/pobis_1 : mrtg 로그와 그래프들이 생성되는 디렉토리 Language:Korean : 설정안하면 기본값 영문 Options[_]:growright, bits : growright 는 그래프 흐름을 오른쪽으로 흐르게 함, Mrtg 기본은 Byte 단위이므로 bits를 사용하도록 단위 변경 Log : 따로 폴더 지정하여 빼낼수도 있음 Workdir - Logdir : 로그디렉토리 - Imgdir : png 파일 디렉토리 - Htmldi..
MRTG LOG 파일 ex) 1425539126 275439931606 101675244511425539126 74016 4007 74016 40071425538832 37470 2554 37470 25541425538800 36903 2529 37470 25541425538500 31398 2295 31612 23001425538200 29875 2246 32155 22601425537900 40224 2423 115629 54151425537600 129677 6158 251582 12610 의미? 1 - TIMESTAMP2 - 초록색평균 수신3 - 파란색 평균 송신 4 - 초록색 최대 수신5 - 파란색 최대 송신 단위는 byte 저장되는 데이터는? 05분 그래프 = 2일 2시간 분량꺼 저장됨30분 ..
- Total
- Today
- Yesterday
- iptables
- yum
- ssh
- OpenVPN
- Apache
- virtualbox
- NGINX
- centOS7
- centos8
- cURL
- 리눅스
- 인증서
- softether
- galera
- L2TP
- ntp
- IPSEC
- MySQL
- 베이어다이나믹
- kvm
- php
- mariadb
- SSL
- gitlab
- WAF
- mod_security
- pptp
- HAProxy
- GeoIP
- glusterfs
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |