[mrtg] help, my rrdtool monthly graph is two weeks
Max.mrtg at deltal.org
Tue Dec 11 01:53:00 CET 2007
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
Thank you for any assistance in solving what is probably a simple
mistake on my behalf.
# Graph for temperature, Dalmore, Dunedin
# -- MONTH
rrdtool graph /var/www/rrdtool/temperature-month.png \
COMMENT:"\t\t\tMax\t\t\t\t Min\t\t\t\t\t Average\t\t\t\tCurrent\n" \
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" \
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 \
Naturally, if there are any other mistakes/inefficiencies/etc that I
have made, please feel free to point them out.
More information about the mrtg