Custom test- stats graphs and verbose text displayed on one page?
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
Try adding to TEST2RRD like so:
TEST2RRD=....,ABC=ABC_stats,...
On Thu, Jul 26, 2012 at 4:02 AM, Betsy Schwartz <betsy.schwartz at gmail.com>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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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.
On Fri, Jul 27, 2012 at 3:18 AM, Betsy Schwartz <betsy.schwartz at gmail.com>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
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?
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.
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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&...
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
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"
From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Betsy Schwartz [betsy.schwartz at gmail.com] 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&...
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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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
participants (4)
-
betsy.schwartz@gmail.com
-
jlaidman@rebel-it.com.au
-
spah@syntec.co.uk
-
tm@freedom.com