[Xymon] Multiple graphs for one test
Norbert Kriegenburg
norbert.kriegenburg at de.ibm.com
Wed Apr 26 09:36:27 CEST 2017
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&service=loadall&disp=hostname&nostale&color=green&action=menu
"><IMG BORDER=0 SRC="
/xymon-cgi/showgraph.sh?host=hostname&service=loadall&graph_width=350&graph_height=100&disp=hostname&nostale&color=green&graph=hourly
" ALT="xymon graph"></A>
</td> <td>
<A HREF="
/xymon-cgi/showgraph.sh?host=hostname&service=la&disp=hostname&nostale&color=green&action=menu
"><IMG BORDER=0 SRC="
/xymon-cgi/showgraph.sh?host=hostname&service=la&graph_width=350&graph_height=100&disp=hostname&nostale&color=green&graph=hourly
" ALT="xymon graph"></A>
</td> <td>
<A HREF="
/xymon-cgi/showgraph.sh?host=hostname&service=memory&disp=hostname&nostale&color=green&action=menu
"><IMG BORDER=0 SRC="
/xymon-cgi/showgraph.sh?host=hostname&service=memory&graph_width=350&graph_height=100&disp=hostname&nostale&color=green&graph=hourly
" ALT="xymon graph"></A>
</td> </tr> <tr valign="top"> <td>
<A HREF="
/xymon-cgi/showgraph.sh?host=hostname&service=websphereJVM_UsedHeap&disp=hostname&nostale&color=green&action=menu
"><IMG BORDER=0 SRC="
/xymon-cgi/showgraph.sh?host=hostname&service=websphereJVM_UsedHeap&graph_width=350&graph_height=100&disp=hostname&nostale&color=green&graph=hourly
" ALT="xymon graph"></A>
</td> <td>
<A HREF="
/xymon-cgi/showgraph.sh?host=hostname&service=websphereSession_LIVE_COUNT&disp=hostname&nostale&color=green&action=menu
"><IMG BORDER=0 SRC="
/xymon-cgi/showgraph.sh?host=hostname&service=websphereSession_LIVE_COUNT&graph_width=350&graph_height=100&disp=hostname&nostale&color=green&graph=hourly
" ALT="xymon graph"></A>
</td> <td>
<A HREF="
/xymon-cgi/showgraph.sh?host=hostname&service=websphereJDBC_jdbclhcms_ConnsInUse&disp=hostname&nostale&color=green&action=menu
"><IMG BORDER=0 SRC="
/xymon-cgi/showgraph.sh?host=hostname&service=websphereJDBC_jdbclhcms_ConnsInUse&graph_width=350&graph_height=100&disp=hostname&nostale&color=green&graph=hourly
" ALT="xymon graph"></A>
</td> </tr> <tr valign="top"> <td>
<A HREF="
/xymon-cgi/showgraph.sh?host=hostname&service=websphereJDBC_jdbclhconf_ConnsInUse&disp=hostname&nostale&color=green&action=menu
"><IMG BORDER=0 SRC="
/xymon-cgi/showgraph.sh?host=hostname&service=websphereJDBC_jdbclhconf_ConnsInUse&graph_width=350&graph_height=100&disp=hostname&nostale&color=green&graph=hourly
" ALT="xymon graph"></A>
</td> <td>
<A HREF="
/xymon-cgi/showgraph.sh?host=hostname&service=websphereJDBC_jdbclhrep_ConnsInUse&disp=hostname&nostale&color=green&action=menu
"><IMG BORDER=0 SRC="
/xymon-cgi/showgraph.sh?host=hostname&service=websphereJDBC_jdbclhrep_ConnsInUse&graph_width=350&graph_height=100&disp=hostname&nostale&color=green&graph=hourly
" ALT="xymon graph"></A>
</td> <td>
<A HREF="
/xymon-cgi/showgraph.sh?host=hostname&service=websphereJDBC_jdbcrelusrDS_ConnsInUse&disp=hostname&nostale&color=green&action=menu
"><IMG BORDER=0 SRC="
/xymon-cgi/showgraph.sh?host=hostname&service=websphereJDBC_jdbcrelusrDS_ConnsInUse&graph_width=350&graph_height=100&disp=hostname&nostale&color=green&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 <Galen.Johnson at sas.com>
To: "xymon at asitshouldbe.com" <xymon at asitshouldbe.com>,
"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>
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 xymon at asitshouldbe.com
<xymon at asitshouldbe.com>
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
_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20170426/ad1aa182/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20170426/ad1aa182/attachment.gif>
More information about the Xymon
mailing list