Custom value for MRTG

| | Comments (0)

MRTG 需要兩個數值來畫圖,
第一個值是 in
第二個值是 out
第三個值是 uptime (非必要)
第四個值是 device name or hostname (非必要)

例: BBS 線上人數統計(這裡只用到第二個值來畫圖)
/home/bbs/bin/mrtg 會產生 output 如下
0
60
11 days, 3:54
77bbs.com

mrtg.cfg 內容
WorkDir: /home/bbs/public_html/num
Language: big5

Target[localhost]: `/home/bbs/bin/mrtg`
MaxBytes[localhost]: 200
Options[localhost]: gauge, nopercent
YLegend[localhost]: BBS online number
LegendO[localhost]: 線上人數
Title[localhost]: 77bbs.com 線上人數
PageTop[localhost]: <h1>77bbs.com 線上人數</h1>

Leave a comment

March 2009

Sun Mon Tue Wed Thu Fri Sat
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        

About this Entry

This page contains a single entry by Pank published on July 18, 2004 3:54 PM.

MRTG in/out reverse was the previous entry in this blog.

3D 桌面 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.