[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [php-weathermap] Images with MRTG, RRDTool and routers2.cgi
- From: Dunc <dunc.lockwood@xxxxxxxxxxxxx>
- Subject: Re: [php-weathermap] Images with MRTG, RRDTool and routers2.cgi
- Date: Thu, 17 Dec 2009 12:54:06 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jethro R Binks wrote:
> On Wed, 16 Dec 2009, Dunc wrote:
>
>> Howard Jones wrote:
>>> Dunc wrote:
>>>> Does anybody else have a similar setup to mine, and if so how do you
>>>> draw your graphs?
>>>>
>>> The OVERLIBGRAPH parameter is a URL, so anything that can draw the
>>> graphs on the fly from a URL will work (which I guess is what routers2
>>> must do). This is what you do with Cacti, too. So the simplest way to
>>> find out is to go into the routers2 web interface, right-click on an
>>> image and copy link. Use that for the OVERLIBGRAPH and see what happens.
>>>
>>> Check into something like drraw (in the rrdworld section of the rrdtool
>>> site) if it doesn't. Worst case, you can still add a bunch of 'rrdtool
>>> graph' commands to the front of a shell script that then runs weathermap...
>> Thanks for the tips, I'll check it out.
>>
>> Keep up the good work by the way, php-weathermap rocks. :-)
>
> Works for me, I use routers2 too. My weathermap config has things like
> this for LINK DEFAULT:
>
> OVERLIBGRAPH /cgi-bin/routers2.cgi?rtr=routers%2F{link:this:src}.cfg&if={link:this:ip}_{link:this:int}&page=image
> TARGET /net/db/mrtg/routers/{link:this:ip}_{link:this:int}.rrd:ds0:ds1
> INFOURL /cgi-bin/routers2.cgi?rtr=routers%2F{link:this:src}.cfg&bars=Cami&xgtype=d&page=graph&xgstyle=n&xmtype=options&if={link:this:ip}_{link:this:int}
>
> with the links looking like this:
>
> LINK Cur1-Cur2
> NODES curran1 curran2
> SET src curran1
> SET ip A.B.C.D
> SET int 1
>
> and NODE DEFAULT might have:
>
> INFOURL /cgi-bin/routers2.cgi?rtr=routers%2F{node:this:name}.cfg&bars=Cami&xgtype=d&page=graph&xgstyle=n&xmtype=options&if=__compact
>
> You may prefer different versions of the graphs; just find the one you
> want from routers2 and gets the URL, just as Howie mentions.
>
> Jethro.
>
> . . . . . . . . . . . . . . . . . . . . . . . . .
> Jethro R Binks
> Computing Officer, IT Services, University Of Strathclyde, Glasgow, UK
Hi Jethro,
That's wicked. I've seen the references to using "this" in the docs
before but it didn't quite sink in about how to use it. Your config has
made all the pieces of the jigsaw fit and I'm all up and running now,
and my config is about half as complicated to boot :-)
Many thanks for your help.
Cheers,
Dunc
- --
Duncan Lockwood
Principle Network Engineer
The Bunker Secure Hosting Limited
Ash Radar Station
Marshborough Road
Sandwich
Kent CT13 0PL
UNITED KINGDOM
t: 01304 814 800
f: 01304 814 899
e: dunc@xxxxxxxxxxxxx
w: www.thebunker.net
PGP on Key Servers
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAksqKe4ACgkQOZKi9YO9TB4TfACfUG9IZ7sS69A3oZBPCaS05qIn
rX8AnR3kRE9mUn+JQmB/LMhoH5Zp3Oc3
=GC7K
-----END PGP SIGNATURE-----
- Follow-Ups:
- Re: [php-weathermap] Images with MRTG, RRDTool and routers2.cgi
- From: Howard Jones
- Re: [php-weathermap] Images with MRTG, RRDTool and routers2.cgi
- References:
- Images with MRTG, RRDTool and routers2.cgi
- From: Dunc
- Re: [php-weathermap] Images with MRTG, RRDTool and routers2.cgi
- From: Howard Jones
- Re: [php-weathermap] Images with MRTG, RRDTool and routers2.cgi
- From: Dunc
- Re: [php-weathermap] Images with MRTG, RRDTool and routers2.cgi
- From: Jethro R Binks
- Images with MRTG, RRDTool and routers2.cgi
- Prev by Date: Re: [php-weathermap] weekly instead of daily overlibgraphs
- Next by Date: Re: [php-weathermap] Images with MRTG, RRDTool and routers2.cgi
- Previous by thread: Re: [php-weathermap] Images with MRTG, RRDTool and routers2.cgi
- Next by thread: Re: [php-weathermap] Images with MRTG, RRDTool and routers2.cgi
- Index(es):