How to measure Disk I/O
How to measure Disk I/O
How to measure Disk I/O
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: How to measure Disk I/O
Are you looking for something different than in your other post?
http://support.nagios.com/forum/viewtop ... 50&p=48495
http://support.nagios.com/forum/viewtop ... 50&p=48495
Re: How to measure Disk I/O
Here is a script I write to monitor and graph disk i/o on a linux system;
Works for my needs. I am not alerting on it, just trending.
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: How to measure Disk I/O
yaanatech,
thanks for sharing!
thanks for sharing!
Re: How to measure Disk I/O
Thank you very much.