Anyone know anything about RRDTOOL on Windows?

Soldato
Joined
8 Mar 2005
Posts
3,674
Location
London, UK
I have a simple rrdtool database, with an entry created every 5 minutes and for small reporting periods, say less than 30 days I've had no issue simply using the mostly default settings to produce a plot.

However; I would now like to produce a yearly plot based on weekly intervals but the hell can I work out how to conjure that and the RRDTOOL documentation reads mostly like gobbledygook!

The following rrdtool command-line
Code:
e:\CTX\RRDtool\rrdtool.exe graph E:\CTX\tst\CtxLicUsage-30d_NEW.png -w 2200 -h 150 --start end-12w --end 00:00 --slope-mode ^
--vertical-label "Licenses Checked Out" --title "Current VAD 30 days - Concurrency" ^
DEF:Total=CtxLicUsage.rrd:total:AVERAGE ^
DEF:Used=CtxLicUsage.rrd:used:AVERAGE ^
DEF:Avail=CtxLicUsage.rrd:avail:AVERAGE ^
DEF:Overdraft=CtxLicUsage.rrd:overdraft:AVERAGE ^
CDEF:LineUsed=Used,1,* ^
CDEF:LineAvail=Avail,1,* ^
CDEF:LineTotal=Total,1,* ^
CDEF:LineOverdraft=Total,Overdraft,- ^
COMMENT:" " COMMENT:"Last    " COMMENT:"Maximum " COMMENT:"Average " COMMENT:"Minimum\l" ^
AREA:LineUsed#4F5444:"Used ":STACK GPRINT:Used:LAST:"%%6.3lf %%S" GPRINT:Used:MAX:"%%6.3lf %%S" GPRINT:Used:AVERAGE:"%%6.3lf %%S" GPRINT:Used:MIN:"%%6.3lf %%S\l" ^
AREA:LineAvail#D1DFDD:"Available ":STACK GPRINT:Avail:LAST:"%%6.3lf %%S" GPRINT:Avail:MAX:"%%6.3lf %%S" GPRINT:Avail:AVERAGE:"%%6.3lf %%S" GPRINT:Avail:MIN:"%%6.3lf %%S\l" ^
LINE2:LineTotal#3b73fc:"Total " GPRINT:Total:LAST:"%%6.3lf %%S" GPRINT:Total:MAX:"%%6.3lf %%S" GPRINT:Total:AVERAGE:"%%6.3lf %%S" GPRINT:Total:MIN:"%%6.3lf %%S\l" ^
LINE1:LineOverdraft#9e0b0f:"Overdraft " GPRINT:Overdraft:LAST:"%%6.3lf %%S" GPRINT:Overdraft:MAX:"%%6.3lf %%S" GPRINT:Overdraft:AVERAGE:"%%6.3lf %%S" GPRINT:Overdraft:MIN:"%%6.3lf %%S\l"
Produces
rrdtool.jpg

Ignoring the current reporting period as just 12 weeks; I've reduced it in this example otherwise the image width would be three times as large!

Including --step 604800 sort of provides that weekly interval point, but it uses an average and rrdtool uses days as the labels! Grrrr.
rrdtool2.jpg


Any pointers, much appreciated.
 
Back
Top Bottom