<div dir="ltr">I have two problems I am struggling to solve, I am hoping somebody would be willing to assist me?<br> <br>I am collecting data with MRTG (logformat=rrd) and then use the Perl RRD module to create my graphs.<br>
<br>Here is part of a simple script I use:<br> <br>....<br> <br>"DEF:IfIn=$rrd_location/$file1.rrd:ds0:AVERAGE",<br>"DEF:IfInMax=$rrd_location/$file1.rrd:ds0:MAX",<br> <br>"GPRINT:IfInMax:LAST:%1.0lf%s",<br>
"GPRINT:IfInMax:AVERAGE:%1.0lf%s",<br>"GPRINT:IfInMax:MIN:%1.0lf%s",<br>"GPRINT:IfInMax:MAX:%1.0lf%s\\n",<br> <br>"GPRINT:IfIn:LAST:%1.0lf%s",<br>"GPRINT:IfIn:AVERAGE:%1.0lf%s",<br>
"GPRINT:IfIn:MIN:%1.0lf%s",<br>"GPRINT:IfIn:MAX:%1.0lf%s\\n",<br> <br>....<br> <br>The first problem is that the MAX and AVERAGE values are always the same for hourly and daily reports. For greater time frames, say yearly, I get the expected different values?<br>
<br>Secondly, can somebody, using the abox example show me how to get everything into nice neet and tidy colums, my values are getting printed all over the place and I can't seem to get the spacing correct.<br> <br>Thankyou in advance.</div>