I'd like to tweak the [mrtg] section in hobbitgraph.cfg "@RRDIDX@" "@RRDPARAM@" is there one for the time units it measures against ie wether it is 48 hour 12 day, 48 day or 576 Day measurement of time
I want to be able to calculate the total bandwidth for the alotted period of time for my mrtg interfaces. I've done this crude modification, to hobbitgraph.cfg, for now but was wondering if there was a better way get the bandwidth IN/OUT to reflect the current graph and its length of time snapshot
Thanx for your input, also if you see any mistakes in my calculations please let me know. Cheers, Ariel
[mrtg] FNPATTERN mrtg.*\.(.+).rrd TITLE Network Traffic (MRTG) YAXIS Bits/second DEF:inbytes at RRDIDX@=@RRDFN@:ds0:AVERAGE CDEF:in at RRDIDX@=inbytes at RRDIDX@,8,* DEF:outbytes at RRDIDX@=@RRDFN@:ds1:AVERAGE CDEF:out at RRDIDX@=outbytes at RRDIDX@,8,* CDEF:48htotalin at RRDIDX@=inbytes at RRDIDX@,172800,* CDEF:48htotalout at RRDIDX@=outbytes at RRDIDX@,172800,* CDEF:48htotal at RRDIDX@=48htotalout at RRDIDX@,48htotalin at RRDIDX@,+ CDEF:12dtotalin at RRDIDX@=inbytes at RRDIDX@,1036800,* CDEF:12dtotalout at RRDIDX@=outbytes at RRDIDX@,1036800,* CDEF:12dtotal at RRDIDX@=12dtotalout at RRDIDX@,12dtotalin at RRDIDX@,+ CDEF:48dtotalin at RRDIDX@=inbytes at RRDIDX@,4147200,* CDEF:48dtotalout at RRDIDX@=outbytes at RRDIDX@,4147200,* CDEF:48dtotal at RRDIDX@=48dtotalout at RRDIDX@,48dtotalin at RRDIDX@,+ CDEF:576dtotalin at RRDIDX@=inbytes at RRDIDX@,49766400,* CDEF:576dtotalout at RRDIDX@=outbytes at RRDIDX@,49766400,* CDEF:576dtotal at RRDIDX@=576dtotalout at RRDIDX@,576dtotalin at RRDIDX@,+ LINE2:in at RRDIDX@#@COLOR@:@RRDPARAM@ inbound GPRINT:in at RRDIDX@:LAST: \: %10.1lf (cur) GPRINT:in at RRDIDX@:MAX: \: %10.1lf (max) GPRINT:in at RRDIDX@:MIN: \: %10.1lf (min) GPRINT:in at RRDIDX@:AVERAGE: \: %10.1lf (avg)\n LINE2:out at RRDIDX@#@COLOR@:@RRDPARAM@ outbound GPRINT:out at RRDIDX@:LAST: \: %10.1lf (cur) GPRINT:out at RRDIDX@:MAX: \: %10.1lf (max) GPRINT:out at RRDIDX@:MIN: \: %10.1lf (min) GPRINT:out at RRDIDX@:AVERAGE: \: %10.1lf (avg)\n COMMENT: 48h 12d 48d 576d\n GPRINT:48htotalin at RRDIDX@:AVERAGE:Total in \: %7.2lf %sB GPRINT:12dtotalin at RRDIDX@:AVERAGE: \: %7.2lf %sB GPRINT:48dtotalin at RRDIDX@:AVERAGE: \: %7.2lf %sB GPRINT:576dtotalin at RRDIDX@:AVERAGE: \: %7.2lf %sB GPRINT:48htotalout at RRDIDX@:AVERAGE:Total out \: %7.2lf %sB GPRINT:12dtotalout at RRDIDX@:AVERAGE: \: %7.2lf %sB GPRINT:48dtotalout at RRDIDX@:AVERAGE: \: %7.2lf %sB GPRINT:576dtotalout at RRDIDX@:AVERAGE: \: %7.2lf %sB GPRINT:48htotal at RRDIDX@:AVERAGE:Total \: %7.2lf %sB GPRINT:12dtotal at RRDIDX@:AVERAGE: \: %7.2lf %sB GPRINT:48dtotal at RRDIDX@:AVERAGE: \: %7.2lf %sB GPRINT:576dtotal at RRDIDX@:AVERAGE: \: %7.2lf %sB