Xymon Mailing List Archive search

iostat monitor

list Vernon Everett
Wed, 15 Sep 2010 06:18:13 +0800
Message-Id: <AANLkTim=user-e5625098bb60@xymon.invalid>

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>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