Monitor aws disk I/O

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
gopukrishnantec
Posts: 19
Joined: Tue Nov 04, 2014 1:49 am

Monitor aws disk I/O

Post by gopukrishnantec »

I have AWS SSD drives with provisioned I/O of 1050 IOPS. How can I monitor the same with nagios when it reaches 90% of its I/O capacity ?

You guys are always helpful. Thanks in advance.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Monitor aws disk I/O

Post by abrist »

I would presume it is virtualized on top of the disks. You could try to check for io wait . . . .
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
gopukrishnantec
Posts: 19
Joined: Tue Nov 04, 2014 1:49 am

Re: Monitor aws disk I/O

Post by gopukrishnantec »

I have found a plugin for the same but it is asking the below values which I doubt for mine (1050 IOPS):

IO Check Mode
Total Transfers/sec :
Read IO/Sec :
Write IO/Sec :
Bytes Read/Sec :
Bytes Written/Sec :

Queue Mode
Average size of requests:
Queue length of requests:

Wait Time Mode
Avg I/O Wait Time (ms):
Avg Read Wait Time (ms):
Avg Write Wait Time (ms):
Avg Service Wait Time (ms):
Avg CPU Utilization:

Please provide me the average values or the links if any other plugins are available.

Thank you all
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Monitor aws disk I/O

Post by eloyd »

I would write a module that checked iostat as follows:

Code: Select all

Note:  Usage would be check_iostat -d DISK -w warn -c crit

#!/bin/sh
device=""
warn=""
crit=""
while [ -n "$1" ]; do
  case "$1" in
    -d) device="$2"; shift 2;;
    -w) warn="$2"; shift 2;;
    -c) crit="$2"; shift 2;;
    *) shift 1;;
  esac
done

tps=`iostat -d $device | tail -2 | head -1 | awk '{print $2}'`
if [ "$tps" -ge "$crit" ]; then
  echo "CRITICAL - $device has $tps transactions per second, critical value is $crit"
  exit 2
elif [ "$tps" -ge "$warn" ]; then
  echo "WARNING - $device has $tps transactions per second, warning value is $warn"
  exit 1
else
  echo "OK - $device has $tps transactions per second"
  exit 0
fi
Example would be:

Code: Select all

check_iostat -d /dev/sda -w 500 -c 1000
Your mileage may vary, results not typical, this is a professional Nagios administrator on a closed course. Do not attempt without proper training.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Monitor aws disk I/O

Post by abrist »

Thanks for the input Eric.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked