[mrtg] help, my rrdtool monthly graph is two weeks

Max Max.mrtg at deltal.org
Tue Dec 11 01:53:00 CET 2007


Hi,
I am trying to graph the inside vs outside temperature at my house.

My graphs for two days, one week, one year are looking like I believe 
they should look, but...


I can't seem to make the one month graph look right. For some reason it 
only seems to have two weeks on the X axies.

The section of the graph creation script for the month, and the comand I 
used to make the .rrd database is listed below.

All of the code and the graphs may be viewed/downloaded from the 
following temporary weblink, which will be updated every five minutes 
until I resolve the problem. Once I have reslove my problem the link 
will still be left up for reference purposes, but the cron job which 
keeps it current will be removed so the data will stay useful but not 
current.


Thank you for any assistance in solving what is probably a simple 
mistake on my behalf.

link:>
http://corporateturtles.com/tmp/200712091810/

rrdgraph segment:>
#
# Graph for temperature, Dalmore, Dunedin
# -- MONTH
#
rrdtool graph /var/www/rrdtool/temperature-month.png \
DEF:in1=/var/www/rrdtool/temperature.rrd:internal:AVERAGE \
DEF:in2=/var/www/rrdtool/temperature.rrd:inside:AVERAGE \
DEF:out=/var/www/rrdtool/temperature.rrd:outside:AVERAGE \
VDEF:MaxIn1=in1,MAXIMUM \
VDEF:MinIn1=in1,MINIMUM \
VDEF:AvgIn1=in1,AVERAGE \
VDEF:CurrentIn1=in1,LAST \
VDEF:MaxIn2=in2,MAXIMUM \
VDEF:MinIn2=in2,MINIMUM \
VDEF:AvgIn2=in2,AVERAGE \
VDEF:CurrentIn2=in2,LAST \
VDEF:MaxOut=out,MAXIMUM \
VDEF:MinOut=out,MINIMUM \
VDEF:AvgOut=out,AVERAGE \
VDEF:CurrentOut=out,LAST \
COMMENT:"\t\t\tMax\t\t\t\t Min\t\t\t\t\t Average\t\t\t\tCurrent\n" \
AREA:in2#00FF00:"Inside" \
GPRINT:MaxIn2:"%8.2lf deg C" \
GPRINT:MinIn2:"\t\t%7.2lf deg C" \
GPRINT:AvgIn2:"\t\t\t%8.2lf deg C" \
GPRINT:CurrentIn2:"\t\t%8.2lf deg C\n" \
LINE1:out#FF0000:"Outside" \
GPRINT:MaxOut:"%7.2lf deg C" \
GPRINT:MinOut:"\t\t%7.2lf deg C" \
GPRINT:AvgOut:"\t\t\t%8.2lf deg C" \
GPRINT:CurrentOut:"\t\t%8.2lf deg C\n" \
--title "Temperature, Dalmore, Dunedin, New Zealand 9010" \
--base 1000 -r -X 0 \
-s -730h -w 790 -l 0 --lazy


Round robin database creation code used:>
||rrdtool create temperature.rrd DS:internal:GAUGE:864:U:U \
DS:inside:GAUGE:864:U:U \
DS:outside:GAUGE:864:U:U \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:228:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775\
RRA:MIN:0.5:228:797\
RRA:LAST:0.5:1:2|



Naturally, if there are any other mistakes/inefficiencies/etc that I 
have made, please feel free to point them out.




Cheers

Max,
Dunedin, NZ



More information about the mrtg mailing list