<div dir="ltr">Yes you can, but only for a single graph (not multi-graphs like disks).  You can't do calculations to adjust the graph COLOR value, but you can draw more than one graph so that one hides the other and gives the impression of changing colours.<div><br></div><div>Example 1:</div><div><br></div><div><img src="cid:ii_149cbc6911221c3c" alt="Inline images 1" width="463" height="156"> </div><div><br></div><div>This is the config I used, based on the standard [la] definition:</div><div><br></div><div><div><font face="courier new, monospace">[la]</font></div><div><font face="courier new, monospace">        TITLE CPU Load</font></div><div><font face="courier new, monospace">        YAXIS Load</font></div><div><font face="courier new, monospace">        DEF:avg=la.rrd:la:AVERAGE</font></div><div><font face="courier new, monospace">        CDEF:la=avg,100,/</font></div><div><span style="font-family:'courier new',monospace">        CDEF:la_lo=la,0.3,MIN</span><br></div><div><font face="courier new, monospace">        AREA:la#CC0000:CPU Load Average</font></div><div><font face="courier new, monospace">        AREA:la_lo#00CC00:CPU Load Average > 0.3</font></div><div><font face="courier new, monospace">        -u 1.0</font></div><div><font face="courier new, monospace">        GPRINT:la:LAST: \: %5.1lf (cur)</font></div><div><font face="courier new, monospace">        GPRINT:la:MAX: \: %5.1lf (max)</font></div><div><font face="courier new, monospace">        GPRINT:la:MIN: \: %5.1lf (min)</font></div><div><font face="courier new, monospace">        GPRINT:la:AVERAGE: \: %5.1lf (avg)\n</font></div></div><div><br></div><div>What's happening here is that I draw two AREA graphs, the first one showing the normal graph in red, and the second one (which goes in front of the first) with a cap of 0.3 (using "MIN").  So you can see the reds peeking out above the greens.</div><div><br></div><div>Example 2:</div><div><br></div><div><img src="cid:ii_149cbd34d6d61b65" alt="Inline images 2" width="412" height="139"><br></div><div><br></div><div>This is the config I used:</div><div><br></div><div><div><font face="courier new, monospace">[la]</font></div><div><font face="courier new, monospace">        TITLE CPU Load</font></div><div><font face="courier new, monospace">        YAXIS Load</font></div><div><font face="courier new, monospace">        DEF:avg=la.rrd:la:AVERAGE</font></div><div><font face="courier new, monospace">        CDEF:la=avg,100,/</font></div><div><font face="courier new, monospace">        CDEF:la_hi=la,0.3,LT,0,la,IF</font></div><div><font face="courier new, monospace">        AREA:la#00CC00:CPU Load Average</font></div><div><font face="courier new, monospace">        AREA:la_hi#CC0000:CPU Load Average > 0.3</font></div><div><font face="courier new, monospace">        -u 1.0</font></div><div><font face="courier new, monospace">        GPRINT:la:LAST: \: %5.1lf (cur)</font></div><div><font face="courier new, monospace">        GPRINT:la:MAX: \: %5.1lf (max)</font></div><div><font face="courier new, monospace">        GPRINT:la:MIN: \: %5.1lf (min)</font></div><div><font face="courier new, monospace">        GPRINT:la:AVERAGE: \: %5.1lf (avg)\n</font></div></div><div><br></div><div><br></div><div>What's going on here is that I define a new variable "la_hi" which is set to the value of "la", but is then set to zero if it's less than than the threshold - in other words, untouched only if it equals or exceeds the threshold.</div><div><br></div><div>Then I graph the standard "la" graph, and in front of that, I graph the new "la_hi" graph.  Where the "la_hi" is zero, you see the "la" graph peeking through.</div><div><br></div><div>Cheers</div><div>Jeremy</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 20 November 2014 11:47, Steve Brown <span dir="ltr"><<a href="mailto:sgb@pics.com" target="_blank">sgb@pics.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Is it possible to have a custom graph display different colors based on the value and if so can someone help show how?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">For example if the value of the graph is
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">0-80 then color = yellow<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">81-100 then color = green<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">TIA<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><span style="font-size:12.0pt">Steve<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">                                               
<u></u><u></u></span></p>
</font></span></div>
</div>

<br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>