mrtg ping

 1.cfg文件

#############################################################

# ping stats for 219.139.81.51

# CHINANET 湖北 孝感20081211 219.139.81.51

WorkDir: /root/ng/html

Language: gb2312

 

###########################################################

Target[219.139.81.51.ping]: `/usr/bin/mrtg-ping-probe -o '-i 0.2' -l 1400 -p max/avg 219.139.81.51`

Title[219.139.81.51.ping]: CHINANET 湖北 孝感20081211 219.139.81.51 Round Trip Time

MaxBytes[219.139.81.51.ping]: 5000

AbsMax[219.139.81.51.ping]: 10000

Options[219.139.81.51.ping]: gauge,growright

PageTop[219.139.81.51.ping]: <H1>CHINANET 湖北 孝感20081211 219.139.81.51 Round Trip Time</H1>

YLegend[219.139.81.51.ping]: Round Trip Time

ShortLegend[219.139.81.51.ping]: ms

Legend1[219.139.81.51.ping]: Maximum Round Trip Time in Milli Second

Legend2[219.139.81.51.ping]: Average Round Trip Time in Milli Second

Legend3[219.139.81.51.ping]: Maximal 5 Minute Maximum Round Trip Time

Legend4[219.139.81.51.ping]: Maximal 5 Minute Minimum Round Trip Time

LegendI[219.139.81.51.ping]: &nbsp;Max:

LegendO[219.139.81.51.ping]: &nbsp;Min:

WithPeak[219.139.81.51.ping]: ymwd

 

#-------------------------------------------------------------------

Target[219.139.81.51.loss]: `/usr/bin/mrtg-ping-probe -o '-i 0.2' -l 1400 -p loss/loss 219.139.81.51`

Title[219.139.81.51.loss]: CHINANET 湖北 孝感20081211 219.139.81.51 Loss

PageTop[219.139.81.51.loss]: <H1>CHINANET 湖北 孝感20081211 219.139.81.51 Loss</H1>

MaxBytes[219.139.81.51.loss]: 100

AbsMax[219.139.81.51.loss]: 101

WithPeak[219.139.81.51.loss]: ymwd

Options[219.139.81.51.loss]: gauge,growright

# Unscaled[219.139.81.51.loss]: dwmy

YLegend[219.139.81.51.loss]: % Packet Loss

ShortLegend[219.139.81.51.loss]: %

Legend1[219.139.81.51.loss]: % Packet Loss

Legend2[219.139.81.51.loss]: % Packet Loss

Legend3[219.139.81.51.loss]: Maximal 5 Minute % Packet Loss

Legend4[219.139.81.51.loss]: Maximal 5 Minute % Packet Loss

LegendI[219.139.81.51.loss]: &nbsp;% loss:

LegendO[219.139.81.51.loss]: &nbsp;% loss:

 
2.生成html
/usr/bin/indexmaker *.cfg > /root/ng/html/ping.html
 
3 crontab 
*/5 * * * * env LANG=C /usr/bin/mrtg /root/mrtg/219.139.81.51.cfg
 
 

你可能感兴趣的:(ping,监控,休闲,mrtg,各结点质量)