[mrtg] rrdtool fetch doesn't match graph

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


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



More information about the mrtg mailing list