<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I am trying to monitor disk IO (in either bytes or
blocks, anything right now). I have scoured the web on several different
occasions and have not come up with much. I do now have a script that when
run will give me some information but I cannot get MRTG to graph it. I am
guess I do not have my mrtg.cfg setup correctly to accept the output of the
script. </FONT></DIV>
<DIV><FONT face=Arial size=2>The script I have found on the
Internet:</FONT></DIV>
<DIV><FONT face=Arial
size=2>#!/bin/bash<BR>hostname=`hostname`<BR>uptime=`uptime | awk '{print
$3}'`<BR>uptime="$uptime days"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># default to hdiska's
line.<BR>tag=${1:-hda}<BR>blck_in=`iostat -d | grep $tag | awk '{ print $5
}'`<BR>blck_out=`iostat -d | grep $tag | awk '{ print $6 }'`<BR>echo
$blck_in<BR>echo $blck_out<BR>echo $uptime<BR>echo $hostname<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>When just running the script from the command line,
I get some information. If I keep running the script the information
changes so I assume it is blocks in and out...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My relative mrtg.cfg section:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>#---------------------------------------------<BR>Target[diskhda]:
`/home/quadaent/mrtg/diskhda.sh`<BR>MaxBytes[diskhda]: 500<BR>LegendI[diskhda]:
blck_in :<BR>LegendO[diskhda]: blck_out :<BR>Options[diskhda]:
gauge,noinfo,nopercent,growright,unknaszero<BR>YLegend[diskhda]:
blocks<BR>ShortLegend[diskhda]: IO/Sec<BR>Title[diskhda]: server
uptime<BR>PageTop[diskhda]: <h1>Disk IO</h1><BR># Legend1[diskhda]:
IO/Sec<BR># Colours[diskhda]: LIGHT BLUE#7AAFFF,BLUE#1000FF,DARK
GREEN#006000,VIOLET#FF00FF<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Could someone help me please? Seems this
would be a common thing to want to track but there is very little available from
what I have found (same thing for exim unfortunately).</FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<DIV><FONT face=Arial size=2>Brent Atkerson/Quad "A" Enterprises<BR>Professional
Web Site Design and Hosting, <BR>PC Repair, and Networking
solutions<BR>Phone (989) 670-0885<BR><A
href="http://www.quadaenterprises.com">http://www.quadaenterprises.com</A></FONT></DIV></BODY></HTML>