|
What he said.
The way we do it here is that we create *.cfg files (processed by MRTG) and *.conf files (for Routers2 only) and set the routers2 directive 'cfgfiles = *.cfg *.conf' to get both sets.
Then, some more complex userdefined graphs over multiple devices can be put into a .conf file, using Include: to include the individual devices' configurations, putting before them 'routers.cgi*InMenu[_]:no' and 'routers.cgi*InSummary[_]:no' to conceal the various components from the menus. Then follows the required routers.cgi*Graph directives and so on.
You can get odd behaviour with defaults, though, as the default targets are processed after each FILE but remain in force globally. Therefore, if you want the defaults to affect the Targets defined in an included file, you need to define them BEFORE including, not after.
The parctical upshot is a new entry in the Devices menu, with Targets corresponding to the newlydefined UserDef graphs.
_________________ Steve Shipway UNIX Systems, ITSS, University of Auckland, NZ Woe unto them that rise up early in the morning... -- Isaiah 5:11
|