here is a sample run.
$ iostat -xd 5 2
Linux 2.6.18-92.1.22.el5PAE (host.bla.com) 09/15/2010
Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
sda 0.00 0.00 0.00 0.00 0.07 0.00 92.89 0.00 4.31 3.78 0.00
sdb 23.63 8.98 21.65 27.30 14.39 120.96 2.77 0.10 1.95 1.55 7.59
dm-0 0.00 0.00 0.11 3.01 2.27 24.08 8.44 0.04 11.50 1.04 0.32
dm-1 0.00 0.00 0.34 1.80 6.38 14.38 9.71 0.02 10.15 1.59 0.34
dm-2 0.00 0.00 0.00 0.33 0.01 2.62 8.00 0.00 7.70 3.09 0.10
dm-3 0.00 0.00 0.47 28.77 33.15 90.77 4.24 0.06 2.03 0.17 0.51
dm-4 0.00 0.00 0.00 0.00 0.00 0.00 8.00 0.00 18.27 2.54 0.00
dm-5 0.00 0.00 44.45 2.42 111.93 123.38 5.02 0.02 0.37 1.59 7.45
drbd0 0.00 0.00 44.45 128.36 111.89 51.42 4.88 0.10 3.45 3.94 13.17
Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
sdb 0.00 35.40 3.80 69.20 32.00 821.20 11.69 0.04 0.59 0.52 3.76
dm-0 0.00 0.00 0.20 2.80 3.20 22.40 8.53 0.00 1.13 1.13 0.34
dm-1 0.00 0.00 0.00 1.80 0.00 14.40 8.00 0.00 0.00 0.00 0.00
dm-2 0.00 0.00 0.00 0.60 0.00 4.80 8.00 0.00 0.00 0.00 0.00
dm-3 0.00 0.00 0.00 2.00 0.00 16.00 8.00 0.00 0.00 0.00 0.00
dm-4 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
dm-5 0.00 0.00 3.60 97.40 28.80 761.00 7.82 0.04 0.40 0.34 3.40
drbd0 0.00 0.00 3.60 94.80 28.80 758.40 8.00 0.09 0.96 0.56 5.48
I whish the maintainer of iostat would add a friendly name option, it would not be so hard to code a device-mapper -> LVM translation using "dmsetup ls" , problem is you can only run that command as root. ( guess you could add a sudo rule... )
anyways, if you don't find the time to work on this, just just provide a sample output of solaris's /usr/bin/iostat -xrn and I'll post the changes needed to the list.
Thank !
Dan
Vernon Everett wrote:
Could give it a go.
Send me the output of iostat -x 2 2 for your favourite OS(s)
Where I am now, I only have Solaris, hence the bias.
Cheers
V
On Wed, Sep 15, 2010 at 5:22 AM, Daniel Bourque <user-a141068964db@xymon.invalid <mailto:user-a141068964db@xymon.invalid>> wrote:
Sorry I can't reply to the thread for some reason i quit receiving
the emails, I checked the archive and noticed the replies to my
former thread. ( thanks ! )
Vernon, since I don't run solaris here, only linux and some tru64,
the -r ( csv output ) and -n ( friendly names ) options makes it
hard to use your shell script since they either don't exists or
don't work the same. Can you perhaps provide a same output of
"iostat -xrn" and along with formated text you pass to hobbit in
your check.
I can then provide a snippet of code for linux, which would
provide the equivalent output. So you could just add a case in the
shell script.
case `uname` in
Linux)
/usr/bin/iostat -x $DURATION 2 | wonderful stuff > $TEMPFILE.raw
;;
SunOS)
/usr/bin/iostat -xrn $DURATION 2 > $TEMPFILE.raw
;;
esac
-- Dan
xymon-unsubscribe at xymon.com <mailto:xymon-unsubscribe at xymon.com>