I'm writing a customized monitoring panel for Ubuntu Server.

At this step I need to get real time hard disk read and write rate then put it into a file as a log file.

I used tools like Hdparm, Iotop but they did not work. I want the result in a file.

I want a result such as: 10Kb read - 2kb write - 2014-2-13 16:40:03

So I can run it as Crontab and monitor every I/O rate.


You can use iostat.

sudo apt-get install sysstat


iostat -d 2 /dev/sda

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.