[rrd-users] rrdgraph autoscale to max value?

Warren Yang warreny at gmail.com
Thu Oct 2 22:05:57 CEST 2008

Figured a way around this after finding the RPN man page (duh).  If
anyone is curious, I used a couple CDEF lines to check if the value
pulled from the rrd exceeded a certain value and then an IF to push a
max value if so.  This artificially caps the graph's max at a value
set by me.

            $series =
"DEF:'bytes_in_raw'='${rrd_dir}/bytes_in.rrd':'sum':AVERAGE "
               ."CDEF:'bytes_in_gt_1GB'=1073741824,bytes_in_raw,GT "
               ."CDEF:'bytes_in'=bytes_in_gt_1GB,bytes_in_raw,1073741824,IF "

series is presented to rrdtool later in the script.


On Wed, Oct 1, 2008 at 10:39 AM, Warren Yang <warreny at gmail.com> wrote:
> Hi folks,
> I'm working with an rrdtool 1.2.23 installation - is there a way to
> set the upper-limit on a graph, but autoscale up to that point?  I
> want to be able to do normal autoscaling behavior with an upper bound.
>  Setting upper-limit fixes the scale...I suspect I may be able to do
> it with some *DEF trickery, but I'm hoping there's an easier way.
> Thanks,
> Warren

More information about the rrd-users mailing list