-1

I want to write script/service to collect I/O bandwidth consumption on daily basis. I know nload tool which will show total I/O data transfer from the time we executed the command. I want script to generate data for this bandwidth and save in some file on day to day or per hours basic. Please suggest if I can use any other tool.

Thanks in advance.

Sunil Bhoi
  • 189
  • 1
  • 1
  • 9

1 Answers1

1

Check out a tool like Munin, Zabbix, Icinga.

If you really want to collect data by hand check out /proc/net/dev which gives you the current transmitted/received byte and packet count among others since system boot (or driver start). Subtract the current value from a previously captured and you get how many bytes or packets have been transmitted/received since then.

Gábor Héja
  • 323
  • 2
  • 14