[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 - Grouping devices

Cheshire Cat Computing

Software support and information
It is currently Mon Dec 22, 2025 3:44 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Grouping devices
PostPosted: Tue Mar 28, 2006 3:43 am 
Offline
Silver User

Joined: Sat Mar 25, 2006 5:51 am
Posts: 19
Hi!

First, thanks for a great script, I realy like it :)

I don´t understand how to group things, lets say i want to group my switches in one group and routers in another one.

I have enabled the function in the script like this
Name: group
Default: no
Format: yes / no
Use: Enable the grouping feature for the 'Devices' menu in the lefthand frame.

I´m sure its a simple thing but i cant seam to find it.

Best!
/M


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Tue Mar 28, 2006 8:29 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
So, you mean, in the routers2.conf in the [routers.cgi] section, you have put the line 'group = yes' ?

This will enable grouping, but then you need to be sure that your .cfg files are held in separate directories (which define the groups). For example, if you have files /x/a/a.cfg and /x/b/b.cfg, then you would need to set 'confpath = /x ' and 'cfgfiles = */*.cfg'

You might then also want to add a better description for the group in the [targetnames] section of the file, eg '/x/a = Site A'

There is more detail on how to do this in the HOWTO documentation file.

_________________
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  
 
 Post subject: Ok, still having problem
PostPosted: Wed Mar 29, 2006 3:17 am 
Offline
Silver User

Joined: Sat Mar 25, 2006 5:51 am
Posts: 19
Hi thanx for your replay
But when I put cfgfiles = */*.cfg in my conf file I get this message in the browser. I cant se my working cfg files when I have that config?
What I´m I doing wrong?

/M

No valid target is selected

You have no valid MRTG configuration files. You should check your configuration in /var/www/html/mrtg/ptx/routers2.conf.
[/etc/mrtg/ptx/*/*.cfg]

confpath = /etc/mrtg/ptx

cfgfiles = */*.cfg


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 4:56 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
So - does that match any existing files?

In other words, DO you have any files which match

confpath = /etc/mrtg/ptx
cfgfiles = */*.cfg

? Are there any files /etc/mrtg/ptx/*/*.cfg ?

The error message would indicate that there are not. Can you tell me which directories hold your groups of .cfg files? From this it would indicate directories called something like /etc/mrtg/ptx/foo contain the files.

_________________
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  
 
 Post subject: My working cfg files...
PostPosted: Wed Mar 29, 2006 6:31 pm 
Offline
Silver User

Joined: Sat Mar 25, 2006 5:51 am
Posts: 19
... are in /mrtg/ptx/
when I have this config it works
confpath = /etc/mrtg/ptx
cfgfiles = *.cfg

When I test */*.cfg I have a folder /etc/mrtg/ptx/test where I have a test.cfg file.

best
/M


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Thu Mar 30, 2006 3:09 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
If you use */*.cfg, then the only one to match will be the test/test.cfg file. Is this a valid file? Maybe it is just an empty file with no valid Target[] definitions? Check the verify page ( routers.pl?page=verify ) and it should tell you if it can find any files, and if they are valid or not.

Remember that files will be grouped according to their directory, so you will only have one group ( test ) containing one device ( test.cfg ). You could use

cfgfiles = *.cfg */*.cfg

to add the files in the top level directory as well (as a separate group).

_________________
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  
 
 Post subject: Ok now I understand!
PostPosted: Fri Mar 31, 2006 8:25 am 
Offline
Silver User

Joined: Sat Mar 25, 2006 5:51 am
Posts: 19
thanx a lot, cfgfiles = *.cfg */*.cfg this did the trick.

Best!
/M


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

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 4 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