<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>Printing a single simple average value</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Courier">Hi RRD Users,</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier">I have an rrdfile router1.rrd that collects utilization data every 15 minutes. I want to print a single value which represents an AVERAGE rate over a 6 week period.</FONT></P>
<P><FONT SIZE=2 FACE="Courier">I have read documentation and played around with this for several days and I haven't been able to figure it out.</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier">The closest I came was this:</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier">rrdtool graph - -s "midnight-6w" -e "midnight" \</FONT>
<BR><FONT SIZE=2 FACE="Courier">DEF:ds0=router1.rrd:ifInOctets:AVERAGE \</FONT>
<BR><FONT SIZE=2 FACE="Courier">VDEF:ds1=ds0,AVERAGE \</FONT>
<BR><FONT SIZE=2 FACE="Courier">PRINT:ds1:%20.2lf%s</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier">At least this doesn't give me any errors, but it doesn't give me any output whatsoever.</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier">Ideally I want to put this into a perl script like:</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier">$average = RRDs::graph($rrdargs);</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier">What am I doing wrong?</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Courier">Tanya Ruttenberg</FONT>
<BR><FONT SIZE=2 FACE="Courier">SMC/OND Administrator for DNE</FONT>
<BR><FONT SIZE=2 FACE="Courier">410-965-9605</FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Courier">SMC Email & Home Page: #SMC Admin</FONT> <A HREF="http://smc.ba.ssa.gov"><U></U><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier">http://smc.ba.ssa.gov</FONT></U></A><FONT COLOR="#0000FF" SIZE=2 FACE="Courier"> </FONT>
<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Courier">OND Email & Home Page: #OND Admin</FONT> <A HREF="http://ssahost.ba.ssa.gov/ONDwebinterface"><U></U><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier">http://ssahost.ba.ssa.gov/ONDwebinterface</FONT></U></A><FONT COLOR="#0000FF" SIZE=2 FACE="Courier"> </FONT>
</P>
<BR>
</BODY>
</HTML>