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">
            <table>

 

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">
            <table>

 

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

 

Steve Shipway

T: +64 9 3737 599 ext 86487

E: [email protected] <mailto:[email protected]> 

(

 

From: mrtg [mailto:[email protected]]
On Behalf Of Johannes Prost
Sent: Monday, 21 March 2016 2:19 p.m.
To: [email protected]; [email protected]
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

Target[saturn]: 
SetEnv[saturn]: 
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">
            <table>
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.

Johannes

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to