Xymon Mailing List Archive search

Multiple graphs for one test

8 messages in this thread

list Xymon · Mon, 24 Apr 2017 17:32:56 -0400 (EDT) ·
I have a custom test (mytest) that returns multiple pieces of information. The information is showing up on Xymon as expected. I'd like to be able to graph each piece of information separately, but on the same page. Is that possible?

For a simplified example, mytest returns these two pieces of information:

threads
connections

I'm using SPLITNCV to store the results in separate rrd files. That's working.

I'm currently graphing the threads data. I want to graph the connections information on the same mytest page, but in a separate graph.

In other words, I want to have multiple graphs using different rrd data files appear on the same Xymon test page.

Is this possible? Does anyone have a quick sample from graphs.cfg and xymonserver.cfg that can point me in the right direction?

Again, this is a simplified example. The actual test is returning 27 different pieces of information. Some of those are related to each other, some are related to other things. They're all related to the same application, which is why I'd like them to all appear on the same page. Each graph will likely have 2-4 different lines.

Thanks.

Ron
list Galen Johnson · Mon, 24 Apr 2017 21:53:10 +0000 ·
Add a line in xymonserver.cfg named GRAPHS_testname="graph1, graph2, ..."

TL;DR

I believe you just need to add a "GRAPHS" line that describes which graphs you want to show (you should already have them defined in your graphs.cfg file.  I actually use the terabithia rpms which leverages the include files under the .d folders.  This is not special for that build but saves me having to remember to set it up.  For example, I have a test named ssdbbasic...I have a file graphs.d/ssdbbasic.cfg that contains my graph definitions and a file xymonserver.cfg.d/ssdbbasic with the following :

GRAPHS_ssdbbasic="ssdbbasic,ssdbbasic1"

TEST2RRD+=",ssdbbasic=ncv"

SPLITNCV_ssdbbasic="*:GAUGE"

You can even split out your rrd definitions if you need (to make them manageable)

=G=
quoted from Xymon

From: Xymon <xymon-bounces at xymon.com> on behalf of user-3444c6d1f06c@xymon.invalid <user-3444c6d1f06c@xymon.invalid>
Sent: Monday, April 24, 2017 5:32 PM
To: xymon at xymon.com
Subject: [Xymon] Multiple graphs for one test

I have a custom test (mytest) that returns multiple pieces of information. The information is showing up on Xymon as expected. I'd like to be able to graph each piece of information separately, but on the same page. Is that possible?

For a simplified example, mytest returns these two pieces of information:

threads
connections

I'm using SPLITNCV to store the results in separate rrd files. That's working.

I'm currently graphing the threads data. I want to graph the connections information on the same mytest page, but in a separate graph.

In other words, I want to have multiple graphs using different rrd data files appear on the same Xymon test page.

Is this possible? Does anyone have a quick sample from graphs.cfg and xymonserver.cfg that can point me in the right direction?

Again, this is a simplified example. The actual test is returning 27 different pieces of information. Some of those are related to each other, some are related to other things. They're all related to the same application, which is why I'd like them to all appear on the same page. Each graph will likely have 2-4 different lines.

Thanks.

Ron
list Norbert Kriegenburg · Wed, 26 Apr 2017 09:36:27 +0200 ·

What Galen described is the default way to go to add more graphs to a test
page.
This will add every graph at the end of the page sequentially.
If you have more graphs to show i found it not so useful, it will create
huge pages with a lot of scrolling necessary.

But if you have your graph definitions already, and you can see your graphs
by just calling the link directly
(like
http://X.X.X.X/xymon-cgi/showgraph.sh?host=HOST&service=YOURGRAPH&graph_width=576&graph_height=120&first=1&count=1&disp=HOST&graph_start=1492933526&graph_end=1493106326&action=menu
)
you can include these links into your mytest output directly.

Either i include the image and link into the test page output where it fits
into the content, or i create a table with images and links to show several
graphs at once.

F.e. a table with cpu and memory graphs together with some WebSphere
values:

<table> <tr valign="top"> <td>
 <A HREF="
/xymon-cgi/showgraph.sh?host=hostname&amp;service=loadall&amp;disp=hostname&amp;nostale&amp;color=green&amp;action=menu
"><IMG BORDER=0 SRC="
/xymon-cgi/showgraph.sh?host=hostname&amp;service=loadall&amp;graph_width=350&amp;graph_height=100&amp;disp=hostname&amp;nostale&amp;color=green&amp;graph=hourly
" ALT="xymon graph"></A>
</td> <td>
 <A HREF="
/xymon-cgi/showgraph.sh?host=hostname&amp;service=la&amp;disp=hostname&amp;nostale&amp;color=green&amp;action=menu
"><IMG BORDER=0 SRC="
/xymon-cgi/showgraph.sh?host=hostname&amp;service=la&amp;graph_width=350&amp;graph_height=100&amp;disp=hostname&amp;nostale&amp;color=green&amp;graph=hourly
" ALT="xymon graph"></A>
</td> <td>
 <A HREF="
/xymon-cgi/showgraph.sh?host=hostname&amp;service=memory&amp;disp=hostname&amp;nostale&amp;color=green&amp;action=menu
"><IMG BORDER=0 SRC="
/xymon-cgi/showgraph.sh?host=hostname&amp;service=memory&amp;graph_width=350&amp;graph_height=100&amp;disp=hostname&amp;nostale&amp;color=green&amp;graph=hourly
" ALT="xymon graph"></A>
</td> </tr> <tr valign="top"> <td>
 <A HREF="
/xymon-cgi/showgraph.sh?host=hostname&amp;service=websphereJVM_UsedHeap&amp;disp=hostname&amp;nostale&amp;color=green&amp;action=menu
"><IMG BORDER=0 SRC="
/xymon-cgi/showgraph.sh?host=hostname&amp;service=websphereJVM_UsedHeap&amp;graph_width=350&amp;graph_height=100&amp;disp=hostname&amp;nostale&amp;color=green&amp;graph=hourly
" ALT="xymon graph"></A>
</td> <td>
 <A HREF="
/xymon-cgi/showgraph.sh?host=hostname&amp;service=websphereSession_LIVE_COUNT&amp;disp=hostname&amp;nostale&amp;color=green&amp;action=menu
"><IMG BORDER=0 SRC="
/xymon-cgi/showgraph.sh?host=hostname&amp;service=websphereSession_LIVE_COUNT&amp;graph_width=350&amp;graph_height=100&amp;disp=hostname&amp;nostale&amp;color=green&amp;graph=hourly
" ALT="xymon graph"></A>
</td> <td>
 <A HREF="
/xymon-cgi/showgraph.sh?host=hostname&amp;service=websphereJDBC_jdbclhcms_ConnsInUse&amp;disp=hostname&amp;nostale&amp;color=green&amp;action=menu
"><IMG BORDER=0 SRC="
/xymon-cgi/showgraph.sh?host=hostname&amp;service=websphereJDBC_jdbclhcms_ConnsInUse&amp;graph_width=350&amp;graph_height=100&amp;disp=hostname&amp;nostale&amp;color=green&amp;graph=hourly
" ALT="xymon graph"></A>
</td> </tr> <tr valign="top"> <td>
 <A HREF="
/xymon-cgi/showgraph.sh?host=hostname&amp;service=websphereJDBC_jdbclhconf_ConnsInUse&amp;disp=hostname&amp;nostale&amp;color=green&amp;action=menu
"><IMG BORDER=0 SRC="
/xymon-cgi/showgraph.sh?host=hostname&amp;service=websphereJDBC_jdbclhconf_ConnsInUse&amp;graph_width=350&amp;graph_height=100&amp;disp=hostname&amp;nostale&amp;color=green&amp;graph=hourly
" ALT="xymon graph"></A>
</td> <td>
 <A HREF="
/xymon-cgi/showgraph.sh?host=hostname&amp;service=websphereJDBC_jdbclhrep_ConnsInUse&amp;disp=hostname&amp;nostale&amp;color=green&amp;action=menu
"><IMG BORDER=0 SRC="
/xymon-cgi/showgraph.sh?host=hostname&amp;service=websphereJDBC_jdbclhrep_ConnsInUse&amp;graph_width=350&amp;graph_height=100&amp;disp=hostname&amp;nostale&amp;color=green&amp;graph=hourly
" ALT="xymon graph"></A>
</td> <td>
 <A HREF="
/xymon-cgi/showgraph.sh?host=hostname&amp;service=websphereJDBC_jdbcrelusrDS_ConnsInUse&amp;disp=hostname&amp;nostale&amp;color=green&amp;action=menu
"><IMG BORDER=0 SRC="
/xymon-cgi/showgraph.sh?host=hostname&amp;service=websphereJDBC_jdbcrelusrDS_ConnsInUse&amp;graph_width=350&amp;graph_height=100&amp;disp=hostname&amp;nostale&amp;color=green&amp;graph=hourly
" ALT="xymon graph"></A>
</td> </tr> </table>

Consider the use of width and height settings to tune the size of the graph
table to fit into the output page.
Sometimes i create static pages (with Xymon header and footer of course,
'xymonpage' will be your friend) with those tables, and link them directly
(by title keyword) in hosts.cfg.
Very handy if you want to have the same graphs in one view for a 4 node
cluster (it will show the working/not working loadbalancing
immediately...).

If i have a test with more then several values with graphs i prefer just to
add the link and not the image, to avoid oversized pages (sometimes i have
several dozens of values at one page, all with rrd and graphs behind).

HTH

Norbert


From:	Galen Johnson <user-87f955643e3d@xymon.invalid>
To:	"user-3444c6d1f06c@xymon.invalid" <user-3444c6d1f06c@xymon.invalid>,
            "xymon at xymon.com" <xymon at xymon.com>
Date:	25/04/2017 00:09
Subject:	Re: [Xymon] Multiple graphs for one test
Sent by:	"Xymon" <xymon-bounces at xymon.com>
quoted from Galen Johnson


Add a line in xymonserver.cfg named GRAPHS_testname="graph1, graph2, ..."

TL;DR

I believe you just need to add a "GRAPHS" line that describes which graphs
you want to show (you should already have them defined in your graphs.cfg
file.  I actually use the terabithia rpms which leverages the include files
under the .d folders.  This is not special for that build but saves me
having to remember to set it up.  For example, I have a test named
ssdbbasic...I have a file graphs.d/ssdbbasic.cfg that contains my graph
definitions and a file xymonserver.cfg.d/ssdbbasic with the following :

GRAPHS_ssdbbasic="ssdbbasic,ssdbbasic1"

TEST2RRD+=",ssdbbasic=ncv"

SPLITNCV_ssdbbasic="*:GAUGE"

You can even split out your rrd definitions if you need (to make them
manageable)

=G=

From: Xymon <xymon-bounces at xymon.com> on behalf of user-3444c6d1f06c@xymon.invalid
<user-3444c6d1f06c@xymon.invalid>
Sent: Monday, April 24, 2017 5:32 PM
To: xymon at xymon.com
Subject: [Xymon] Multiple graphs for one test

I have a custom test (mytest) that returns multiple pieces of information.
The information is showing up on Xymon as expected. I'd like to be able to
graph each piece of information separately, but on the same page. Is that
possible?

For a simplified example, mytest returns these two pieces of information:

threads
connections

I'm using SPLITNCV to store the results in separate rrd files. That's
working.

I'm currently graphing the threads data. I want to graph the connections
information on the same mytest page, but in a separate graph.

In other words, I want to have multiple graphs using different rrd data
files appear on the same Xymon test page.

Is this possible? Does anyone have a quick sample from graphs.cfg and
xymonserver.cfg that can point me in the right direction?

Again, this is a simplified example. The actual test is returning 27
different pieces of information. Some of those are related to each other,
some are related to other things. They're all related to the same
application, which is why I'd like them to all appear on the same page.
Each graph will likely have 2-4 different lines.

Thanks.

Ron
list Xymon · Wed, 26 Apr 2017 10:37:11 -0400 (EDT) ·
Thanks for the information. I think I followed what you said, but I seem to be missing something along the way.

I have this as part of the TEST2RRD definition in the xymonserver.cfg file:

jboss=ncv

I also have this in the xymonserver.cfg file:

SPLITNCV_jboss="*:GAUGE"
GRAPHS_jboss="jboss,jboss1"

Xymon is creating the jboss,*.rrd files as expected.

In the graphs.cfg file, I have two graphs defined as shown below. The first one graphs two data points and the second one graphs three.

Xymon only displays the graph named "jboss". If I flip the names of the two graph definitions ([jboss] becomes [jboss1] and [jboss1] becomes [jboss]), Xymon still only shows one graph, but now it shows the one with three data points instead of two. (Whichever one defined as [jboss] is the one displayed.)

If I view the graph in my browser, I'm able to manually change the "service=ncv:jboss" in the URL to "service=ncv:jboss1" and see the other graph.

So the data collection is working, the graph definitions are OK, and the graphs are being generated. The only thing left is to get both graphs to display on the same page at the same time.

In case it matters, this is Xymon 4.3.17 running on Fedora 20.

[jboss]
        TITLE JBoss Threads
        YAXIS Threads
        DEF:Peakthreads=jboss,Peak_threads.rrd:lambda:AVERAGE
        DEF:Livethreads=jboss,Live_threads.rrd:lambda:AVERAGE
        LINE2:Peakthreads#00CCCC:Peak threads
        LINE2:Livethreads#CC00CC:Live threads
        COMMENT:\n
        GPRINT:Peakthreads:LAST:Peak threads \: %5.1lf%s (cur)
        GPRINT:Peakthreads:MAX: \: %5.1lf%s (max)
        GPRINT:Peakthreads:MIN: \: %5.1lf%s (min)
        GPRINT:Peakthreads:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:Livethreads:LAST:Peak threads \: %5.1lf%s (cur)
        GPRINT:Livethreads:MAX: \: %5.1lf%s (max)
        GPRINT:Livethreads:MIN: \: %5.1lf%s (min)
        GPRINT:Livethreads:AVERAGE: \: %5.1lf%s (avg)\n

[jboss1]
        TITLE JBoss PermGen
        YAXIS Bytes
        DEF:PermGenComm=jboss,Perm_Gen_Comm.rrd:lambda:AVERAGE
        DEF:PermGenMax=jboss,Perm_Gen_Max.rrd:lambda:AVERAGE
        DEF:PermGenUsed=jboss,Perm_Gen_Used.rrd:lambda:AVERAGE
        LINE2:PermGenComm#00CCCC:Peak threads
        LINE2:PermGenMax#AA00CC:Max threads
        LINE2:PermGenUsed#CC00CC:Used threads
        COMMENT:\n
        GPRINT:PermGenComm:LAST:PermGen committed \: %5.1lf%s (cur)
        GPRINT:PermGenComm:MAX: \: %5.1lf%s (max)
        GPRINT:PermGenComm:MIN: \: %5.1lf%s (min)
        GPRINT:PermGenComm:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:PermGenMax:LAST:PermGen max \: %5.1lf%s (cur)
        GPRINT:PermGenMax:MAX: \: %5.1lf%s (max)
        GPRINT:PermGenMax:MIN: \: %5.1lf%s (min)
        GPRINT:PermGenMax:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:PermGenUsed:LAST:PermGen used \: %5.1lf%s (cur)
        GPRINT:PermGenUsed:MAX: \: %5.1lf%s (max)
        GPRINT:PermGenUsed:MIN: \: %5.1lf%s (min)
        GPRINT:PermGenUsed:AVERAGE: \: %5.1lf%s (avg)\n


Galen Johnson <user-87f955643e3d@xymon.invalid> wrote ..
quoted from Norbert Kriegenburg
Add a line in xymonserver.cfg named GRAPHS_testname="graph1, graph2, ..."

TL;DR

I believe you just need to add a "GRAPHS" line that describes which graphs you
want to show (you should already have them defined in your graphs.cfg file.  I
actually use the terabithia rpms which leverages the include files under the .d
folders.  This is not special for that build but saves me having to remember to
set it up.  For example, I have a test named ssdbbasic...I have a file graphs.d/ssdbbasic.cfg
that contains my graph definitions and a file xymonserver.cfg.d/ssdbbasic with
the following :

GRAPHS_ssdbbasic="ssdbbasic,ssdbbasic1"

TEST2RRD+=",ssdbbasic=ncv"

SPLITNCV_ssdbbasic="*:GAUGE"

You can even split out your rrd definitions if you need (to make them manageable)

=G=

From: Xymon <xymon-bounces at xymon.com> on behalf of user-3444c6d1f06c@xymon.invalid <user-3444c6d1f06c@xymon.invalid>
Sent: Monday, April 24, 2017 5:32 PM
To: xymon at xymon.com
Subject: [Xymon] Multiple graphs for one test

I have a custom test (mytest) that returns multiple pieces of information. The
information is showing up on Xymon as expected. I'd like to be able to graph each
piece of information separately, but on the same page. Is that possible?

For a simplified example, mytest returns these two pieces of information:

threads
connections

I'm using SPLITNCV to store the results in separate rrd files. That's working.

I'm currently graphing the threads data. I want to graph the connections information
on the same mytest page, but in a separate graph.

In other words, I want to have multiple graphs using different rrd data files appear
on the same Xymon test page.

Is this possible? Does anyone have a quick sample from graphs.cfg and xymonserver.cfg
that can point me in the right direction?

Again, this is a simplified example. The actual test is returning 27 different
pieces of information. Some of those are related to each other, some are related
to other things. They're all related to the same application, which is why I'd
like them to all appear on the same page. Each graph will likely have 2-4 different
lines.

Thanks.

Ron

list Scot Kreienkamp · Wed, 26 Apr 2017 14:52:20 +0000 ·
I believe what you're looking for is in cgioptions.cfg.  Here's the relevant line from mine:

# svcstatus.cgi options for a normal (current) status display
CGI_SVC_OPTS="--env=$XYMONENV --no-svcid --history=top --multigraphs=jboss,JMSQueue,cpustat"


Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 |  Office: XXX-XXX-XXXX |  |  Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid
quoted from Xymon
-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of user-3444c6d1f06c@xymon.invalid
Sent: Wednesday, April 26, 2017 10:37 AM
To: Galen Johnson <user-87f955643e3d@xymon.invalid>
Cc: xymon at xymon.com
Subject: Re: [Xymon] Multiple graphs for one test

Thanks for the information. I think I followed what you said, but I seem to be missing something along the way.

I have this as part of the TEST2RRD definition in the xymonserver.cfg file:

jboss=ncv

I also have this in the xymonserver.cfg file:

SPLITNCV_jboss="*:GAUGE"
GRAPHS_jboss="jboss,jboss1"

Xymon is creating the jboss,*.rrd files as expected.

In the graphs.cfg file, I have two graphs defined as shown below. The first one graphs two data points and the second one graphs three.

Xymon only displays the graph named "jboss". If I flip the names of the two graph definitions ([jboss] becomes [jboss1] and [jboss1] becomes [jboss]), Xymon still only shows one graph, but now it shows the one with three data points instead of two. (Whichever one defined as [jboss] is the one displayed.)

If I view the graph in my browser, I'm able to manually change the "service=ncv:jboss" in the URL to "service=ncv:jboss1" and see the other graph.

So the data collection is working, the graph definitions are OK, and the graphs are being generated. The only thing left is to get both graphs to display on the same page at the same time.

In case it matters, this is Xymon 4.3.17 running on Fedora 20.

[jboss]
        TITLE JBoss Threads
        YAXIS Threads
        DEF:Peakthreads=jboss,Peak_threads.rrd:lambda:AVERAGE
        DEF:Livethreads=jboss,Live_threads.rrd:lambda:AVERAGE
        LINE2:Peakthreads#00CCCC:Peak threads
        LINE2:Livethreads#CC00CC:Live threads
        COMMENT:\n
        GPRINT:Peakthreads:LAST:Peak threads \: %5.1lf%s (cur)
        GPRINT:Peakthreads:MAX: \: %5.1lf%s (max)
        GPRINT:Peakthreads:MIN: \: %5.1lf%s (min)
        GPRINT:Peakthreads:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:Livethreads:LAST:Peak threads \: %5.1lf%s (cur)
        GPRINT:Livethreads:MAX: \: %5.1lf%s (max)
        GPRINT:Livethreads:MIN: \: %5.1lf%s (min)
        GPRINT:Livethreads:AVERAGE: \: %5.1lf%s (avg)\n

[jboss1]
        TITLE JBoss PermGen
        YAXIS Bytes
        DEF:PermGenComm=jboss,Perm_Gen_Comm.rrd:lambda:AVERAGE
        DEF:PermGenMax=jboss,Perm_Gen_Max.rrd:lambda:AVERAGE
        DEF:PermGenUsed=jboss,Perm_Gen_Used.rrd:lambda:AVERAGE
        LINE2:PermGenComm#00CCCC:Peak threads
        LINE2:PermGenMax#AA00CC:Max threads
        LINE2:PermGenUsed#CC00CC:Used threads
        COMMENT:\n
        GPRINT:PermGenComm:LAST:PermGen committed \: %5.1lf%s (cur)
        GPRINT:PermGenComm:MAX: \: %5.1lf%s (max)
        GPRINT:PermGenComm:MIN: \: %5.1lf%s (min)
        GPRINT:PermGenComm:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:PermGenMax:LAST:PermGen max \: %5.1lf%s (cur)
        GPRINT:PermGenMax:MAX: \: %5.1lf%s (max)
        GPRINT:PermGenMax:MIN: \: %5.1lf%s (min)
        GPRINT:PermGenMax:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:PermGenUsed:LAST:PermGen used \: %5.1lf%s (cur)
        GPRINT:PermGenUsed:MAX: \: %5.1lf%s (max)
        GPRINT:PermGenUsed:MIN: \: %5.1lf%s (min)
        GPRINT:PermGenUsed:AVERAGE: \: %5.1lf%s (avg)\n


Galen Johnson <user-87f955643e3d@xymon.invalid> wrote ..
Add a line in xymonserver.cfg named GRAPHS_testname="graph1, graph2, ..."

TL;DR

I believe you just need to add a "GRAPHS" line that describes which graphs you
want to show (you should already have them defined in your graphs.cfg file.  I
actually use the terabithia rpms which leverages the include files under the .d
folders.  This is not special for that build but saves me having to remember to
set it up.  For example, I have a test named ssdbbasic...I have a file graphs.d/ssdbbasic.cfg
that contains my graph definitions and a file xymonserver.cfg.d/ssdbbasic with
the following :

GRAPHS_ssdbbasic="ssdbbasic,ssdbbasic1"

TEST2RRD+=",ssdbbasic=ncv"

SPLITNCV_ssdbbasic="*:GAUGE"

You can even split out your rrd definitions if you need (to make them manageable)

=G=

From: Xymon <xymon-bounces at xymon.com> on behalf of user-3444c6d1f06c@xymon.invalid <user-3444c6d1f06c@xymon.invalid>
Sent: Monday, April 24, 2017 5:32 PM
To: xymon at xymon.com
Subject: [Xymon] Multiple graphs for one test

I have a custom test (mytest) that returns multiple pieces of information. The
information is showing up on Xymon as expected. I'd like to be able to graph each
piece of information separately, but on the same page. Is that possible?

For a simplified example, mytest returns these two pieces of information:

threads
connections

I'm using SPLITNCV to store the results in separate rrd files. That's working.

I'm currently graphing the threads data. I want to graph the connections information
on the same mytest page, but in a separate graph.

In other words, I want to have multiple graphs using different rrd data files appear
on the same Xymon test page.

Is this possible? Does anyone have a quick sample from graphs.cfg and xymonserver.cfg
that can point me in the right direction?

Again, this is a simplified example. The actual test is returning 27 different
pieces of information. Some of those are related to each other, some are related
to other things. They're all related to the same application, which is why I'd
like them to all appear on the same page. Each graph will likely have 2-4 different
lines.

Thanks.

Ron

This message is intended only for the individual or entity to which it is addressed.  It may contain privileged, confidential information which is exempt from disclosure under applicable laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
list Galen Johnson · Wed, 26 Apr 2017 14:57:29 +0000 ·
If that fixes the problem, I'd be curious to understand why.  That is not in my configs and I'm running 4.3.28 (terabithia).  I'm fairly certain it worked on 4.3.17 (non-terabithia) but I won't swear to it in court.

=G=
quoted from Scot Kreienkamp

From: Scot Kreienkamp <user-9678697f1438@xymon.invalid>
Sent: Wednesday, April 26, 2017 10:52 AM
To: user-3444c6d1f06c@xymon.invalid; Galen Johnson
Cc: xymon at xymon.com
Subject: RE: [Xymon] Multiple graphs for one test

I believe what you're looking for is in cgioptions.cfg.  Here's the relevant line from mine:

# svcstatus.cgi options for a normal (current) status display
CGI_SVC_OPTS="--env=$XYMONENV --no-svcid --history=top --multigraphs=jboss,JMSQueue,cpustat"


Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 |  Office: XXX-XXX-XXXX |  |  Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid
-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of user-3444c6d1f06c@xymon.invalid
Sent: Wednesday, April 26, 2017 10:37 AM
To: Galen Johnson <user-87f955643e3d@xymon.invalid>
Cc: xymon at xymon.com
Subject: Re: [Xymon] Multiple graphs for one test

Thanks for the information. I think I followed what you said, but I seem to be missing something along the way.

I have this as part of the TEST2RRD definition in the xymonserver.cfg file:

jboss=ncv

I also have this in the xymonserver.cfg file:

SPLITNCV_jboss="*:GAUGE"
GRAPHS_jboss="jboss,jboss1"

Xymon is creating the jboss,*.rrd files as expected.

In the graphs.cfg file, I have two graphs defined as shown below. The first one graphs two data points and the second one graphs three.

Xymon only displays the graph named "jboss". If I flip the names of the two graph definitions ([jboss] becomes [jboss1] and [jboss1] becomes [jboss]), Xymon still only shows one graph, but now it shows the one with three data points instead of two. (Whichever one defined as [jboss] is the one displayed.)

If I view the graph in my browser, I'm able to manually change the "service=ncv:jboss" in the URL to "service=ncv:jboss1" and see the other graph.

So the data collection is working, the graph definitions are OK, and the graphs are being generated. The only thing left is to get both graphs to display on the same page at the same time.

In case it matters, this is Xymon 4.3.17 running on Fedora 20.

[jboss]
        TITLE JBoss Threads
        YAXIS Threads
        DEF:Peakthreads=jboss,Peak_threads.rrd:lambda:AVERAGE
        DEF:Livethreads=jboss,Live_threads.rrd:lambda:AVERAGE
        LINE2:Peakthreads#00CCCC:Peak threads
        LINE2:Livethreads#CC00CC:Live threads
        COMMENT:\n
        GPRINT:Peakthreads:LAST:Peak threads \: %5.1lf%s (cur)
        GPRINT:Peakthreads:MAX: \: %5.1lf%s (max)
        GPRINT:Peakthreads:MIN: \: %5.1lf%s (min)
        GPRINT:Peakthreads:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:Livethreads:LAST:Peak threads \: %5.1lf%s (cur)
        GPRINT:Livethreads:MAX: \: %5.1lf%s (max)
        GPRINT:Livethreads:MIN: \: %5.1lf%s (min)
        GPRINT:Livethreads:AVERAGE: \: %5.1lf%s (avg)\n

[jboss1]
        TITLE JBoss PermGen
        YAXIS Bytes
        DEF:PermGenComm=jboss,Perm_Gen_Comm.rrd:lambda:AVERAGE
        DEF:PermGenMax=jboss,Perm_Gen_Max.rrd:lambda:AVERAGE
        DEF:PermGenUsed=jboss,Perm_Gen_Used.rrd:lambda:AVERAGE
        LINE2:PermGenComm#00CCCC:Peak threads
        LINE2:PermGenMax#AA00CC:Max threads
        LINE2:PermGenUsed#CC00CC:Used threads
        COMMENT:\n
        GPRINT:PermGenComm:LAST:PermGen committed \: %5.1lf%s (cur)
        GPRINT:PermGenComm:MAX: \: %5.1lf%s (max)
        GPRINT:PermGenComm:MIN: \: %5.1lf%s (min)
        GPRINT:PermGenComm:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:PermGenMax:LAST:PermGen max \: %5.1lf%s (cur)
        GPRINT:PermGenMax:MAX: \: %5.1lf%s (max)
        GPRINT:PermGenMax:MIN: \: %5.1lf%s (min)
        GPRINT:PermGenMax:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:PermGenUsed:LAST:PermGen used \: %5.1lf%s (cur)
        GPRINT:PermGenUsed:MAX: \: %5.1lf%s (max)
        GPRINT:PermGenUsed:MIN: \: %5.1lf%s (min)
        GPRINT:PermGenUsed:AVERAGE: \: %5.1lf%s (avg)\n


Galen Johnson <user-87f955643e3d@xymon.invalid> wrote ..
Add a line in xymonserver.cfg named GRAPHS_testname="graph1, graph2, ..."

TL;DR

I believe you just need to add a "GRAPHS" line that describes which graphs you
want to show (you should already have them defined in your graphs.cfg file.  I
actually use the terabithia rpms which leverages the include files under the .d
folders.  This is not special for that build but saves me having to remember to
set it up.  For example, I have a test named ssdbbasic...I have a file graphs.d/ssdbbasic.cfg
that contains my graph definitions and a file xymonserver.cfg.d/ssdbbasic with
the following :

GRAPHS_ssdbbasic="ssdbbasic,ssdbbasic1"

TEST2RRD+=",ssdbbasic=ncv"

SPLITNCV_ssdbbasic="*:GAUGE"

You can even split out your rrd definitions if you need (to make them manageable)

=G=

From: Xymon <xymon-bounces at xymon.com> on behalf of user-3444c6d1f06c@xymon.invalid <user-3444c6d1f06c@xymon.invalid>
Sent: Monday, April 24, 2017 5:32 PM
To: xymon at xymon.com
Subject: [Xymon] Multiple graphs for one test

I have a custom test (mytest) that returns multiple pieces of information. The
information is showing up on Xymon as expected. I'd like to be able to graph each
piece of information separately, but on the same page. Is that possible?

For a simplified example, mytest returns these two pieces of information:

threads
connections

I'm using SPLITNCV to store the results in separate rrd files. That's working.

I'm currently graphing the threads data. I want to graph the connections information
on the same mytest page, but in a separate graph.

In other words, I want to have multiple graphs using different rrd data files appear
on the same Xymon test page.

Is this possible? Does anyone have a quick sample from graphs.cfg and xymonserver.cfg
that can point me in the right direction?

Again, this is a simplified example. The actual test is returning 27 different
pieces of information. Some of those are related to each other, some are related
to other things. They're all related to the same application, which is why I'd
like them to all appear on the same page. Each graph will likely have 2-4 different
lines.

Thanks.

Ron

This message is intended only for the individual or entity to which it is addressed.  It may contain privileged, confidential information which is exempt from disclosure under applicable laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
list Scot Kreienkamp · Wed, 26 Apr 2017 14:59:49 +0000 ·
The multigraphs option tells xymon to graph up to 4 variables on a graph then move to the next graph, on and on, for the test names passed to the multigraphs option.
signature


Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 |  Office: XXX-XXX-XXXX |  |  Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid
-----Original Message-----

quoted from Galen Johnson
From: Galen Johnson [mailto:user-87f955643e3d@xymon.invalid]
Sent: Wednesday, April 26, 2017 10:57 AM
To: Scot Kreienkamp <user-9678697f1438@xymon.invalid>; user-3444c6d1f06c@xymon.invalid
Cc: xymon at xymon.com
Subject: Re: [Xymon] Multiple graphs for one test

If that fixes the problem, I'd be curious to understand why.  That is not in my configs and I'm running 4.3.28 (terabithia).  I'm fairly certain it worked on 4.3.17 (non-terabithia) but I won't swear to it in court.

=G=

From: Scot Kreienkamp <user-9678697f1438@xymon.invalid>
Sent: Wednesday, April 26, 2017 10:52 AM
To: user-3444c6d1f06c@xymon.invalid; Galen Johnson
Cc: xymon at xymon.com
Subject: RE: [Xymon] Multiple graphs for one test

I believe what you're looking for is in cgioptions.cfg.  Here's the relevant line from mine:

# svcstatus.cgi options for a normal (current) status display
CGI_SVC_OPTS="--env=$XYMONENV --no-svcid --history=top --multigraphs=jboss,JMSQueue,cpustat"


-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of user-3444c6d1f06c@xymon.invalid
Sent: Wednesday, April 26, 2017 10:37 AM
To: Galen Johnson <user-87f955643e3d@xymon.invalid>
Cc: xymon at xymon.com
Subject: Re: [Xymon] Multiple graphs for one test

Thanks for the information. I think I followed what you said, but I seem to be missing something along the way.

I have this as part of the TEST2RRD definition in the xymonserver.cfg file:

jboss=ncv

I also have this in the xymonserver.cfg file:

SPLITNCV_jboss="*:GAUGE"
GRAPHS_jboss="jboss,jboss1"

Xymon is creating the jboss,*.rrd files as expected.

In the graphs.cfg file, I have two graphs defined as shown below. The first one graphs two data points and the second one graphs three.

Xymon only displays the graph named "jboss". If I flip the names of the two graph definitions ([jboss] becomes [jboss1] and [jboss1] becomes [jboss]), Xymon still only shows one graph, but now it shows the one with three data points instead of two. (Whichever one defined as [jboss] is the one displayed.)

If I view the graph in my browser, I'm able to manually change the "service=ncv:jboss" in the URL to "service=ncv:jboss1" and see the other graph.

So the data collection is working, the graph definitions are OK, and the graphs are being generated. The only thing left is to get both graphs to display on the same page at the same time.

In case it matters, this is Xymon 4.3.17 running on Fedora 20.

[jboss]
        TITLE JBoss Threads
        YAXIS Threads
        DEF:Peakthreads=jboss,Peak_threads.rrd:lambda:AVERAGE
        DEF:Livethreads=jboss,Live_threads.rrd:lambda:AVERAGE
        LINE2:Peakthreads#00CCCC:Peak threads
        LINE2:Livethreads#CC00CC:Live threads
        COMMENT:\n
        GPRINT:Peakthreads:LAST:Peak threads \: %5.1lf%s (cur)
        GPRINT:Peakthreads:MAX: \: %5.1lf%s (max)
        GPRINT:Peakthreads:MIN: \: %5.1lf%s (min)
        GPRINT:Peakthreads:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:Livethreads:LAST:Peak threads \: %5.1lf%s (cur)
        GPRINT:Livethreads:MAX: \: %5.1lf%s (max)
        GPRINT:Livethreads:MIN: \: %5.1lf%s (min)
        GPRINT:Livethreads:AVERAGE: \: %5.1lf%s (avg)\n

[jboss1]
        TITLE JBoss PermGen
        YAXIS Bytes
        DEF:PermGenComm=jboss,Perm_Gen_Comm.rrd:lambda:AVERAGE
        DEF:PermGenMax=jboss,Perm_Gen_Max.rrd:lambda:AVERAGE
        DEF:PermGenUsed=jboss,Perm_Gen_Used.rrd:lambda:AVERAGE
        LINE2:PermGenComm#00CCCC:Peak threads
        LINE2:PermGenMax#AA00CC:Max threads
        LINE2:PermGenUsed#CC00CC:Used threads
        COMMENT:\n
        GPRINT:PermGenComm:LAST:PermGen committed \: %5.1lf%s (cur)
        GPRINT:PermGenComm:MAX: \: %5.1lf%s (max)
        GPRINT:PermGenComm:MIN: \: %5.1lf%s (min)
        GPRINT:PermGenComm:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:PermGenMax:LAST:PermGen max \: %5.1lf%s (cur)
        GPRINT:PermGenMax:MAX: \: %5.1lf%s (max)
        GPRINT:PermGenMax:MIN: \: %5.1lf%s (min)
        GPRINT:PermGenMax:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:PermGenUsed:LAST:PermGen used \: %5.1lf%s (cur)
        GPRINT:PermGenUsed:MAX: \: %5.1lf%s (max)
        GPRINT:PermGenUsed:MIN: \: %5.1lf%s (min)
        GPRINT:PermGenUsed:AVERAGE: \: %5.1lf%s (avg)\n


Galen Johnson <user-87f955643e3d@xymon.invalid> wrote ..
Add a line in xymonserver.cfg named GRAPHS_testname="graph1, graph2, ..."

TL;DR

I believe you just need to add a "GRAPHS" line that describes which graphs you
want to show (you should already have them defined in your graphs.cfg file.  I
actually use the terabithia rpms which leverages the include files under the .d
folders.  This is not special for that build but saves me having to remember to
set it up.  For example, I have a test named ssdbbasic...I have a file graphs.d/ssdbbasic.cfg
that contains my graph definitions and a file xymonserver.cfg.d/ssdbbasic with
the following :

GRAPHS_ssdbbasic="ssdbbasic,ssdbbasic1"

TEST2RRD+=",ssdbbasic=ncv"

SPLITNCV_ssdbbasic="*:GAUGE"

You can even split out your rrd definitions if you need (to make them manageable)

=G=

From: Xymon <xymon-bounces at xymon.com> on behalf of user-3444c6d1f06c@xymon.invalid <user-3444c6d1f06c@xymon.invalid>
Sent: Monday, April 24, 2017 5:32 PM
To: xymon at xymon.com
Subject: [Xymon] Multiple graphs for one test

I have a custom test (mytest) that returns multiple pieces of information. The
information is showing up on Xymon as expected. I'd like to be able to graph each
piece of information separately, but on the same page. Is that possible?

For a simplified example, mytest returns these two pieces of information:

threads
connections

I'm using SPLITNCV to store the results in separate rrd files. That's working.

I'm currently graphing the threads data. I want to graph the connections information
on the same mytest page, but in a separate graph.

In other words, I want to have multiple graphs using different rrd data files appear
on the same Xymon test page.

Is this possible? Does anyone have a quick sample from graphs.cfg and xymonserver.cfg
that can point me in the right direction?

Again, this is a simplified example. The actual test is returning 27 different
pieces of information. Some of those are related to each other, some are related
to other things. They're all related to the same application, which is why I'd
like them to all appear on the same page. Each graph will likely have 2-4 different
lines.

Thanks.

Ron

This message is intended only for the individual or entity to which it is addressed.  It may contain privileged, confidential information which is exempt from disclosure under applicable laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
list Xymon · Wed, 26 Apr 2017 15:31:15 -0400 (EDT) ·
Adding the --multigraphs=jboss option to the cgioptions.cfg did not fix the problem.

I downloaded the latest version of Xymon and looked through the release notes. It says:

"Which RRD graphs are displayed on a status page can now be customized on
a per-test basis through the use of environment variables. For example,
GRAPHS_cpu="la,vmstat1" will cause an additional graph to be shown on
cpu tests. (Submitted by Werner Maier)"

That feature was added as part of version 4.3.20. I have 4.3.17.

So, the fix to my problem is to upgrade.

Thanks to everyone who offered suggestions.

Ron


Galen Johnson <user-87f955643e3d@xymon.invalid> wrote ..
quoted from Scot Kreienkamp
If that fixes the problem, I'd be curious to understand why.  That is not in my
configs and I'm running 4.3.28 (terabithia).  I'm fairly certain it worked on 4.3.17
(non-terabithia) but I won't swear to it in court.

=G=

From: Scot Kreienkamp <user-9678697f1438@xymon.invalid>
Sent: Wednesday, April 26, 2017 10:52 AM
To: user-3444c6d1f06c@xymon.invalid; Galen Johnson
Cc: xymon at xymon.com
Subject: RE: [Xymon] Multiple graphs for one test

I believe what you're looking for is in cgioptions.cfg.  Here's the relevant line
from mine:

# svcstatus.cgi options for a normal (current) status display
CGI_SVC_OPTS="--env=$XYMONENV --no-svcid --history=top --multigraphs=jboss,JMSQueue,cpustat"


Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 |  Office: XXX-XXX-XXXX |  |  Mobile:

7349151444 | Email: user-9678697f1438@xymon.invalid
quoted from Xymon
-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of user-3444c6d1f06c@xymon.invalid
Sent: Wednesday, April 26, 2017 10:37 AM
To: Galen Johnson <user-87f955643e3d@xymon.invalid>
Cc: xymon at xymon.com
Subject: Re: [Xymon] Multiple graphs for one test

Thanks for the information. I think I followed what you said, but I seem to be
missing something along the way.

I have this as part of the TEST2RRD definition in the xymonserver.cfg file:

jboss=ncv

I also have this in the xymonserver.cfg file:

SPLITNCV_jboss="*:GAUGE"
GRAPHS_jboss="jboss,jboss1"

Xymon is creating the jboss,*.rrd files as expected.

In the graphs.cfg file, I have two graphs defined as shown below. The first one
graphs two data points and the second one graphs three.

Xymon only displays the graph named "jboss". If I flip the names of the two graph
definitions ([jboss] becomes [jboss1] and [jboss1] becomes [jboss]), Xymon still
only shows one graph, but now it shows the one with three data points instead of
two. (Whichever one defined as [jboss] is the one displayed.)

If I view the graph in my browser, I'm able to manually change the "service=ncv:jboss"
in the URL to "service=ncv:jboss1" and see the other graph.

So the data collection is working, the graph definitions are OK, and the graphs
are being generated. The only thing left is to get both graphs to display on the
same page at the same time.

In case it matters, this is Xymon 4.3.17 running on Fedora 20.

[jboss]
        TITLE JBoss Threads
        YAXIS Threads
        DEF:Peakthreads=jboss,Peak_threads.rrd:lambda:AVERAGE
        DEF:Livethreads=jboss,Live_threads.rrd:lambda:AVERAGE
        LINE2:Peakthreads#00CCCC:Peak threads
        LINE2:Livethreads#CC00CC:Live threads
        COMMENT:\n
        GPRINT:Peakthreads:LAST:Peak threads \: %5.1lf%s (cur)
        GPRINT:Peakthreads:MAX: \: %5.1lf%s (max)
        GPRINT:Peakthreads:MIN: \: %5.1lf%s (min)
        GPRINT:Peakthreads:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:Livethreads:LAST:Peak threads \: %5.1lf%s (cur)
        GPRINT:Livethreads:MAX: \: %5.1lf%s (max)
        GPRINT:Livethreads:MIN: \: %5.1lf%s (min)
        GPRINT:Livethreads:AVERAGE: \: %5.1lf%s (avg)\n

[jboss1]
        TITLE JBoss PermGen
        YAXIS Bytes
        DEF:PermGenComm=jboss,Perm_Gen_Comm.rrd:lambda:AVERAGE
        DEF:PermGenMax=jboss,Perm_Gen_Max.rrd:lambda:AVERAGE
        DEF:PermGenUsed=jboss,Perm_Gen_Used.rrd:lambda:AVERAGE
        LINE2:PermGenComm#00CCCC:Peak threads
        LINE2:PermGenMax#AA00CC:Max threads
        LINE2:PermGenUsed#CC00CC:Used threads
        COMMENT:\n
        GPRINT:PermGenComm:LAST:PermGen committed \: %5.1lf%s (cur)
        GPRINT:PermGenComm:MAX: \: %5.1lf%s (max)
        GPRINT:PermGenComm:MIN: \: %5.1lf%s (min)
        GPRINT:PermGenComm:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:PermGenMax:LAST:PermGen max \: %5.1lf%s (cur)
        GPRINT:PermGenMax:MAX: \: %5.1lf%s (max)
        GPRINT:PermGenMax:MIN: \: %5.1lf%s (min)
        GPRINT:PermGenMax:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:PermGenUsed:LAST:PermGen used \: %5.1lf%s (cur)
        GPRINT:PermGenUsed:MAX: \: %5.1lf%s (max)
        GPRINT:PermGenUsed:MIN: \: %5.1lf%s (min)
        GPRINT:PermGenUsed:AVERAGE: \: %5.1lf%s (avg)\n


Galen Johnson <user-87f955643e3d@xymon.invalid> wrote ..
Add a line in xymonserver.cfg named GRAPHS_testname="graph1, graph2, ..."

TL;DR

I believe you just need to add a "GRAPHS" line that describes which graphs you
want to show (you should already have them defined in your graphs.cfg file. 
I
actually use the terabithia rpms which leverages the include files under the
.d
folders.  This is not special for that build but saves me having to remember
to
set it up.  For example, I have a test named ssdbbasic...I have a file graphs.d/ssdbbasic.cfg
that contains my graph definitions and a file xymonserver.cfg.d/ssdbbasic with
the following :

GRAPHS_ssdbbasic="ssdbbasic,ssdbbasic1"

TEST2RRD+=",ssdbbasic=ncv"

SPLITNCV_ssdbbasic="*:GAUGE"

You can even split out your rrd definitions if you need (to make them manageable)

=G=

From: Xymon <xymon-bounces at xymon.com> on behalf of user-3444c6d1f06c@xymon.invalid <user-3444c6d1f06c@xymon.invalid>
Sent: Monday, April 24, 2017 5:32 PM
To: xymon at xymon.com
Subject: [Xymon] Multiple graphs for one test

I have a custom test (mytest) that returns multiple pieces of information. The
information is showing up on Xymon as expected. I'd like to be able to graph
each
piece of information separately, but on the same page. Is that possible?

For a simplified example, mytest returns these two pieces of information:

threads
connections

I'm using SPLITNCV to store the results in separate rrd files. That's working.

I'm currently graphing the threads data. I want to graph the connections information
on the same mytest page, but in a separate graph.

In other words, I want to have multiple graphs using different rrd data files
appear
on the same Xymon test page.

Is this possible? Does anyone have a quick sample from graphs.cfg and xymonserver.cfg
that can point me in the right direction?

Again, this is a simplified example. The actual test is returning 27 different
pieces of information. Some of those are related to each other, some are related
to other things. They're all related to the same application, which is why I'd
like them to all appear on the same page. Each graph will likely have 2-4 different
lines.

Thanks.

Ron

This message is intended only for the individual or entity to which it is addressed.
It may contain privileged, confidential information which is exempt from disclosure
under applicable laws.  If you are not the intended recipient, you are strictly
prohibited from disseminating or distributing this information (other than to the
intended recipient) or copying this information.  If you have received this communication
in error, please notify us immediately by e-mail or by telephone at the above number.
Thank you.