[linux] Re: mrtg & iptables

Udo van den Heuvel udovdh op xs4all.nl
Di Apr 15 18:15:39 CEST 2008


Folkert van Heusden wrote:
> Iemand enig idee wat ik fout doe?

Niet zo snel nee.
Ik gebruik dit:

#ntp
Target[ntp]: `/sbin/iptables -L INPUT -v -n -x | /bin/awk
'/.*ACCEPT.*udp.*dpt:123/{ print $2; nextfile; }' ; /sbin/iptables -L
OUTPUT -v -n -x | /bin/awk '/dpt:123/{ print $2; print 1 ; print "ntp"; }'`
Title[ntp]: NTP Traffic
PageTop[ntp]: <H1>NTP Traffic (bytes/s)</H1>
MaxBytes[ntp]: 1000000
Options[ntp]: growright, nopercent, noinfo
#Options[ntp]: absolute, growright, nopercent
LegendI[ntp]:  Input 
LegendO[ntp]:  Output 
Ylegend[ntp]: Bytes/s
ShortLegend[ntp]:

Misschien helpt het.



More information about the Linux mailing list