[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Graphing legend
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Graphing legend
- From: Ralph Mitchell <ralphmitchell (at) gmail.com>
- Date: Fri, 1 May 2009 17:24:14 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=HCWU9vWllwcW8ceqhaLCqPG5jj3HvGD2+slpBahWJw4=; b=GkDqn6Nxnf9GiaNd2Z9n0WXO5v5BB4u4GNA9Qa5UWr5yQCm//HAji2RL6+49lgJyI5 2h7IGcatWUIrrCTtev0tEuR9A/+K8O+2hhnDLwW9SUJPZJc+6/Kd11n4NmpKeU5YmR4L eprrWNOibB9jOV2R6aRsEZl3u/xJSSE2K0lh8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ov0JeqZxBEB18kiW0fbrQ0rgsCrKz+/X+SzmXpDKBL64D/miFjy4P/OFcyFcV1srFE FUBEMe3QhPR4F/4FoWO8Q0bGNNbu4IkdjBVJhaqjK09NisEDPPS31Q017Zp4LMk1glzW +2/plvco/ypvIoawHHV9LOgjhZrSQXYKGabI8=
- References: <A3D12FAD74FC8B46991703F40C182BAB052B5E1267 (at) permls102.wde.woodside.com.au>
On Thu, Apr 30, 2009 at 8:37 PM, Everett, Vernon <
Vernon.Everett (at) woodside.com.au> wrote:
> Hi all
>
> I have noticed, that some graphs appear to have the colour legend at the
> top, and some at the side. (See attached)
>
>
>
> I can't seem to see what in the configs defines the location of the legend.
>
> Can anybody shed any light on this for me?
>
I think I've run into this before... Take a look at the definitions -
[vmstat] looks like this:
DEF:cpu_idl=vmstat.rrd:cpu_idl:AVERAGE
DEF:cpu_usr=vmstat.rrd:cpu_usr:AVERAGE
DEF:cpu_sys=vmstat.rrd:cpu_sys:AVERAGE
AREA:cpu_sys#FF0000:System
STACK:cpu_usr#FFFF00:User
STACK:cpu_idl#00FF00:Idle
and the [disk] entry looks like this:
DEF:p (at) RRDIDX@= (at) RRDFN@:pct:AVERAGE
LINE2:p (at) RRDIDX@# (at) COLOR@:@RRDPARAM@
With multiple disk partitions, that would expand to:
DEF:p (at) RRDIDX@= (at) RRDFN@:pct:AVERAGE
LINE2:p (at) RRDIDX@# (at) COLOR@:@RRDPARAM@
DEF:p (at) RRDIDX@= (at) RRDFN@:pct:AVERAGE
LINE2:p (at) RRDIDX@# (at) COLOR@:@RRDPARAM@
DEF:p (at) RRDIDX@= (at) RRDFN@:pct:AVERAGE
LINE2:p (at) RRDIDX@# (at) COLOR@:@RRDPARAM@
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.
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.
Ralph Mitchell