Hi all,
I have a slave node uploading all kinds of backups to my server in the internet. Now I would like to display the actual upload and download rate to this server (not the entire nic-traffic, any protocol) in a small php-page for easy monitoring.
I had a look at quite some monitoring tools and the one which kind of offers what I am looking for is iftop with a filter on the IP of my server. As I would like to periodically update a file with the actual rates, an interactive program won't do.
A possibility would be to filter the packages myself using
http://search.cpan.org/~kcarnut/Net-Pcap-0.05/Pcap.pm
but this seems to be quite a long shot.
The optimal solution would be a program or script printing out the actual upload to a host specified in the options to STDOUT.
Thank you for your help