I want to collect bandwidth usage statistics on my linux server. What I want to do, is to write a function (probably will use php exec) that will return the number of bytes, and then store it in DB.
I had tried several methods, but all return complex data.
Is there a method to get simple bandwidth usage in bytes for the server.
I don't need to know which ip or service using it.
I need only in going and out going usage.