[mrtg] Target Option Directory problem

Steve Shipway s.shipway at auckland.ac.nz
Mon Mar 21 02:27:19 CET 2016

This is because you have placed your Directory[] directive in the middle of
your extended PageTop[] directive.


Lines starting with whitespace are continuation lines.


Here is your PageTop[] directive


PageTop[saturn]: <h1>Traffic Analysis for saturn.domain.com</h1>

        <div id="sysdetails">


Note how it is 3 lines long.  Thus, when adding your Directory[] directive,
you need to go AFTER or BEFORE, not in the middle!


Directory[saturn]: saturn

PageTop[saturn]: <h1>Traffic Analysis for saturn.domain.com</h1>

        <div id="sysdetails">


This looks a bit better.  Otherwise, if you put it in the middle, you'll get
HTML added to the directory name. which is what you are experiencing.




Steve Shipway

T: +64 9 3737 599 ext 86487

E: s.shipway at auckland.ac.nz <mailto:s.shipway at auckland.ac.nz> 



From: mrtg [mailto:mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch]
On Behalf Of Johannes Prost
Sent: Monday, 21 March 2016 2:19 p.m.
To: mrtg at james.oetiker.ch; mrtg at lists.oetiker.ch
Subject: [mrtg] Target Option Directory problem


Hello List,

using mrtg 2.17.4 I am encountering a problem with the optional target
directory setting.
I have in the mrtg.cfg file, 

### Global Config Options

#  for Debian
# WorkDir: /var/www/saturn
WorkDir: /home/www/vhosts/stats

further down in my target

MaxBytes[saturn]: 12500000
Title[saturn]: Traffic Analysis for  -- SATURN
PageTop[saturn]: <h1>Traffic Analysis for saturn.domain.com</h1>
Directory[saturn]: saturn
        <div id="sysdetails">
and so forth

Starting mrtg, it will create for each target a directory saturn<div id and
some more subdirectories called by the table tags. Pretty strange.

According to the manual, I can set the "optional Target Keyword"
"Directory"  with it's directory. This directory should be placed as a
subdirectory directly under the "Global Option"  "WorkDir"

What is wrong with my entries like 
Directory[saturn]: saturn
Directory[saturn-1]: saturn
Directory[saturn-2]: saturn
in each configured target ?

If someone could crealify that for me, I really would appreciate.
Thank you.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20160321/e4906ebe/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5334 bytes
Desc: not available
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20160321/e4906ebe/attachment.bin>

More information about the mrtg mailing list