[mrtg] all generated files going to last workdir of included cfg files in mrtg.cfg

Jason R. Butterfield JButterfield at gracecottage.org
Wed May 18 21:32:11 CEST 2011

My mrtg.cfg utilizes the 'Include:' feature to pull in config files for a handful of devices.

In each of the device.cfg files, I specify a different 'workdir' to keep things separated per device.

When I run mrtg (I have the cron disabled while I figure this out) everything seems to work fine, except that all of the files generated go in the 'workdir' specified by the last cfg file 'included' in the mrtg.cfg.  So things look fine from a web browser for the last device in the config, but not for the rest since the html indices point to the respective directories where nothing is being updated...

Specifically -my mrtg.cfg file:

HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
Include: sw375024sv01.cfg      #[workdir line in cfg file == workdir: /var/www/mrtg/]
Include: sw356024sv02.cfg     #[workdir: /var/www/mrtg/]
Include: c2801.cfg     #[workdir: /var/www/mrtg/]

All html/log/png files are created in the last workdir: /var/www/mrtg/

I'm a bit stumped.

Any thoughts or input would be most appreciated.


This message (and any included attachments) is from Grace Cottage Hospital and is intended only for the addressee(s). The information contained herein may include privileged or otherwise confidential information. Unauthorized review, forwarding, printing, copying, distributing, or using such information is strictly prohibited and may be unlawful. If you received this message in error, or have reason to believe you are not authorized to receive it, please promptly delete this message and notify the sender by e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20110518/b8a1b4d0/attachment.htm 

More information about the mrtg mailing list