apt-get install mrtg snmp snmpd libpng3
/etc/snmp/snmpd.conf
agentAddress udp:127.0.0.1:161
rocommunity public localhost
sysLocation Rotterdam
sysContact Dull
sysServices 72
trapsink localhost public
/etc/mrtg.cfg
WorkDir: /www/html/mrtg
EnableIPv6: no
Target[index]: 2:public@localhost:
SetEnv[index]: MRTG_INT_IP="188.122.91.91" MRTG_INT_DESCR="eth0"
MaxBytes[index]: 1000000000
Title[index]: Traffic Analysis
PageTop[index]: <h2>Traffic Analysis</h2>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>Ltcast in Rotterdam</td>
</tr>
<tr>
<td>Description:</td>
<td>Litecoin supernode</td>
</tr>
<tr>
<td>Max Speed:</td>
<td>1000.0 MBytes/s</td>
</tr>
<tr>
<td>Ip:</td>
<td>188.122.91.91</td>
</tr>
</table>
</div>
/etc/crontab
*/5 * * * * root mrtg /etc/mrtg.cfg >/dev/null 2>&1
反正是跑起来了
www.ltcast.com/mrtg/