[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 - Problem with Multi-Level Grouping

Cheshire Cat Computing

Software support and information
It is currently Thu Nov 13, 2025 7:30 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Tue Apr 20, 2010 8:21 am 
Offline
User

Joined: Tue Apr 20, 2010 7:56 am
Posts: 6
I have 291 device configurations that are working great and the MULTI-LEVEL grouping has been working fine until recently when I've added about 80 devices to a subdirectory under my tree. All the other subdirectories are working fine but this one for some reason ignores my multilevel (subdirectory). I'm using the following directives in the router2.cgi:

group = yes
multilevel = yes
groupsep = /


Example structure:

BURLINGTON/CORE/ROUTER/*.cfg <- WORKS PERFECT
BURLINGTON/DISTRIBUTION/SWITCH/*.cfg <- SWITCH SUBDIRECTORY doesn't show up


Top
 Profile Send private message  
 
PostPosted: Tue Apr 20, 2010 11:35 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Can you give the exact directory structure, and let me know what you confpath and cfgfiles are set to? It is possible that your cfgfiles pattern(s) do not match the cfg files in the missing subdirectory. Watch out in particular for case mapping and spaces, if you're on a Windows server (it doesnt look like you are, though)

_________________
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: Thu Apr 22, 2010 4:04 am 
Offline
User

Joined: Tue Apr 20, 2010 7:56 am
Posts: 6
Here is the directory structure as I mentioned:

/opt/apps/mrtg/configs/BURLINGTON/DISTRIBUTION/SWITCH <- Directory SWITCH doesn't show up but configs do show up under DISTRIBUTION

/opt/apps/mrtg/configs/WINDSOR/DISTRIBUTION/SWITCH <- This one works just fine

confpath = /opt/apps/mrtg/configs
cfgfiles = WINDSOR/*/*.cfg WINDSOR/*/*/*.cfg BURLINGTON/*/*.cfg BURLINGTON/*/*/*.cfg

And no I'm not using WINDOWS as you can probably tell.


Top
 Profile Send private message  
 
PostPosted: Tue Apr 27, 2010 10:32 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Are there any *.cfg files in the BURLINGTON/DISTRIBUTION/SWITCH directory? Empty groups are not displayed.

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: Wed Apr 28, 2010 1:50 pm 
Offline
User

Joined: Tue Apr 20, 2010 7:56 am
Posts: 6
all the cfg files mentioned (80 cfgfiles) are in the BURLINGTON/DISTRIBUTION/SWITCH/*.cfg directory but they show up under BURLINGTON/DISTRIBUTION in the routers2.cgi. There are no config files directly in BURLINGTON/DISTRUBUTION!!


Top
 Profile Send private message  
 
PostPosted: Wed Apr 28, 2010 3:08 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
This sounds like it may just be the default name for the group being not what you want, rather than a group being omitted or multiple groups merged.

Have you tried renaming the group using the [targetnames] section of the routers2.conf?

_________________
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 May 05, 2010 4:26 am 
Offline
User

Joined: Tue Apr 20, 2010 7:56 am
Posts: 6
Interestingly enough if I use the TARGETNAMES directive as follows:

/opt/apps/mrtg/configs/BURLINGTON/DISTRIBUTION/SWITCH = BURLINGTON/DISTRIBUTION/SWITCH

Then in the BROWSER it ignores the DISTRIBUTION all together and the configs show up under BURLINGTON/SWITCH.

If I change the TARGETNAMES directive as follows:

/opt/apps/mrtg/configs/BURLINGTON/DISTRIBUTION/SWITCH = BURLINGTON/DIST/SWITCH

Then in the BROWSER everything looks good under BURLINGTON/DIST/SWITCH, so i must be something to do with the length of the grouping. And I confirmed that it works up to "DISTRIBUTIO", but if I add the last "N" character then it stops working.

Is there anything in the code for GROUP LENGTH?


Top
 Profile Send private message  
 
PostPosted: Wed May 05, 2010 8:26 am 
Offline
User

Joined: Tue Apr 20, 2010 7:56 am
Posts: 6
So the issue seems to arise with cfg files in BURLINGTON/DISTRIBUTION/SWITCH and BURLINGTON/DISTRIBUTION/UPS. If I move the UPS directory out of this folder the left menu is CORRECT. When I have both UPS and SWITCH in the same DISTRIBUTION directory the UPS directory shows up but the SWITCH directory cfg files show up under DISTRIBUTION as was the original problem.

So the only way to solve this is to move the UPS directory to someplace out.

Weird thing is I have the same setup working under WINDSOR/DISTRIBUTION/SWITCH and WINDSOR/DISTRIBUTION/UPS with no issues.


Top
 Profile Send private message  
 
PostPosted: Thu May 13, 2010 2:49 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
I have a feeling this may be being caused by a limitation on the length of a group name. Historically there were no multi-level groups and so for sanity a group name would be limited in length. I suspect the code is applying the limit to the complete group name rather than to just the name of the level?

Ill need to check this in the code.

_________________
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 Jul 14, 2010 6:41 am 
Offline
User

Joined: Tue Apr 20, 2010 7:56 am
Posts: 6
I changed the directory name from "UPS" to "BATTERY" and this has been working ever since.


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

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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