[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing :: View topic - using routers2.cgi non interactively
Cheshire Cat Computing
http://www.steveshipway.org/forum/

using routers2.cgi non interactively
http://www.steveshipway.org/forum/viewtopic.php?f=2&t=4353
Page 1 of 1

Author:  lf4799 [ Thu Jul 07, 2011 8:40 am ]
Post subject:  using routers2.cgi non interactively

Forgive me if this is answered somewhere already. I have installed routers2 and love it. However the one thing I would like to have is a 'non interactive page' as well. With mrtg and rateup, i had cobbled together a static status page that pulled in what I would call important graphs to look at. Now that I have converted to rrd format I can't see how easily do that since the graphs aren't generated on the fly. (Would basically show certain key interfaces on certain routers). I am sure this can be done with routers2 if I just put some html together and called it with the correct arguments. Is there any info on how to call routers2 as cgi scripts so it creates the graphs I need in an html file, Or am I way off base here?

I realize there are the old mrtg-rrd scripts and 14all.cgi but they don't seem to be current at all.

Thanks in advance
Les

Author:  stevesh [ Thu Jul 07, 2011 9:15 pm ]
Post subject:  Re: using routers2.cgi non interactively

Yes, you can do this with Routers2.

First get the URL for the page you're interested in (by clicking the BOOKMARK button).

Then, append '&page=image' to this (without the quotes)

This gives you a URL that just produces the graph image. You can use this URL in IMG tags in pages you've made yourself, such as your static status page.

Alternatively, create a virtual CFG file that holds the Target details for the various graphs you want on your status page. Suppress each Target from the menu using routers.cgi*InMenu[]:no but add it to the summary page with routers.cgi*InSummary[]:yes. Then, create a section in your routers2.conf called [status.cgi] and in this put a cfgfiles definition that gives just this virtual CFG file, plus an allowexplore=no. Link status.cgi -> routers2.cgi. Now when you call status.cgi, you get the virtual cfg file, and the default page (summary) but none of the explore menus!

A admit this may be a bit complex. If you're used to just creating your own page, then use the first method to get a src= parameter for the IMG tags.

Author:  lf4799 [ Sat Jul 09, 2011 4:31 am ]
Post subject:  Re: using routers2.cgi non interactively

thanks for the info... will give that a try... Also just ordered a copy of your book (rare for me to do these days, but looks like it will be worth it!)

Les

Author:  stevesh [ Sat Jul 09, 2011 10:01 am ]
Post subject:  Re: using routers2.cgi non interactively

You'll find this subject in Chapter 6, section 6.2 -- Advanced techniques, linking to other applications, embedding images.

Page 1 of 1 All times are UTC + 12 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/