[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [php-weathermap] Images with MRTG, RRDTool and routers2.cgi
- From: Jethro R Binks <jethro.binks@xxxxxxxxxxxx>
- Subject: Re: [php-weathermap] Images with MRTG, RRDTool and routers2.cgi
- Date: Wed, 16 Dec 2009 20:21:46 +0000 (GMT)
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
- Follow-Ups:
- 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
- Images with MRTG, RRDTool and routers2.cgi
- Prev by Date: Re: [php-weathermap] Images with MRTG, RRDTool and routers2.cgi
- Next by Date: Re: [php-weathermap] weekly instead of daily overlibgraphs
- 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):