Re: [cricket-users] generate statics runs, but i get no data/pics

From: the+cricket@llama.com
Date: Fri Oct 29 1999 - 12:38:00 PDT


From: the+cricket@llama.com

Hi Mark,

I think the problem is that all the generate-static tags should
be defined in the target file, not in the Defaults file, like
this:

> head -6 interfaces
target --default--
        router = some.random.router
        generate-static = "1"
        static-ranges = "d:w:m"
        static-path = %auto-base%/../public_html/static/%auto-target-path%
        static-name = %auto-target-name%

The next problem is that the MkDir subroutine seems not to be defined.
It's a minor problem though, you can create the directory manually and
it works fine.

On Thu, 28 Oct 1999, Mark Skinner wrote:
ct-1999 12:13:06 ] Working on target pos1_0_0.
[29-Oct-1999 12:13:06 ] Retrieving graph for pos1_0_0-Octets-Hourly
[29-Oct-1999 12:13:07 ] Making directory /export/home/monitor/cricket-config/../
public_html/static//router-interfaces/some.random.router to hold file /export/home/monitor /cricket-config/../public_html/static//router-interfaces/some.random.router/pos1_0_0-Octets-Hourly.gif.

Undefined subroutine &main::MkDir called at ./generate-statics line 244.

The only thing missing is accompanying html, though just browing
the directory these appear in works just as well.

Having the ability to generate static graphs is useful for the
specific reason of giving *customer* access to throughput statistics,
or to store snapshots. I notice that this script takes about 4 minutes
to generate 135 graphs, so this is not something you want to do
in near-real-time, otherwise you have MRTG all over again. :-)

Take care,

--Sam

> From: "Mark Skinner" <mskinner@verio.net>
>
> Hi,
>
> I have gotten one router interfaces setup for the generate-static script
> to get data for, but it runs with no output.
>
> here is what I get.
> [httpd@rrd util]$ ./generate-statics /cr3.irvnca
> [27-Oct-1999 12:18:20 ] Working on target fastethernet4_1_0.
>
> here is the end of the Defaults file where /cr3.irvnca interfaces file is:
>
> [httpd@rrd cr3.irvnca]$ tail Defaults
> <snip>
> y-axis = "errors per second"
> legend = "Average Errors Out"
> units = "err/sec"
> #add to support Generate statics script
> static-ranges = "d:w:m"
> static-path = %auto-base%/../public_html/static/%auto-target-path%
> static-name = %auto-target-name%
>
> and a head of the interfaces file
> target --default--
> router = cr3.irvnca.foobar.net
>
> target FastEthernet4_1_0
> interface-name = FastEthernet4/1/0
> short-desc = "bigcust Colo"
> generate-static = "1"
>
> any ideas why the program spots the target but doesn't get the data.
> I even did a lynx http://localhost/~httpd/cricket/grapher.cgi
> to confirm that the BaseUrl was okay and it was ok.
>
> thanks!
> Mark Skinner
> p.s. did Jeff Allen write this script?
>
> >

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

Independent contractors: Find your next project gig through JobSwarm!
        You can even make $$$ 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:05 PST