Hi
-------- Ursprüngliche Nachricht --------Von: "Nicola Ferrari (#554252)" 
<[email protected]> Datum: 09.03.20  10:17  (GMT-04:00) An: 
[email protected] Betreff: [Shorewall-users] Shorewall 
Bandwidth usage monitoring Hi list,today I'm writing you to ask you some hints, 
suggestions or bestpractice to introduce a bandwidth usage monitoring in 
shorewall.What I'm trying to acheive is a csv file or something similar to 
collectbandwidth usage log, in/out of the internet interface..(out direction 
should be enough, btw)My first approch was to use infos provided by 
sys/class/netSomething like this:IFACE="eth5"cd 
/sys/class/net/$IFACE/statistics# headerecho 
"date;time;bandwidth"old=$(<tx_bytes)while $(sleep 1); do now=$(<tx_bytes) echo 
$(date +%d-%m)";"$(date +%H:%M:%S)";"$((($now-$old)/1024))"KB/s" old=$nowdoneIs 
there any better way to proceed?You should look at something like 
mrtg.CheersErich
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to