A standalone version of the openATTIC check_diskstats Nagios Plugin, to monitor disk io, request size, disk load, etc...
mkdir -p /var/tmp/nagios/
chown nagios:nagios /var/tmp/nagios
chmod +x check_diskstats
./check_diskstats /dev/sda
define command{
command_name check_diskstats
command_line $USER1$/check_diskstats $ARG1$
}
Disk load for sda is at 2.29%.|rd_iops=18.52 wr_iops=192.21 tot_iops=210.73 rd_normiops=41.33 wr_normiops=1603.85 tot_normiops=1645.18 rd_normratio=2.23 wr_normratio=8.34 rd_bps=169288.34B/s wr_bps=6569377.97B/s tot_avg_wait=0.000150s rd_avg_wait=0.000198s wr_avg_wait=0.000146s rd_avg_size=9141.07B wr_avg_size=34178.16B load_percent=2.29%;75;85;0;100 ioindex=92 normindex=719
Copyright (C) 2011-2012, it-novum GmbH
Copyright (c) 2017 SUSE LLC
openATTIC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.