[mrtg] Mrtg behaving weird.

Gaurav Ghimire gaurav at subisu.net.np
Fri Dec 12 06:54:16 CET 2008


Steve Shipway wrote:
> Maybe you want to use type 'derive' rather than 'counter' as possibly the MRTG counter-wrap-detection code is kicking in when you dont want it to (because you're calculating this yourself)?
Counters has not reached 2^32 so there is no chance of a counter wrap or issues related to it.

> Also, run the script manually a few times to be sure its not really outputting zeros on every third execution...
I tried running it every 5 minutes myself. Here are a few debug output I gathered.

First Poll:

2008-12-12 11:03:46 -- --base: Get Current values: in:150737160, out:525099567, up:21:19:22, name:name.example.com, time:1229059126
2008-12-12 11:03:46 -- --base: Create Graphics
2008-12-12 11:03:46 -- --log: /usr/bin/rateup /var/www/html/Test/ my_page 1229059126 -Z u 150737160 525099567 4000000 c #00cc00 #0000ff #006600 
#ff00ff l [Bits/s] k 1000 i /var/www/html/Test/noc_my_page-day.png 112000 112000 400 100 1 1 1 300 1 4 1 %Y-%m-%d %H:%M 0

[MRTG created the files and bla bla no peculiar graphs plotted...graphs were at 0]

Second Poll:

2008-12-12 11:05:12 -- --base: Get Current values: in:150737160, out:525099567, up:21:20:49, name:name.example.com, time:1229059212
2008-12-12 11:05:12 -- --base: Create Graphics
2008-12-12 11:05:13 -- --log: /usr/bin/rateup /var/www/html/Test/ my_page 1229059212 -Z u 150737160 525099567 4000000 c #00cc00 #0000ff #006600 
#ff00ff l [Bits/s] k 1000 i /var/www/html/Test/my_page-day.png 112000 112000 400 100 1 1 1 300 1 4 1 %Y-%m-%d %H:%M 0

[MRTG graphed data]

Third Poll

2008-12-12 11:10:11 -- --base: Get Current values: in:151987703, out:551769217, up:21:25:47, name:name.example.com, time:1229059511
2008-12-12 11:10:11 -- --base: Create Graphics
2008-12-12 11:10:11 -- --log: /usr/bin/rateup /var/www/html/Test/ my_page 1229059511 -Z u 151987703 551769217 4000000 c #00cc00 #0000ff #006600 
#ff00ff l [Bits/s] k 1000 i /var/www/html/Test/my_page-day.png 112000 112000 400 100 1 1 1 300 1 4 1 %Y-%m-%d %H:%M 0

[MRTG graphed data]

Fourth Poll

2008-12-12 11:15:12 -- --base: Get Current values: in:153190194, out:572206445, up:21:30:48, name:name.example.com, time:1229059812
2008-12-12 11:15:12 -- --base: Create Graphics
2008-12-12 11:15:12 -- --log: /usr/bin/rateup /var/www/html/Test/ my_page 1229059812 -Z u 153190194 572206445 4000000 c #00cc00 #0000ff #006600 
#ff00ff l [Bits/s] k 1000 i /var/www/html/Test/my_page-day.png 112000 112000 400 100 1 1 1 300 1 4 1 %Y-%m-%d %H:%M 0


[MRTG graphed data]

Fifth Poll

2008-12-12 11:20:12 -- --base: Get Current values: in:154584926, out:590620399, up:21:35:48, name:name.example.com, time:1229060112
2008-12-12 11:20:12 -- --base: Create Graphics
2008-12-12 11:20:12 -- --log: /usr/bin/rateup /var/www/html/Test/ my_page 1229060112 -Z u 154584926 590620399 4000000 c #00cc00 #0000ff #006600 
#ff00ff l [Bits/s] k 1000 i /var/www/html/Test/my_page-day.png 112000 112000 400 100 1 1 1 300 1 4 1 %Y-%m-%d %H:%M 0

[MRTG graphed the data to much low...a few bits..that wasn't acceptable on a link that is uniformly being used]


Here is the excerpt from the log file for each of these mrtg instances.

1229060112 154584926 590620399
1229060112 154970 2045995 154970 2045995
1229060103 0 0 0 0
1229060100 27 468 4132 70231
1229059800 3994 67963 4327 92283
1229059500 4153 88591 4327 92283

> Finally, check your MaxBytes setting is correct.  Possibly this is dropping things to zero.
Yea, I did think that it might have beent he reason so I set the AbsMax to quiet high..but still things are same.

Regards,

Gaurav

> 
> Steve
> 
> ________________________________________
> I am trying to use MRTG to graph bandwidth usage of each classids my linux bandwidth manager has. I am using tc for the bandwidth manager and a
> pass persist script to get those values off the tc command. The script is working well I can get the value off snmp from my graphing server as
> well. But what am I seeing is, after a certain count say 3 regular polls the graphs fall to 0 'zero' and rise again. To my knowledge the usage
> never dropped, the host was downloading uniformly. But MRTG dropped the data to 0 and rose again and again falls to 0.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20081212/9f277ab4/attachment.bin 


More information about the mrtg mailing list