multiple graphs in detail test view
list Eric E *hs Schwimmer
Hi all,
I've got Devmon collecting rrd data now, which will hopefully let me
(and others)
eschew with having to run MRTG. I've got a quick question, however.
Right now
I'm just testing things with my if_load test, under which I have 5 or 6
interfaces dumping data into separate rrd files (with inbound and
outbound
load data in each file).
Now, my question is, is it possible, in the if_load test page, to
make hobbit display a separate graph for each interface? For instance,
I have ifcs Gi0/1 and Gi0/2 on a switch dumping data into two separate
files (if_load.gi0_1.rrd and if_load.gi0_2.rrd, respectively).
My hobbitgraphs.cfg stanza looks something like:
[if_load]
FNPATTERN if_load.(.*).rrd
TITLE load test
YAXIS Percent
DEF:loadin at RRDIDX@=@RRDFN@:loadin:AVERAGE
DEF:loadout at RRDIDX@=@RRDFN@:loadout:AVERAGE
LINE2:loadin at RRDIDX@#@COLOR@:@RRDPARAM@ load in
GPRINT:loadin at RRDIDX@:LAST: \: %5.1lf (cur)
GPRINT:loadin at RRDIDX@:MAX: \: %5.1lf (max)
GPRINT:loadin at RRDIDX@:MIN: \: %5.1lf (min)
GPRINT:loadin at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n
LINE2:loadout at RRDIDX@#@COLOR@:@RRDPARAM@ load out
GPRINT:loadout at RRDIDX@:LAST: \: %5.1lf (cur)
GPRINT:loadout at RRDIDX@:MAX: \: %5.1lf (max)
GPRINT:loadout at RRDIDX@:MIN: \: %5.1lf (min)
GPRINT:loadout at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n
I want to each ifc to display a separate graph, as things can
get muddled when you have 20 different ifcs on one graph. Is this
possible?
And, if so, is it possible to do on a global basis (i.e. not on a
host-by-host
basis in the bb-hosts file).
TIA,
-Eric
list Henrik Størner
▸
On Wed, Mar 08, 2006 at 05:11:15PM -0500, Schwimmer, Eric E *HS wrote:
Now, my question is, is it possible, in the if_load test page, to
make hobbit display a separate graph for each interface? For instance,
I have ifcs Gi0/1 and Gi0/2 on a switch dumping data into two separate
files (if_load.gi0_1.rrd and if_load.gi0_2.rrd, respectively).
My hobbitgraphs.cfg stanza looks something like:
[if_load]
FNPATTERN if_load.(.*).rrd
TITLE load test[snip]
I want to each ifc to display a separate graph, as things can get muddled when you have 20 different ifcs on one graph. Is this possible?
This is like the disk graphs that get split up onto multiple graphs of 5 filesystems each. Yes, you can do that. First, you must tell the hobbitsvc.cgi tool which displays the status page that the if_load graph should split into multiple graphs like the disk graph. So edit your etc/hobbitcgi.cfg file: In the CGI_SVC_OPTS setting, add "--multi-graphs=disk,inode,qtree,if_load" By default, it shows max. 5 per graph. You want max 2. So in hobbitserver.cfg, make sure the GRAPHS setting contains "if_load::2" That should do it. And no, it's not something I've done a lot of testing of :-) So let me know if it works. Regards, Henrik
list Eric E *hs Schwimmer
It works, with some interesting side effects :) Edited my hobbitcgi.cfg file and added the "--multigraphs=disk,if_load" statement (the arguments and their order don't seem to matter, as long as if_load is in there). At this point, my graph was as it was before (to be expected, since I hadnt edited my hobbitserver.cfg yet), however, 14 additional graphs, all of them blank, appeared (in the html source code, the graph block was prefaced by a "<!-- linecount=59 -->" comment. The urls are all the same, /w the exception of the "first" argument that gets passed to hobbitgraph.sh; it gets incremented by 4 on every link (which, incidently, is what the 'count' argument is set to). Now, when I edit my hobbitserver.cfg and edit the if_load portion of the GRAPHS option to appear as "if_load::2," my graphs appear correctly (i.e one graph to an ifc). Yay! However, now the blank graph count has nearly quadrupled to 57. Aiieee! The urls are still nearly identical, with first counting up to 59, but now by increments of 1 (which is what 'count' is set to). Tried fiddling with various knobs and buttons, but couldn't find anything that caused positive changes... -Eric
▸
-----Original Message----- From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Thursday, March 09, 2006 1:36 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] multiple graphs in detail test view On Wed, Mar 08, 2006 at 05:11:15PM -0500, Schwimmer, Eric E *HS wrote:Now, my question is, is it possible, in the if_load test page, to > make hobbit display a separate graph for each interface? For instance, > I have ifcs Gi0/1 and Gi0/2 on a switch dumping data into two separate files (if_load.gi0_1.rrd and if_load.gi0_2.rrd, respectively).My hobbitgraphs.cfg stanza looks something like: [if_load]FNPATTERN if_load.(.*).rrd TITLE load test[snip]I want to each ifc to display a separate graph, as things can get muddled when you have 20 different ifcs on one graph. Is this possible?This is like the disk graphs that get split up onto multiple graphs of 5 filesystems each. Yes, you can do that. First, you must tell the hobbitsvc.cgi tool which displays the status page that the if_load graph should split into multiple graphs like the disk graph. So edit your etc/hobbitcgi.cfg file: In the CGI_SVC_OPTS setting, add "--multi-graphs=disk,inode,qtree,if_load" By default, it shows max. 5 per graph. You want max 2. So in hobbitserver.cfg, make sure the GRAPHS setting contains "if_load::2" That should do it. And no, it's not something I've done a lot of testing of :-) So let me know if it works. Regards, Henrik