[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [hobbit] multiple graphs in detail test view



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:henrik (at) hswn.dk] 
> Sent: Thursday, March 09, 2006 1:36 AM
> To: hobbit (at) hswn.dk
> 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
> 
> 
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
> 
>