[mrtg] Re: logs don't work

Koelstra, J. (Jan) JKoelstra at MINSZW.NL
Mon Feb 20 09:53:37 MET 2006


Laurent,

Check the Maxbytes value in the config file.
The first target has a much larger value for MaxBytes than the other 3 targets...

If the Maxbytes value is lower than the value returned by your script the value is considdered as unrealistic and is dropped.

HTH,

Jan.

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch] On Behalf Of Zargos
Sent: Saturday, February 18, 2006 10:34 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] logs don't work


Hi,

i have 4 value, all the same except the MaxBytes. The target is a shell
script that return the measured value, zéro, uptime in human readable
form and hostname.
One is doing well, with each new value generating a new line in the
log/old log file. But the three other still keep the value all to zéro
except the first line set with the 2 numerical values supplied by the
shell script.

Here is the concerned part of the mrtg.cfg file:
# Options Générales
#--------------------

HtmlDir: /var/www/html/mrtg-stats/html
ImageDir: /var/www/html/mrtg-stats/images
LogDir: /var/www/html/mrtg-stats/logs
IconDir: /var/www/html/mrtg-stats/icons

Refresh: 300
Interval: 5
#RunAsDaemon: Yes

NoMib2: Yes

Language: french


PageTop[^]: <div class="pageup">
 <img src="../../images/fchg.png" alt="Fondcombe" />  <p>Wilfrid</p>  </div>
PageTop[$]: <div class="global">
PageFoot[^]: </div>
 <div class="footer">
   <div class="home">
     <a href="../../index.php">Home</a>
   </div>
   <div class="images">
     <img src="../../images/mrtg-ti.png" alt="Multi-Router Traffic
Grapher" />
     <img src="../../images/w3chtml401.png" alt="Conforme HTML 4.01" />
     <img src="../../images/w3ccss.png" alt="Conforme CSS 2.1" />
   </div>
   <p>Pour tout problème, ou toute information complémentaire, contacter
l'<a href="mailto:admin at enedwaith.com">administrateur</a></p>
   <p>&copy; Copyright Laurent Mesuré Janvier 2006</p>
 </div>

AddHead[_]: <link rel="stylesheet" href="../../styles/defaut.css"
type="text/css" />

Colours[_]: clair#bd966d,fonce#b93f33,rouge#ff0000,orange#ff8000


# Octets droppé iptables
Target[doctets]: `/var/www/html/mrtg-stats/bin/divstats.sh Wilfrid doctets`
MaxBytes[doctets]: 12500000
Title[doctets]: Analyse DROP iptables (octets)
PageTop[doctets]: <div class="pagetop">
   <p>Analyse DROP iptables (octets)</p>
 </div>\n
Directory[doctets]: doctets
PNGTitle[doctets]: DROP iptables
Options[doctets]: growright,transparent,nobanner,noo
YLegend[doctets]: octets/sec
ShortLegend[doctets]: o/s
Legend1[doctets]: Traffic DROP iptables en octets par seconde
Legend3[doctets]: Traffic DROP iptables max. sur 5 minutes
LegendI[doctets]: &nbsp;DROP:
WithPeak[doctets]: wmy

# Octets rejetés iptables
Target[roctets]: `/var/www/html/mrtg-stats/bin/divstats.sh Wilfrid roctets`
MaxBytes[roctets]: 12500
Title[roctets]: Analyse REJECT iptables (octets)
PageTop[roctets]: <div class="pagetop">
   <p>Analyse REJECT iptables (octets)</p>
 </div>\n
Directory[roctets]: roctets
PNGTitle[roctets]: REJECT iptables
Options[roctets]: growright,transparent,nobanner,noo
YLegend[roctets]: octets/sec
ShortLegend[roctets]: o/s
Legend1[roctets]: Traffic REJECT iptables en octets par seconde
Legend3[roctets]: Traffic REJECT iptables max. sur 5 minutes
LegendI[roctets]: &nbsp;REJECT:
WithPeak[roctets]: wmy

# Packets droppé iptables
Target[dpaquets]: `/var/www/html/mrtg-stats/bin/divstats.sh Wilfrid
dpaquets`
MaxBytes[dpaquets]: 12500
Title[dpaquets]: Analyse DROP iptables (paquets)
PageTop[dpaquets]: <div class="pagetop">
   <p>Analyse DROP iptables (paquets)</p>
 </div>\n
Directory[dpaquets]: dpaquets
PNGTitle[dpaquets]: DROP iptables
Options[dpaquets]: growright,transparent,nobanner,noo
YLegend[dpaquets]: paquets/sec
ShortLegend[dpaquets]: p/s
Legend1[dpaquets]: Traffic DROP iptables en paquets par seconde
Legend3[dpaquets]: Traffic DROP iptables max. sur 5 minutes
LegendI[dpaquets]: &nbsp;DROP:
WithPeak[dpaquets]: wmy

# Packets rejetés iptables
Target[rpaquets]: `/var/www/html/mrtg-stats/bin/divstats.sh Wilfrid
rpaquets`
MaxBytes[rpaquets]: 12500
Title[rpaquets]: Analyse REJECT iptables (paquets)
PageTop[rpaquets]: <div class="pagetop">
   <p>Analyse REJECT iptables (paquets)</p>
 </div>\n
Directory[rpaquets]: rpaquets
PNGTitle[rpaquets]: REJECT iptables
Options[rpaquets]: growright,transparent,nobanner
YLegend[rpaquets]: paquets/sec
ShortLegend[rpaquets]: p/s
Legend1[rpaquets]: Traffic REJECT iptables en paquets par seconde
Legend3[rpaquets]: Traffic REJECT iptables max. sur 5 minutes
LegendI[rpaquets]: &nbsp;REJECT:
WithPeak[rpaquets]: wmy



regars

Laurent

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


_________________________________________________________

Het ministerie van Sociale Zaken en Werkgelegenheid sluit elke aansprakelijkheid uit in verband met het niet juist, onvolledig of niet tijdig overkomen van de informatie in deze e-mail.
Aan dit bericht kunnen geen rechten worden ontleend.

Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van dit bericht te vernietigen.
_________________________________________________________

The ministry of Social Affairs and Employment is not liable for any incorrect or incomplete transmission of the information in this e-mail or for any delay in its receipt.
This message shall not constitute any obligations.

This message is intended solely for the addressee.
If you have received this message in error, please inform us immediately and delete its content.
_________________________________________________________

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the mrtg mailing list