<div dir="ltr"><div>I have two problems I am struggling to solve, I am hoping somebody would be willing to assist me?</div>
<div> </div>
<div>I am collecting data with MRTG (logformat=rrd) and then use the Perl RRD module to create my graphs.</div>
<div> </div>
<div>Here is part of a simple script I use:</div>
<div> </div>
<div>....</div>
<div> </div>
<div>"DEF:IfIn=$rrd_location/$file1.rrd:ds0:AVERAGE",<br>"DEF:IfInMax=$rrd_location/$file1.rrd:ds0:MAX",</div>
<div> </div>
<div>"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",</div>
<div> </div>
<div>"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",</div>
<div> </div>
<div>....</div>
<div> </div>
<div>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?</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>Thankyou in advance.</div>
<div> </div>
<div> </div>
<div> </div></div>