My iostat is giving following output
$ iostat
Linux 3.13.0-29-generic (Inksedge) 08/13/2015 _x86_64_ (4 CPU)
Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
xvdap1 0.62 0.13 9.01 3282841 226020852
xvdb 0.03 0.00 0.12 7721 2999916
xvdc 0.00 0.00 0.00 1376 0
check_iostat is not working for device xvdap1 ! I tried for xvda, xvda1 also but no use !
# /usr/lib/nagios/plugins/check_iostat -d xvda1 -w 100,100,100 -c 200,200,200
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
OK - I/O stats tps= MB_read/s= MB_written/s= | 'tps'=; 'MB_read/s'=; 'MB_written/s'=;
So what should i give device name to get proper output ?
It is working for xvdb :
# /usr/lib/nagios/plugins/check_iostat -d xvdb -w 100,100,100 -c 200,200,200
OK - I/O stats tps=0.00 MB_read/s=0.00 MB_written/s=0.00 | 'tps'=0.00; 'MB_read/s'=0.00; 'MB_written/s'=0.00;