> I want to change the colour of the line depending on the MAX value -
> if it is over a certain value I want a red line, but if it is below I
> want a green line.
> I am assuming I need to call rrdtool twice and fetch the MAX value and
> then use that in my script to determine the colour?
>
> Is this a way to achieve this without a double pass?
Sure, with VDEF and a couple of CDEFS.
Basically this:
if {some statement = true} then values of line1 are orig_values else they
are unknown
if {some statement = false} then values of line2 are unknown else they are
orig_values
now draw line1 in red and line2 in green, do not draw orig_values anymore.
{some statement} is an IF-THEN-ELSE using a VDEF
_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users