Xymon Mailing List Archive search

Custom test- stats graphs and verbose text displayed on one page?

8 messages in this thread

list Betsy Schwartz · Wed, 25 Jul 2012 14:02:09 -0400 ·
I'm writing a custom test, call it "ABC", with a fair amount  of
verbose output. The test works fine.
When I send just the colon-separated statistics to a separate test
page, call it ABC_stats,  the ABC_stats RRD graphs work fine.

But I'm wondering, is there a way to get the ABC_stats graphs  onto
the ABC output page?
I tried sending it all together but RRDtool choked on the unexpected data.

Sample  ABC output:

 Total : 460599
 Success : 450123
 Failed : 10472

 Files examined
  /data/foo/bar/yadda.20120725.log
  /data/foo/bar/yadda.20120726.log

Errors:
  /data/foo/bar/yadda.20120725.log had value XYZ outside the expected range
 /data/foo/bar/yadda.20120725.log had value ABC with incomplete data
list Jeremy Laidman · Thu, 26 Jul 2012 13:59:12 +1000 ·
Try adding to TEST2RRD like so:

  TEST2RRD=....,ABC=ABC_stats,...
quoted from Betsy Schwartz


On Thu, Jul 26, 2012 at 4:02 AM, Betsy Schwartz <user-c61747246f66@xymon.invalid>wrote:
I'm writing a custom test, call it "ABC", with a fair amount  of
verbose output. The test works fine.
When I send just the colon-separated statistics to a separate test
page, call it ABC_stats,  the ABC_stats RRD graphs work fine.

But I'm wondering, is there a way to get the ABC_stats graphs  onto
the ABC output page?
I tried sending it all together but RRDtool choked on the unexpected data.

Sample  ABC output:

 Total : 460599
 Success : 450123
 Failed : 10472

 Files examined
  /data/foo/bar/yadda.20120725.log
  /data/foo/bar/yadda.20120726.log

Errors:
  /data/foo/bar/yadda.20120725.log had value XYZ outside the expected range
 /data/foo/bar/yadda.20120725.log had value ABC with incomplete data

list Betsy Schwartz · Thu, 26 Jul 2012 13:18:42 -0400 ·
Thank you both!!

"*:NONE" was the right magic to keep  RRD from choking on the non-NCV input

Now my second question is - can I get a second graph?

I've got data coming in that looks like this:

Total : 460599
Success : 450123
TotalFailed : 10000
TempFailed: 8000
FooFailed:  1000
BarFailed: 300
OtherFail: 800

Since Failed is an order of magnitude smaller than succeeded (good for
business!) the failed line is just a blur at the bottom of the graph.
It would be nice to have a second graph that just plotted types of
failure against total failure. Can I do this? I wrote another section
in graphs.cfg called ABCerror but I'm not having much luck getting it
to show up anywhere . I added it to the GRAPHS section of
xymonserver.cfg hoping it would show up under "trends" but no joy.
list Jeremy Laidman · Fri, 27 Jul 2012 16:00:55 +1000 ·
On Fri, Jul 27, 2012 at 3:18 AM, Betsy Schwartz <user-c61747246f66@xymon.invalid>wrote:
Thank you both!!
Most welcome!

Now my second question is - can I get a second graph?
In  hosts.cfg, append "TRENDS:*,ABC:ABC_stats,ABCerror" to the host you are
monitoring.  This should show both graphs on the trends page.

J
list Sebastian Auriol · Mon, 30 Jul 2012 18:05:38 +0100 ·
Hi Betsy,

What you want is a 2nd axis on the same graph. Or it least that should do.
Search the mailing list for rrd 2nd axis or something. I had a discussion
there recently. Or if you don't care about the WHY, just add something like
this to your graphs.cfg entry:

	--right-axis
	0.1:0
	--right-axis-label
	MyLabel

Kind regards, 

SebA 
-----Original Message-----
From: xymon-bounces at xymon.com 
[mailto:xymon-bounces at xymon.com] On Behalf Of Betsy Schwartz
Sent: 26 July 2012 18:19
To: xymon at xymon.com
Subject: Re: [Xymon] Custom test- stats graphs and verbose 
text displayed onone page?
quoted from Betsy Schwartz

Thank you both!!

"*:NONE" was the right magic to keep  RRD from choking on the 
non-NCV input

Now my second question is - can I get a second graph?

I've got data coming in that looks like this:

Total : 460599
Success : 450123
TotalFailed : 10000
TempFailed: 8000
FooFailed:  1000
BarFailed: 300
OtherFail: 800

Since Failed is an order of magnitude smaller than succeeded (good for
business!) the failed line is just a blur at the bottom of the graph.
It would be nice to have a second graph that just plotted types of
failure against total failure. Can I do this? I wrote another section
in graphs.cfg called ABCerror but I'm not having much luck getting it
to show up anywhere . I added it to the GRAPHS section of
xymonserver.cfg hoping it would show up under "trends" but no joy.

list Betsy Schwartz · Fri, 3 Aug 2012 15:37:48 -0400 ·
I'm *most* of the way there but stuck on the last piece. My goal was
to take my stats  that look like this:

 Total : 331539
 Success : 323057
 Temp_Errors : 203
 Other_Errors : 8276
 Total_Errors : 8479
 Percent_Failure : 2.56%

and make an *additional* separate graph plotting types of errors
against total errors (as when I use just one graph, success is so
large that the errors are a blur along the X axis.)

I've defined the graph in graphs.cfg, and added it in hosts.cfg like so:

10.1.2.3    myhost.example.com  # TRENDS:*,ABC,abcstats,abcerror

However the graph is not showing up in trends or anywhere else.
Trends does show ABC and abcstats, and I can see the abcerror graph
when I manually enter this link:

http://xymon.example.com/xymon-cgi/showgraph.sh?host=myhost.example.com.com&service=abcerror&graph_width=576&graph_height=120&first=1&count=1&disp=myhost.example.com&graph_start=1343846492&graph_end=1344019292&action=menu

So now all I need to do is to get it *somewhere* where people can see
it. On the TRENDS page, or better yet on the ABC test page .

thanks Betsy
list Tim McCloskey · Fri, 3 Aug 2012 13:02:04 -0700 ·
I haven't followed this thread so, for what it's worth...

On my older version of hobbit it was necessary to add to hobbitserver.cfg.  I don't know if this requirement still exists, so just delete this mesasge if it's no longer required :)

Example from three vars in that file:

TEST2RRD="cpu=lots of other stuff...,slab=NCV"
GRAPHS="la,ditto,slab"
NCV_slab="inodecache:GAUGE,dentrycache:GAUGE"
quoted from Betsy Schwartz


From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Betsy Schwartz [user-c61747246f66@xymon.invalid]
Sent: Friday, August 03, 2012 12:37 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Custom test- stats graphs and verbose text displayed onone page?

I'm *most* of the way there but stuck on the last piece. My goal was
to take my stats  that look like this:

 Total : 331539
 Success : 323057
 Temp_Errors : 203
 Other_Errors : 8276
 Total_Errors : 8479
 Percent_Failure : 2.56%

and make an *additional* separate graph plotting types of errors
against total errors (as when I use just one graph, success is so
large that the errors are a blur along the X axis.)

I've defined the graph in graphs.cfg, and added it in hosts.cfg like so:

10.1.2.3    myhost.example.com  # TRENDS:*,ABC,abcstats,abcerror

However the graph is not showing up in trends or anywhere else.
Trends does show ABC and abcstats, and I can see the abcerror graph
when I manually enter this link:

http://xymon.example.com/xymon-cgi/showgraph.sh?host=myhost.example.com.com&service=abcerror&graph_width=576&graph_height=120&first=1&count=1&disp=myhost.example.com&graph_start=1343846492&graph_end=1344019292&action=menu

So now all I need to do is to get it *somewhere* where people can see
it. On the TRENDS page, or better yet on the ABC test page .

thanks Betsy
list Betsy Schwartz · Fri, 3 Aug 2012 16:29:07 -0400 ·
TEST2RRD="cpu=lots of other stuff...,slab=NCV"
GRAPHS="la,ditto,slab"
NCV_slab="inodecache:GAUGE,dentrycache:GAUGE"

Thanks! I did add it to GRAPHS but not to the other two because I
thought they were involved in the RRD file creation.

The graph does work if I explicitly link to it... but I want it to
show up under a dot somewhere

thanks Betsy