Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
fakej
byfakej, July 2, 2015
Not sure if tps is equal to r/s + w/s. If so we can save 10s and avoid invoking iostat twice
~# diff check_iostat.sh /usr/lib/nagios/plugins/check_iostat.sh
86c86
samples=2i
186a187
> TMPD=`$iostat $disk -k -d 10 $samples | grep $disk | tail -1`
187a189
> tps=`echo "$TMPD" | awk '{print $2}'`
190d191
~# diff check_iostat.sh /usr/lib/nagios/plugins/check_iostat.sh
86c86
samples=2i
186a187
> TMPD=`$iostat $disk -k -d 10 $samples | grep $disk | tail -1`
187a189
> tps=`echo "$TMPD" | awk '{print $2}'`
190d191