Xymon Mailing List Archive search

iostat monitor

list Daniel Bourque
Tue, 14 Sep 2010 16:22:13 -0500
Message-Id: <user-cd08f5764aac@xymon.invalid>

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