I would like to create a bash script for my centos server to monitor the bandwidth usage. Like whether eth0 or eth1 is UP, it should monitor the bandwidth rate it sends and receives in every 15 seconds. I can do the scripting part fine.
But do you know which network/Ethernet monitoring tool on Centos system provides the best result in CLI(text format)? I do not prefer any tools that provide results only in GUI. The ultimate aim is to share the result from the bandwidth monitoring script to my external monitoring server. The result either in Kbps or Mbps is fine.