send interface statistic daily as mail
-
out of the blue
any idea how to send the interface statistic every day via eMail
interfaceName | Bytes In | Bytes Out
brNP
-
install the Status Traffic Totals and run the following shell script, tweak the script to suit :-
#!/bin/csh foreach int ( pppoe0 igb0.2 igb0.3 igb0.4 igb0.5 igb0.6 igb0.7 igb0.9 igb0.11 enc0 ) echo /usr/local/bin/vnstat -i $int -d 1 echo end foreach int ( pppoe0 igb0.2 igb0.3 igb0.4 igb0.5 igb0.6 igb0.7 igb0.9 igb0.11 enc0 ) echo /usr/local/bin/vnstat -i $int -h echo end
-
This is my setup for my WAN interface :
Regards
-
Awesome folks!!!!
Yeahhh! Thx!
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.