[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/bbcode.php on line 112: 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 - Changing descriptions for grouped routers?

Cheshire Cat Computing

Software support and information
It is currently Thu Nov 13, 2025 3:54 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Wed Mar 24, 2004 5:11 am 
Offline
User

Joined: Tue Mar 23, 2004 11:13 am
Posts: 8
How do I change the description in the left hand menu for groups of routers? For example, I have grouped everything into newyork\*.cfg and california\*.cfg. The grouping works fine, but I can't seem to get the names to work:

[targetnames]
newyork\ = New York
C:\mrtg\bin\california\ = California

I tried it both ways listed above and neither seem to work.

Please note, I am running this on NT/2000.

Thanks!


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Wed Mar 24, 2004 9:51 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
The second one, but without the trailing slash.

C:\foo\bar = Routers in Bar
C:\mrtg\bin\california = California

Under Windows, make sure you have the correct upper/lower case for the directory names.

Steve


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Wed Mar 24, 2004 10:41 am 
Offline
User

Joined: Tue Mar 23, 2004 11:13 am
Posts: 8
Hmmm, thats what I have now and it still doesn't work.

Is there anything else I need to do?

C:\mrtg\bin\newyork = New York
C:\mrtg\bin\burbank = Burbank


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Wed Mar 24, 2004 8:11 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Check that the case is correct -- remember, c:\mrtg\Burbank is not the same as C:\mrtg\burbank when you are using Windows. This is almost certainly the problem.

You can look at the Info pages to see what case the system actually is using. Make sure that your definition of confpath uses the same case -- particularly for the drive letter.

routers.cgi is case-sensitive because it needs to be for UNIX. It might be a good plan for the future if I put in extra code to do a case-insensitive check if it detects a Microsoft operating system ...

Steve


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Thu Mar 25, 2004 3:16 am 
Offline
User

Joined: Tue Mar 23, 2004 11:13 am
Posts: 8
Got it.

The problem was that "C:\" doesn't work, it has to be "c:\".

Thanks.


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Thu Mar 25, 2004 12:35 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
I'm adding a line to the current version to make a lower-case comparison if running windows. Unfortunately it is a bit difficult to do a completely case-ignored one, since it uses a hashed lookup.

Steve


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Thu Apr 01, 2004 11:36 am 
Offline
User

Joined: Thu Apr 01, 2004 11:12 am
Posts: 9
Hi,

I'm having the same problem and I've checked my case and syntax. Here's what i have in my config:

routers2.cgi version: 2.14b5 (win2000 pro)(I've tried this with 2.13a as well)

confpath = e:\MRTG\mrtg-2.9.22\bin\cfgs


group = yes

[targetnames]

e:\MRTG\mrtg-2.9.22\bin\cfgs = Configs
e:\MRTG\mrtg-2.9.22\bin\cfgs\routers = Routers


In the left column, 'Configs' show up correctly with the files in it's directory but 'Routers' doesn't show up at all.

If I change the config like this...

confpath = e:\MRTG\mrtg-2.9.22\bin\cfgs\routers

...then the 'Routers' directory shows up in the left column but the 'Configs' does not.



Any help would be greatly appreciated,


Steve


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Thu Apr 01, 2004 8:27 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
What is your cfgfiles?

If you have something like:

confpath = C:\mrtg\FOO
cfgfiles = Abc\*.cfg def\*.cfg

then you need

C:\mrtg\FOO\Abc = ABC routers
C:\mrtg\FOO\def = DEF routers

see how it matches the case in the confpath and cfgfiles.

If you have

cfgfiles = *\*.cfg

then you need to use the 'real' case of the file -- the one you see if you do a dir in the directory. Windows tends to hide the 'real' case when you view it in Explorer.

Windows lack of case sensitivity is a real problem, maybe I'll have to just flatten the case of everything if Windows is detected... this is awkward though for a few reasons down to the code structure.

Steve


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Fri Apr 02, 2004 5:14 am 
Offline
User

Joined: Thu Apr 01, 2004 11:12 am
Posts: 9


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Sat Apr 03, 2004 12:45 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Dont forget cfgfiles can be a list, so this is also valid:

cfgfiles = *.cfg */*.cfg

This lets you use the per-user directives to list individual directories or groups of directories for different users (as we do here)

Steve


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

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