[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 - Howto have the System: ,... inserted into userdefined page ?

Cheshire Cat Computing

Software support and information
It is currently Mon Nov 10, 2025 7:12 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Wed Nov 05, 2008 7:19 am 
Offline
Gold user

Joined: Fri Mar 07, 2008 8:51 am
Posts: 125
Location: Fairbanks , AK
Ouch , I did not check -all- of my userdefined graphs , So I get to report that -some- of them work & others do not . So now my question changes .

What should I be looking for in the userdefined graphs that may cause them not to display the mrtgpagetop ?

tia , JimL


Top
 Profile Send private message  
 
PostPosted: Wed Nov 05, 2008 10:22 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
The example huge pagetop definition above should work, but needs to be defined all on one line. I can't remember offhand the maximum linelength but it should be very big. You will need at least v2.18 of routers2.

If some of your userdefineds are working but not others then you'll need to give me the cfg snippet for the one that doesnt work.

You will need at least v2.17 for the pagetop and pagefoot to work properly; there have been some minor corrections since so best to upgrade to 2.19 to get the bugfixes.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Sat Dec 27, 2008 6:54 am 
Offline
Gold user

Joined: Fri Mar 07, 2008 8:51 am
Posts: 125
Location: Fairbanks , AK
[quote]
From what I can see there are insufficient Symbols to build a complete 'sysdetails' like mrtg does .
[/quote]
From above .

Is there a chance that the 'Variable's from both mrtg & router2.cgi can be used within the 'pagetop =' definitions ?

I know about the ones from the BOOK (Thank you for taking the considerable time to make it) , But am hoping for better coverage of the variables in order to create a complete 'PageTop' .

Tia , JimL


Top
 Profile Send private message  
 
PostPosted: Sat Dec 27, 2008 9:54 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
The problem with this is that most of these additional varibles are not known to Routers2 without making direct SNMP queries to the Target in question, which I've been trying to avoid for performance reasons (eg, think what happens if the target is down...)

Everything that Routers2 can deduce from the MRTG cfg file is already available in the symbols.

Possibly a future version may allow more functions in the symbols, eg:
%SNMP:oid%
which would give the ability to do what you're after - though it would have a nasty performance hit as it made those SNMP queries each time.

Steve

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Tue Dec 30, 2008 9:26 am 
Offline
Gold user

Joined: Fri Mar 07, 2008 8:51 am
Posts: 125
Location: Fairbanks , AK
[quote]Everything that Routers2 can deduce from the MRTG cfg file is already available in the symbols.[/quote]

Can you please tell me where I can find the definitve description of all the variables available to a routers2.cfg, 'pagetop =' ?

The variables defined in the book do not appear to cover enough to create a 'sysdetails' .

tia , jiml


Top
 Profile Send private message  
 
PostPosted: Thu Jan 01, 2009 6:48 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
As far as MRTG and Routers2 are concerned, the PageTop is simply a large block of text. The only way to get the sysdetails string from the device would be to either run an SNMP query to obtain it (this has major performace implications for Routers2, particularly if the device is down) or to parse the PageTop string and try to identify which part is the sysdetails - which would be heavily dependent on the format of the PageTop as created by cfgmaker (different versions had different formats, and they can subsequently be modified by the user of course).

If it is absolutely required to be able to do this from Routers2, then it might be possible to make symbols so that SNMP queries are run on demand (eg to obtain the sysdetails string) although this has the performance problems mentioned before. Alternatively it could try and parse the PageTop layout (the ifdefault routers2.conf parameter has an option to try and do this) but this is very very unreliable.

Possibly a better solution would be to allow you to set variables directly? EG,
1. Modify your host/interface template for cfgmaker to make it also output a line like:
routers.cgi*SetSymbol: SYSDETAILS "sysdetails string goes in here"
2. Then this would allow your PageTop to include a symbol %SYSDETAILS% to be replaced by the text defined in the SetSymbol line?
Of course, if you're doing this, then you may as well make the template output the appropriate PageTop line anyway, but it might make things simpler.

This way, cfgmaker (which knows the sysdetails string) could pass it on to Routers2 via a userdefined symbol which could be used in PageTop and so on?

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Tue Jan 06, 2009 5:29 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Routers2 v 2.20 beta 3 now has this SetSymbol functionality, so you can set the 'SYSTEM' symbol value appropriately in the cfgmaker host template if you wish, and then use the %SYSTEM% symbol in your PageTop and PageFoot settings.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Wed Jan 07, 2009 7:44 am 
Offline
Gold user

Joined: Fri Mar 07, 2008 8:51 am
Posts: 125
Location: Fairbanks , AK
Hello Steve , COOL , VERY Cool , Thank YOU !-)

But I try to get the beta3 at
wget http://www.steveshipway.org/software/rr ... ta3.tar.gz
and I get
--09:35:13-- http://www.steveshipway.org/software/rr ... ta3.tar.gz
=> `/home/archive/srcs/routers2-v2_20-beta3.tgz'
Resolving http://www.steveshipway.org... 72.29.83.119
Connecting to http://www.steveshipway.org|72.29.83.119|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
09:35:14 ERROR 404: Not Found.

Tia , JimL


Top
 Profile Send private message  
 
PostPosted: Wed Jan 07, 2009 10:10 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Well thats cos beta3 was only installed onto our test servers yesterday, and I wasn't planning on making it publicly available until I'd finished a bit more testing here :). The last public beta is beta2.

If you're really desperate for this let me know and I'll give you a pre-release of beta3 (ie, alpha3 I guess).

I'm also looking at having an optionally-enabled feature where the cfg file comments and PageTop are parsed with the assumption that it was created by cfgmaker to set additional symbols, which may help you even more.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Wed Jan 07, 2009 1:32 pm 
Offline
Gold user

Joined: Fri Mar 07, 2008 8:51 am
Posts: 125
Location: Fairbanks , AK
Hello Steve , Ok that answers that . I'll just bite my tongue for a few . Hopefully it'll be just a few (days/weeks/months) ?-)
Thank you , JimL


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group