Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_diskstat

Rating
3 votes
Favoured:
3
Current Version
0.10
Last Release Date
2014-11-05
Compatible With
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
License
GPL
Hits
58752
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
check_diskstat
Linux disk IO check. Reads /sys filesystem directly to query tps, read, write, avg. request size, avg. queue size and avg. wait time.
EXAMPLE OUTPUT

$ ./check_diskstat.sh -d sda -W 10 -C 20
summary: 3 io/s, read 32 sectors (0kB/s), write 4216 sectors (43kB/s), queue size 0 in 48 seconds | tps=3io/s;;; read=341b/s;;; write=44970b/s;;; avgrq-sz=24;;; avgqu-sz=0;10;20; await=43ms;;;


USAGE

./check_diskstat.sh -d DEVICE [ -w tps,read,write -c tps,read,write ]
| [ -W qlen -C qlen ] | -h

This plug-in is used to be alerted when maximum hard drive io/s, sectors
read|write/s or average queue length is reached.

-d DEVICE DEVICE must be without /dev (ex: -d sda)
-w/c TPS,READ,WRITE TPS means transfer per seconds (aka IO/s)
READ and WRITE are in bytes per seconds
-W/C NUM Use average queue length thresholds instead..
-b Brief output.

Performance data for graphing is supplied for tps, read, write, avgrq-sz,
avgqu-sz and await (see iostat man page for details).

Example: Tps, read and write thresholds:
./check_diskstat.sh -d sda -w 200,100000,100000 -c 300,200000,200000

Example: Average queue length threshold:
./check_diskstat.sh -d sda -W 50 -C 100