<!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>Sorry,</FONT></DIV>
<DIV><FONT face=Arial size=2>I found the problem (by reading <A 
href="http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html">http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html</A>&nbsp;for 
Options&gt;Gauge).&nbsp; Turns out I had an option for gauge set.&nbsp; I 
removed the gauge option and it is now reporting data.&nbsp; Now, just need to 
find out how to convert blocks to bytes.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>Brent Atkerson/Quad "A" Enterprises<BR>Professional Web Site Design and 
Hosting, <BR>PC Repair, and Networking solutions<BR>Phone&nbsp; (989) 
670-0885<BR><A 
href="http://www.quadaenterprises.com">http://www.quadaenterprises.com</A></DIV>
<DIV style="FONT: 10pt arial">----- Original Message ----- 
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A 
title=brent@quadaenterprises.com href="mailto:brent@quadaenterprises.com">Brent 
Atkerson</A> </DIV>
<DIV><B>To:</B> <A title=mrtg@lists.oetiker.ch 
href="mailto:mrtg@lists.oetiker.ch">mrtg@lists.oetiker.ch</A> </DIV>
<DIV><B>Sent:</B> Thursday, December 13, 2007 1:00 PM</DIV>
<DIV><B>Subject:</B> Disk IO on Debian with MRTG</DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>I am trying to monitor disk IO (in either bytes or 
blocks, anything right now).&nbsp; I have scoured the web on several different 
occasions and have not come up with much.&nbsp; I do now have a script that when 
run will give me some information but I cannot get MRTG to graph it.&nbsp; I am 
guess I do not have my mrtg.cfg setup correctly to accept the output of the 
script.&nbsp; </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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>When just running the script from the command line, 
I get some information.&nbsp; 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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>My relative mrtg.cfg section:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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]: &lt;h1&gt;Disk IO&lt;/h1&gt;<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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Could someone help me please?&nbsp; 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>&nbsp;</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&nbsp; (989) 670-0885<BR><A 
href="http://www.quadaenterprises.com">http://www.quadaenterprises.com</A></FONT></DIV></BODY></HTML>