[Xymon] graph with secondary ordinate

Martin Flemming martin.flemming at desy.de
Thu Aug 21 09:52:39 CEST 2014


On Wed, 13 Aug 2014, Martin Flemming wrote:

> On Fri, 8 Aug 2014, Henrik Størner wrote:
>
>> Den 08-08-2014 09:27, Martin Flemming skrev:
>>> On Fri, 8 Aug 2014, henrik at hswn.dk wrote:
>>> 
>>>> Den 2014-08-01 08:36, Martin Flemming skrev:
>>>>> Hi !
>>>>> 
>>>>> I know, it's more a rrd-question, but how could i
>>>>> implement a second ordinate on the right side of the graph
>>>> 
>>>> The Xymon site has one such graph - the "ups" graph on the
>>>> blixen.hswn.dk server. see this:
>>>> https://www.xymon.com/xymon-cgi/svcstatus.sh?HOST=blixen.hswn.dk&SERVICE=ups
>>>> 
>>>> The graph definition is at
>>>> https://www.xymon.com/xymon-cgi/viewconf.sh?graph (scroll to the
>>>> bottom).
>>>> 
>>>> As I recall, it did require a small patch to the xymongraph code,
>>>> really due to a bug in the rrd API interface. I'll see if I can dig
>>>> it up later today. One thing that does not work, though, is the zoom
>>>> funtion.
>>> 
>> No patch needed, you just have to split each of the extra option-names
>> and parameters on separate lines, like I do in the [ups] definition in
>> graphs.cfg.
>> 
>
> Hi !
>
> Indeed to generate a second ordinate works out of the box, thanks a lot :-)
>
>
> But unfortuntley i couldn't bind my fourth value to this new second ordiante
>
>
> this means
>
>
> Waiting: 6369
> Running: 4114
> Available: 5788
> Slot Usage: 71.0780926053905 %
>
>
> my graph definition looks like
>
> [sges]
> TITLE BIRD JOBS
> YAXIS Jobs
> DEF:running=sges.rrd:Running:AVERAGE
> LINE2:running#FFCCCC:Number of running jobs
> COMMENT:\n
> GPRINT:running:LAST:running Jobs \: %5.1lf%s (cur)
> GPRINT:running:MAX: \: %5.1lf%s (max)
> GPRINT:running:MIN: \: %5.1lf%s (min)
> GPRINT:running:AVERAGE: \: %5.1lf%s (avg)\n
>
>
> DEF:available=sges.rrd:Available:AVERAGE
> LINE2:available#000099:Number of available Slots
> COMMENT:\n
> GPRINT:available:LAST:available Slots \: %5.1lf%s (cur)
> GPRINT:available:MAX: \: %5.1lf%s (max)
> GPRINT:available:MIN: \: %5.1lf%s (min)
> GPRINT:available:AVERAGE: \: %5.1lf%s (avg)\n
>
> DEF:usage=sges.rrd:SlotUsage:AVERAGE
> LINE2:usage#8C1717:Usage in %
> COMMENT:\n
> GPRINT:usage:LAST:Usage  \: %5.1lf%s (cur)
> GPRINT:usage:MAX: \: %5.1lf%s (max)
> GPRINT:usage:MIN: \: %5.1lf%s (min)
> GPRINT:usage:AVERAGE: \: %5.1lf%s (avg)\n
>
> [sges]
> TITLE BIRD JOBS
> YAXIS Jobs
> DEF:running=sges.rrd:Running:AVERAGE
> LINE2:running#0000FF:Number of running jobs
> COMMENT:\n
> GPRINT:running:LAST:running Jobs \: %5.1lf%s (cur)
> GPRINT:running:MAX: \: %5.1lf%s (max)
> GPRINT:running:MIN: \: %5.1lf%s (min)
> GPRINT:running:AVERAGE: \: %5.1lf%s (avg)\n
>
>
> DEF:waiting=sges.rrd:Waiting:AVERAGE
> LINE2:waiting#FF0000:Number of waiting jobs
> COMMENT:\n
> GPRINT:running:LAST:waiting Jobs \: %5.1lf%s (cur)
> GPRINT:running:MAX: \: %5.1lf%s (max)
> GPRINT:running:MIN: \: %5.1lf%s (min)
> GPRINT:running:AVERAGE: \: %5.1lf%s (avg)\n
>
>
> DEF:usage=sges.rrd:SlotUsage:AVERAGE
> LINE2:usage#8C8717:Usage in %
> COMMENT:\n
> GPRINT:usage:LAST:Usage  \: %5.1lf%s (cur)
> GPRINT:usage:MAX: \: %5.1lf%s (max)
> GPRINT:usage:MIN: \: %5.1lf%s (min)
> GPRINT:usage:AVERAGE: \: %5.1lf%s (avg)\n
> --right-axis
> 0.002:0
> --right-axis-label
> Usage
>
>
>
> My right ordinate shows 0-100 Usage but the designated line
> for "Usage in %" is bind to the left ordinate .. :-(
>
> Something is still missing ...



Sorry, for bugging you again ... but it is possible to bind my fourth 
value (Slot Usage: 71.0780926053905 %) to the new second ordinate on left side 
and  how ?

thanks in advance

 	martin


More information about the Xymon mailing list