[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
http://www.steveshipway.org/forum/

Grouping devices
http://www.steveshipway.org/forum/viewtopic.php?f=2&t=846
Page 1 of 1

Author:  skalman70 [ Tue Mar 28, 2006 3:43 am ]
Post subject:  Grouping devices

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

Author:  stevesh [ Tue Mar 28, 2006 8:29 pm ]
Post subject: 

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.

Author:  skalman70 [ Wed Mar 29, 2006 3:17 am ]
Post subject:  Ok, still having problem

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

Author:  stevesh [ Wed Mar 29, 2006 4:56 pm ]
Post subject: 

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.

Author:  skalman70 [ Wed Mar 29, 2006 6:31 pm ]
Post subject:  My working cfg files...

... 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

Author:  stevesh [ Thu Mar 30, 2006 3:09 pm ]
Post subject: 

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).

Author:  skalman70 [ Fri Mar 31, 2006 8:25 am ]
Post subject:  Ok now I understand!

thanx a lot, cfgfiles = *.cfg */*.cfg this did the trick.

Best!
/M

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