I am launching a beta version of a web application and I want to record system resource information. system monitors eat too many resources and do much more than I need. What I want to do is get key statistics and register them every time a user logs in.
these are the statistics that interests me:
- number of users - I already did it
- system 5 min and 15 min load - php get average load
- outgoing bandwidth on eth0 - ????
- free memory - ????
so how can i get outgoing traffic and free memory statistics?
source
share