[Xymon] Multiple graphs for one test
xymon at asitshouldbe.com
xymon at asitshouldbe.com
Wed Apr 26 16:37:11 CEST 2017
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 <Galen.Johnson at sas.com> 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 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
>
>
More information about the Xymon
mailing list