MRTG сам не снимает график с интерфесов он работает через SNMP,iptables,нашел еще примеры c cban....Iptables не пробовал.
mrtg.cfg:
WorkDir: /srv/www/htdocs/mrtg
Target[ethernet]: 2:public@localhost:
SetEnv[ethernet]: MRTG_INT_IP="192.168.20.177" MRTG_INT_DESCR="eth0"
MaxBytes[ethernet]: 12500000
Title[ethernet]: Traffic Analysis for 2 -- xxxxxxxx
PageTop[ethernet]: <H1>Traffic Analysis for 2 -- xxxxxxx</H1>
<TABLE>
<TR><TD>System:</TD> <TD>xxxxxxxxx in Server Room</TD></TR>
<TR><TD>Maintainer:</TD> <TD>Sysadmin (root@localhost)</TD></TR>
<TR><TD>Description:</TD><TD>eth0 </TD></TR>
<TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
<TR><TD>ifName:</TD> <TD></TD></TR>
<TR><TD>Max Speed:</TD> <TD>12.5 MBytes/s</TD></TR>
<TR><TD>Ip:</TD> <TD>192.168.20.177 ()</TD></TR>
</TABLE>
#--------------------------------------------------
Target[isdn]: ifInOctets.4&ifOutOctets.4:public@127.0.0.1
MaxBytes[isdn]:10000
Title[isdn]: Traffic Analysis for 4 -- xxxxxxxxx
PageTop[isdn]: <H1>Traffic Analysis for 4 -- xxxxxxxx</H1>
<TABLE>
<TR><TD>System:</TD> <TD>uspenskoe in Server Room</TD></TR>
<TR><TD>Maintainer:</TD> <TD>Sysadmin (root@localhost)</TD></TR>
<TR><TD>Description:</TD><TD>ippp0 </TD></TR>
<TR><TD>ifType:</TD> <TD>ppp (23)</TD></TR>
<TR><TD>ifName:</TD> <TD></TD></TR>
<TR><TD>Max Speed:</TD> <TD>16.0 KBytes/s</TD></TR>
<TR><TD>Ip:</TD> <TD>62.183.xxx.xxxx (xxxxxxx)</TD></TR>
</TABLE>