[mrtg] RE MRTG does not update *.log files, but first line changes as normal

Cyrille Bollu Cyrille.Bollu at fedasil.be
Mon Feb 13 09:04:43 MET 2006


Each time I had this behavior was due to the values beeing higher than 
"MaxBytes"



Evgeniy M <mevg at mail.ru> 
Envoyé par : mrtg-bounce at list.ee.ethz.ch
11/02/2006 01:11

A
mrtg at list.ee.ethz.ch
cc

Objet
[mrtg] MRTG does not update *.log files, but first line changes as normal






I use an external program to gather  data:

stat # /bin/eth0.sh
1445275314
1423629085
 03:04:22 up 18 days,  6:05,  9 users,  load average: 1.60, 0.82, 0.45
localhost
stat #

After executing 
mrtg /etc/mrtg.conf
I see always changed first line in eth0.log:
1139615264 915397650 395852776
1139615264 1427196 1799698 1427196 1799698
1139614932 1427196 1799698 1427196 1799698
1139614800 1427196 1799698 1427196 1799698
1139614500 1427196 1799698 1427196 1799698

but collected data unchanged.
So, a have a graph  with horizontal line


MRTG Log-file  looks good:
-------------------------------------------------------------------
2006-02-11 03:08:09 -- --base: Act on Router/Target eth0
2006-02-11 03:08:09 -- --base: Get Current values: in:1676693926, 
out:1480647825, up:03:08:09 up 18 days,  6:08,  9 users,  load average: 
0.70, 0.86, 0.55, name:localhost, time:1139616489
2006-02-11 03:08:09 -- --base: Create Graphics
2006-02-11 03:08:09 -- --log: Called /usr/bin/rateup 
/usr/sites/localhost/htdocs/stat/ eth0 1139616489 -Z g 1676693926 
1480647825 12500000 c #00cc00 #0000ff #006600 #ff00ff l [Bytes/s] k 1000 i 
/usr/sites/localhost/htdocs/stat/eth0-day.png -12500000 -12500000 400 100 
1 1 1 300 0 4 1 %Y-%m-%d %H:%M 0
2006-02-11 03:08:09 -- --base: Check for Thresholds
2006-02-11 03:08:09 -- --base: Check for Write HTML Pages
2006-02-11 03:08:09 -- --base: Exit main Loop
2006-02-11 03:08:09 -- --base: Remove Lock Files
2006-02-11 03:08:09 -- --base: Store Interface Config Cache
-------------------------------------------------------------------

MRTG config-file:

WorkDir: /usr/sites/localhost/htdocs/stat
Title[eth0]: Traffic eth0
MaxBytes[eth0]: 12500000
AbsMax[eth0]: 12500000
Options[eth0]: gauge, growright
Target[eth0]: `/bin/eth0.sh`
PageTop[eth0]: eth0 statistics
YLegend[eth0]: Bytes/s
ShortLegend[eth0]: B/s

Legend1[eth0]: Incoming Traffic
Legend2[eth0]: Outgoing Traffic
Legend3[eth0]: Maximum Incoming Traffic
Legend4[eth0]: Maximum Outgoing Traffic
LegendI[eth0]:  In:
LegendO[eth0]:  Out:
WithPeak[eth0]: ymwd


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



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