Page 1 of 1
How to measure Disk I/O
Posted: Wed Mar 20, 2013 9:07 pm
by glenl
How to measure Disk I/O
Re: How to measure Disk I/O
Posted: Wed Mar 20, 2013 9:09 pm
by glenl
Thanks
Re: How to measure Disk I/O
Posted: Thu Mar 21, 2013 6:55 am
by scottwilkerson
Are you looking for something different than in your other post?
http://support.nagios.com/forum/viewtop ... 50&p=48495
Re: How to measure Disk I/O
Posted: Thu Mar 21, 2013 4:51 pm
by yaanatech
Here is a script I write to monitor and graph disk i/o on a linux system;
Code: Select all
#!/bin/bash
STATE_OK=0
STATE_WARNING=1
STATE_CRITICAL=2
STATE_UNKNOWN=3
device=$1
tps=`iostat | grep $device | awk '{print $2}'`
blkWrite=`iostat | grep $device | awk '{print $4}'`
echo "Status Ok: Device $device - TPS=$tps, Blk_wrtn/s=$blkWrite | TPS=$tps; Blk_wrtn/s=$blkWrite"
exit $STATE_OK
Works for my needs. I am not alerting on it, just trending.
Re: How to measure Disk I/O
Posted: Thu Mar 21, 2013 6:43 pm
by scottwilkerson
yaanatech,
thanks for sharing!
Re: How to measure Disk I/O
Posted: Fri Mar 22, 2013 2:53 am
by glenl
Thank you very much.