[mrtg] Re: rrdtool fetch doesn't match graph

Bishop, Dean dean.bishop at tcdsb.org
Fri Oct 18 19:32:31 MEST 2002


no.  i am using 'df' in the perl command, dumping it's output to mrtg and
mrtg seems to be recording the data correctly in the rrd (as indicated by
the rrdtool dump).  It just seems to get mangled on the image itself.

thanks though,
dean

-----Original Message-----
From: Andrew Davis [mailto:andrew at socallinuxsolutions.com]
Sent: Friday, October 18, 2002 1:24 PM
To: Bishop, Dean
Cc: 'Matt Walkowiak'; 'mrtg at list.ee.ethz.ch'
Subject: Re: [mrtg] Re: rrdtool fetch doesn't match graph


Maybe one is counting the actual, comsumed MBs & the other is
calculating the disk space used. Depending on cluster sizes, etc... a
true 100Mb file could actually take up around 102 to 103Mb in some
cases.

You can prove this on a Windows machine at any time by clicking
'properties' on any large file. Its actual size would be the same thing
you'd see on an FTP server if downloaded it. But it's size relating to
how much disk space is used will often be a bit larger. Case in point...
my RH8 Disc1 ISO is exactly 650Mb, but it takes up 672Mb of disk space
on my Windows machine...

AD

On Fri, 2002-10-18 at 08:04, Bishop, Dean wrote:
> 
> no.  i wondered about this but it does not seem to be the case
> 
> i have been trying to figure out any standard difference but can't.
> 
> rrdtool		graph
> used space	7.36G		6.86G		7366408Bytes
> free space 93.41M		89.15M	93164Bytes
> 
> i just can't find the correlation.
> 
> thanks,
> dean
> 
> --
> dream outloud
> 
> 
> 
> -----Original Message-----
> From: Matt Walkowiak [mailto:matt at inetdvd.com]
> Sent: Friday, October 18, 2002 10:47 AM
> To: Bishop, Dean
> Subject: Re: [mrtg] rrdtool fetch doesn't match graph
> 
> 
> ummm.... this is a complete WAG, but are you off by a factor of 8
anywhere?
> Remember, MRTG's main job was to graph bandwidth traffic, and you may be
> confusing your bits with your bytes...
> 
> Matt Walkowiak
> 
> ----- Original Message -----
> From: "Bishop, Dean" <dean.bishop at tcdsb.org>
> To: <mrtg at list.ee.ethz.ch>
> Sent: Friday, October 18, 2002 9:42 AM
> Subject: [mrtg] rrdtool fetch doesn't match graph
> 
> 
> >
> > Good morning,
> >
> > i am using mrtg and rrdtool to store hard-drive space info.  The
> > problem is that if i run rrdtool dump i get one number but the graph
gives
> > me another.
> > i have messed around with the script, the factor and kilo options
> > without solving the problem.
> >
> > Can someone please help??
> >
> > ######################################################################
> > #                                                                    #
> > # this is the disk used and free on /                   #
> > #                                                                    #
> > ######################################################################
> > Target[diskspaceusedandfree]:  `perl -e '$f="%.0f";$fmt="$f\n$f\n1\nDisk
> > Space Used and Free\n";@line=split " ", (qx(df));$o=sprintf
> > $fmt,$line[9]*1000,$line[10]*1000;print $o; print STDERR $o'`
> > Options[diskspaceusedandfree]: gauge
> > MaxBytes[diskspaceusedandfree]: 8858784000000
> > #ABSMax[diskspaceusedandfree]: 7858784000
> > kMG[diskspaceusedandfree]: M,G,T,P,X
> > YLegend[diskspaceusedandfree]: bytes
> > Unscaled[diskspaceusedandfree]: ymwd
> > ShortLegend[diskspaceusedandfree]:
> > Legend1[diskspaceusedandfree]: Used
> > Legend2[diskspaceusedandfree]: Free
> > LegendI[diskspaceusedandfree]:  Disk Space Used
> > LegendO[diskspaceusedandfree]:  Disk Space Free
> > Title[diskspaceusedandfree]: Server Disk space used and Free on /
> > PageTop[diskspaceusedandfree]: <H2>Server Disk Space Used and Free on
> /</H2>
> >
> >
> > ---snip from rrdtool dump diskspaceusedandfree.rrd----
> > <!-- 2002-10-18 10:30:00 EDT / 1034951400 -->
> > <row><v> 7.3661578400e+09 </v><v> 9.3414160000e+07 </v></row>
> > </database>
> > </rra>
> > </rrd>
> >
> > thanks,
> > dean
> >
> > --
> > Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> > Archive     http://www.ee.ethz.ch/~slist/mrtg
> > FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> > WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
> >
> >
> 
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://www.ee.ethz.ch/~slist/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
> 
-- 
Andrew Davis, Founder
SoCalLinuxSolutions
andrew at socallinuxsolutions.com
760-525-4689

SoCalLinuxSolutions.com
Linux Consultation & Integration Services

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list