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

Bishop, Dean dean.bishop at tcdsb.org
Fri Oct 18 16:54:52 MEST 2002


sorry, i missed a couple of thangs.

df output

Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda1              7858784   7366408     93164  99% /
none                    192588         0    192588   0% /dev/shm

perl command output

7543230464
95371264
1
Used Disk Space (%)

and the graph


-----Original Message-----
From: Bishop, Dean [mailto:dean.bishop at tcdsb.org]
Sent: Friday, October 18, 2002 10:42 AM
To: 'mrtg at list.ee.ethz.ch'
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



-- Attached file removed by Ecartis and put at URL below --
-- Type: application/octet-stream
-- Size: 4k (4930 bytes)
-- URL : http://www.ee.ethz.ch/~slist/pantomime/linux-stats.cfg-diskspa


--
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