Re: [cricket-users] directory-desc, and non-usage graphs.

From: Nathan Alan Haneysmith (nathan@cybertrails.com)
Date: Sat Jan 15 2000 - 14:10:13 PST


From: Nathan Alan Haneysmith <nathan@cybertrails.com>

Hi Matt,

Regarding your first question, so when you go to view the graphs it is
displaying a blank graph with values from 0 to 1, but when you generate-statics
you get a correctly ranged and graphed gif, right?

Regarding your second question, just put the tag in either directory-desc or
short-desc like such:

        short-desc = "Ethernet 1 <img src='http://www.bobo.com/~cricket/statics/path/to/static/img.gif'>"

Just tried it and it works good :-) be sure to use single quotes inside the
tag...

This would also be a fairly easy thing to hack into my script that creates
static html based on the trees and gif created by the generate-statics script.

As far as where you put the generate-static = true tag, I found I could either
put it in the targets file or in a Defaults file as high up the config-tree as
desired.

Right now, my generate-static-html script does NOT grab any data from the
cricket configs. It just looks at what exists in the statics directory you run
it from. Later versions might have this functionality, in fact I really like
that idea, hurm, sounds like I have a new project :-)

It is available at ftp://ftp.cybertrails.com/pub/sysadmin/cricket-contrib be
sure to grab and read the README file for description of how I set this up and
use it.

Hasta,

On Fri, Jan 14, 2000 at 03:17:19PM -0600, Matt Raykowski wrote:
> From: "Matt Raykowski" <mattr@spacestar.net>
>
> My first, and most important problem is that grapher.cgi isn't displaying
> any usage/traffic whatsoever when browsing it directly, but when I run
> generate-statics, it makes graphs that show the proper amount of usage.
> The second thing is that I'm running generate-statics once every ten to
> fifteen minutes to make static images to use in the "choose a target" page,
> in the description field - I want to throw an IMG SRC tag in there to show
> the daily usage of the interface, so at the interface listing you can get an
> at-a-glance idea of the traffic on that interface. I've broken my tree down
> like this:
>
> Geometric Location
> |___router
> | |__interfaces
> | |__stats
> | |__routing
> |___router2
> ...
>
> My interfaces file currently looks like this:
> target --default--
> router = 192.168.1.204
> target Ethernet0
> interface-name = Ethernet0
> generate-static = 1
> desc = "This is where the image goes"
> target Serial0
> interface-name = Serial0
> generate-static = 1
> target Serial1
> interface-name = Serial1
>
> You get the idea. However, the admins want to get at-a-glance ideas of the
> summary of data, so I was using generate-statics copies of the
> ethernet0-daily-octets, etc. In theory it's a good idea, but I still don't
> get anything in the "description" field of the table. I've tried using
> "directory-desc," "desc," "short-desc," "long-desc," and
> "targets-short-desc" in my interfaces file, and haven't had any luck. I'll
> continue to tinker with it, and see if I can come up with anything, and if I
> do, I'll certainly mail out to the list, but if anyone else has any ideas,
> I'd appreciate it.
>
> Another thing a little, the reference file could be a little bit more
> verbose. It gives you the name, default value, but not how the value should
> be formatted, where it should be used, i.e. putting generate-static under
> "target Ethernet0," but it also doesn't mention that you have to use an
> equal sign and a value. I figured it out with tinkering, but thought I'd
> mention my point of view on the documentation. After awhile, this isn't
> such a big deal, but when you first get your hands in it, it's a little
> confusing.
>
> Matt Raykowski - Level Two Technician
> Spacestar Communications, Inc.
> Dial-up to DS-3 Serving - MN WI ND MI IL
> Voice (612) 996-0000 / Fax (612) 996-0123
> www.spacestar.net / mattr@spacestar.net
>
>
> --------------------------- ONElist Sponsor ----------------------------
>
> Hey Freelancers: Find your next project through JobSwarm!
> You can even make money in your sleep by referring friends.
> <a href=" http://clickme.onelist.com/ad/jobswarm1 ">Click Here</a>
>
> ------------------------------------------------------------------------
>

-- 
Nathan Alan Haneysmith
Systems Administrator
Cybertrails
*******************************
Be Here Now. If you do not live in the future, there is nothing to fear. If you
do not live in the past, there is nothing to regret or feel guilty about.

--------------------------- ONElist Sponsor ----------------------------

Independent contractors: Find your next project gig through JobSwarm! You can even make money by referring friends. <a href=" http://clickme.onelist.com/ad/jobswarm2 ">Click Here</a>

------------------------------------------------------------------------



This archive was generated by hypermail 2b29 : Mon Mar 06 2000 - 19:01:10 PST