My plan is to monitor network activity/usage on eth0 on my debian wheezy 7.1 using php. Could this done be done somehow by php? Does exist some library for this? Or should I use exec() and parse the output?
Would be really thankful for every tutorial, suggestion or a tip, thanks!
The info you need is in /proc/net/dev
For the transfer rate you will have to calculate the delta from the previous capture but the value will be approximate.