<div class="gmail_quote">On Thu, Apr 30, 2009 at 8:37 PM, Everett, Vernon <span dir="ltr"><<a href="mailto:Vernon.Everett@woodside.com.au">Vernon.Everett@woodside.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">







<div>
<font face="Arial, sans-serif" size="2">
<div>Hi all</div>
<div> </div>
<div>I have noticed, that some graphs appear to have the colour legend at the top, and some at the side. (See attached)</div>
<div> </div>
<div><img src="cid:f0f61d3c-37c4-4f50-81f5-b5c8b34dfccd"> </div>
<div> </div>
<div><img src="cid:cbad4f60-51a8-42f8-828e-7091bb1ffac8"> </div>
<div> </div>
<div>I can't seem to see what in the configs defines the location of the legend.</div>
<div> </div>
<div>Can anybody shed any light on this for me?</div></font></div></blockquote><div><br>I think I've run into this before...  Take a look at the definitions - [vmstat] looks like this:<br><br>        DEF:cpu_idl=vmstat.rrd:cpu_idl:AVERAGE<br>
        DEF:cpu_usr=vmstat.rrd:cpu_usr:AVERAGE<br>        DEF:cpu_sys=vmstat.rrd:cpu_sys:AVERAGE<br>        AREA:cpu_sys#FF0000:System<br>        STACK:cpu_usr#FFFF00:User<br>        STACK:cpu_idl#00FF00:Idle<br><br>and the [disk] entry looks like this:<br>
<br>        DEF:p@RRDIDX@=@RRDFN@:pct:AVERAGE<br>        LINE2:p@RRDIDX@#@COLOR@:@RRDPARAM@<br><br>With multiple disk partitions, that would expand to:<br><br>        DEF:p@RRDIDX@=@RRDFN@:pct:AVERAGE<br>        LINE2:p@RRDIDX@#@COLOR@:@RRDPARAM@<br>
        DEF:p@RRDIDX@=@RRDFN@:pct:AVERAGE<br>        LINE2:p@RRDIDX@#@COLOR@:@RRDPARAM@<br>        DEF:p@RRDIDX@=@RRDFN@:pct:AVERAGE<br>        LINE2:p@RRDIDX@#@COLOR@:@RRDPARAM@<br><br>I *think* what happens is that when you have the DEF lines all stacked together (as in vmstat), you get the color legend across the top.  When you have the DEF lines alternating between the line/area drawing lines (as in disk), you get the color dots at the start of each line.<br>
<br>I don't currently having a working xymon, so I can't try this, but you could check that by altering the vmstat entry to alternate the DEF and area drawing lines to see what happens.<br><br>Ralph Mitchell<br><br>
</div></div>