How to measure Disk I/O

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
glenl
Posts: 42
Joined: Thu Jan 03, 2013 8:04 pm

How to measure Disk I/O

Post by glenl »

How to measure Disk I/O
glenl
Posts: 42
Joined: Thu Jan 03, 2013 8:04 pm

Re: How to measure Disk I/O

Post by glenl »

Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to measure Disk I/O

Post by scottwilkerson »

Are you looking for something different than in your other post?
http://support.nagios.com/forum/viewtop ... 50&p=48495
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

Re: How to measure Disk I/O

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to measure Disk I/O

Post by scottwilkerson »

yaanatech,

thanks for sharing!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
glenl
Posts: 42
Joined: Thu Jan 03, 2013 8:04 pm

Re: How to measure Disk I/O

Post by glenl »

Thank you very much.
Locked