On Jan 8, 2010, [email protected] wrote:
>
> On Jan 7, 2010, Daniel J McDonald <[email protected]> wrote:
>
> > On Thu, 2010-01-07 at 08:51 +0000, [email protected] wrote:
> > > Bottom line first:
> > > I have multiple mrtg cfg files. With (potentially) separate WorkDirs.
> >
> > Better to use a common workdir with the Directory[] attribute on each
> > target.
>
> Ah! Thank you so much. It never occured to me that this was handled by a per-target attribute.
> This is exactly what I was looking for. Works as expected.
>

... or almost, anyway.


1.
I'd like to use multiple levels of subdirectories. Getting mrtg-rrd to list subdirs to the root dir works well, but subdirs of subdirs are never listed.
Is mrtg-rrd unable to handle this?

The syntax I use is something like this:


Directory[_]: network/router1
Title[_]: router1
Target[router1]: pub...@router1

Directory[_]: network/router2
Title[_]: router2
Target[router2]: pub...@router2

mrtg appears happy with this. mrtg-rrd less so, returning 'Error: Undefined statistics'.
Dropping the 'network/' bit of the path makes mrtg-rrd happy. But me less so...


2.
In addition, I'd like to use the Clonedirectory attribute. This appears unsuccessful no matter what I do.
Is it incompatible with either
RunAsDaemon: Yes
or
LogFormat: rrdtool
?

I believe I have satisfied all the prerequisites to use Clonedirectory.
- using Directory
- made the Clonedirectory directory by hand and made it writeable for the relevant user
- installed the File::Copy perl module

It is also stated that the Clonedirectory dir must be 'relative', but not to what. It makes no difference if I make it relative to / or to the Directory dir.


3.
It looks as if Clonedirectory is not understood by mrtg-rrd. Can someone confirm that?

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to