Вот конфиг:
Код: Выделить всё
### Global Config Options
WorkDir: /var/www/html/mrtg
Refresh: 300
Interval: 5
WriteExpires: No
IconDir: images/
LogDir: /var/log
RunAsDaemon: No
Language: russian
Background[_]: #FFFFC0
### System
# CPU
Target[machine]: `/usr/lib/mrtg2/helpers/cpuinfo.pl localhost linux`
MaxBytes[machine]: 100
Options[machine]: gauge, nopercent
Unscaled[machine]: dwym
YLegend[machine]: % of CPU used
ShortLegend[machine]: %
LegendO[machine]: CPU System:
Legend1[machine]: CPU User
Legend2[machine]: CPU System
Legend3[machine]: Max CPU User
Legend4[machine]: Max CPU System
LegendI[machine]: CPU User:
Title[machine]: Load CPUs Apollo Server
PageTop[machine]: <center><h1>Load CPUs Apollo Server</h1></center>
### Network
# eth0
Title[eth0]: Statistics eth0
MaxBytes[eth0]: 2048000
Options[eth0]: bits
Target[eth0]: '/usr/sbin/cban -i eth0 -m'
PageTop[eth0]: <center><h1>Interface eth0</h1></center>
YLegend[eth0]: Bits/s
ShortLegend[eth0]: Bits/s
### Wireless
# zan_m
Target[wf_zan]: 1:public@192.168.23.251
MaxBytes[wf_zan]: 256000
Options[wf_zan]: bits
Title[wf_zan]: Zanasip Wireless Link
PageTop[wf_zan]: <center><h1>Zanasip Wireless Link</h1></center>
YLegend[wf_zan]: Bits/s
ShortLegend[wf_zan]: Bits/s
# skazka_m
Target[wf_skazka]: 1:public@192.168.23.253
MaxBytes[wf_skazka]: 768000
Options[wf_skazka]: bits
Title[wf_skazka]: Skazka Wireless Link
PageTop[wf_skazka]: <center><h1>Skazka Wireless Link</h1></center>PS.: найденые в инете скрипты типа count.sh и get_if_stat.pl не работают, всегда ноль.
PS2.: Скрипт найденый в сети под именем count.sh выдаёт заоблачные чила в гигабитах.