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:

**snip**
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/10.4.88.232_sw375024sv01.gracecottage.int]
Include: sw356024sv02.cfg     #[workdir: 
/var/www/mrtg/10.4.88.235_sw356024sv02.gracecottage.int]
Include: c2801.cfg     #[workdir: 
/var/www/mrtg/10.1.1.1_gracerouter2.gracecottage.int]
**snip**

All html/log/png files are created in the last workdir: 
/var/www/mrtg/10.1.1.1_gracerouter2.gracecottage.int

I'm a bit stumped.

Any thoughts or input would be most appreciated.

-Jason


________________________________
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.
_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to