|
Yes , it is possible, and it will speed things up.
When routers.cgi starts, it will read in all (or part of all) the .cfg files in order to build the menu and set defaults. Obviously, the fewer .cfg files, the faster it runs.
You have a couple of options here, and they are detailed in the HOWTO documenation. You can pass an option to routers.cgi that will activate a separate routers2.conf file section, or you can rename routers2.cgi to activate a separate section.
If you rename routers2.cgi, then in addition to reading the [routers.cgi] section of the routers2.conf file, it will read a section corresponding to the new program name (and this will override any definitions in the [routers.cgi] section). For example:
(part of routers2.conf file)
[routers.cgi]
confpath = /mrtg/conf
cfgfiles = a/*.cfg
group = yes
... other options ...
[foo.cgi]
cfgfiles = b/*.cfg
Now, if you copy routers2.cgi to foo.cgi, you can run routers2.cgi -- getting the default options -- or foo.cgi, where you get all the normal options, *except* that cfgfiles is different.
This is explained in more detail in the HOWTO and other documentation.
|