Xymon Mailing List Archive search

graph with secondary ordinate

6 messages in this thread

list Martin Flemming · Fri, 1 Aug 2014 08:36:12 +0200 (CEST) ·
Hi !

I know, it's more a rrd-question, but how could i
implement a second ordinate on the right side of the graph

e.g.
the values of my Check are

Waiting: 6369
Running: 4114
Available: 5788
Slot Usage: 71.0780926053905 %


and i want to have on the right side the Slot-Usage with percent

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

Thanks & cheers

 	martin
list Martin Flemming · Fri, 8 Aug 2014 08:15:57 +0200 (CEST) ·
quoted from Martin Flemming
On Fri, 1 Aug 2014, Martin Flemming wrote:
Hi !

I know, it's more a rrd-question, but how could i
implement a second ordinate on the right side of the graph

e.g.
the values of my Check are

Waiting: 6369
Running: 4114
Available: 5788
Slot Usage: 71.0780926053905 %


and i want to have on the right side the Slot-Usage with percent

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

Thanks & cheers

	martin

Sorry again,

Is it possible to configre a second y-axis on the right side
for the fourth value "Slot Usage: 71.0780926053905 %" ?

Or is it only possible to split my sges.rrd with SPLITNCV ?

Which i s not my favourite because i will lost my complete history for this test ....

Any hint is welcome :-)

thanks & have a nice weekend


  martin
list Martin Flemming · Fri, 8 Aug 2014 09:27:40 +0200 (CEST) ·
quoted from Martin Flemming
On Fri, 8 Aug 2014, user-ce4a2c883f75@xymon.invalid 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.

Regards,
Henrik
Hi, Henrik !

Thanks for quick response and a possible solution,
it's not very urgent but good to know that it's possible and in near future to use :-)

thanks a lot & cheers,

 	martin
quoted from Martin Flemming

e.g.
the values of my Check are

Waiting: 6369
Running: 4114
Available: 5788
Slot Usage: 71.0780926053905 %


and i want to have on the right side the Slot-Usage with percent

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

Thanks & cheers

	martin
list Henrik Størner · Fri, 08 Aug 2014 16:44:10 +0200 ·
quoted from Martin Flemming
Den 08-08-2014 09:27, Martin Flemming skrev:
On Fri, 8 Aug 2014, user-ce4a2c883f75@xymon.invalid 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.

Regards,
Henrik
list Martin Flemming · Wed, 13 Aug 2014 11:00:09 +0200 (CEST) ·
quoted from Henrik Størner
On Fri, 8 Aug 2014, Henrik Størner wrote:
Den 08-08-2014 09:27, Martin Flemming skrev:
On Fri, 8 Aug 2014, user-ce4a2c883f75@xymon.invalid 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
quoted from Martin Flemming


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
quoted from Martin Flemming
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 %
quoted from Martin Flemming
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 ...

thanks & cheers


        Martin
list Martin Flemming · Thu, 21 Aug 2014 09:52:39 +0200 (CEST) ·
quoted from Martin Flemming
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, user-ce4a2c883f75@xymon.invalid 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