[mrtg] mrtg and fritzbox with ds-mod

Bernd Schröder darth.vader at radiparty.de
Wed Aug 1 17:26:36 CEST 2007


Guten Tag mrtg mrtg,

i'm  using  an  AVM  Fritzbox as DSL-router. The firmware was modified
with  ds-mod, so now i've got running net-snmp 5.1.2 on my box. I want
a snmpd for traffic-measure with MRTG.

But  MRTG  show's me a completly crasy graph for the incoming traffic.
Interface 14 (see below in the conf) is correct.

You can see the graph at http://olav.homelinux.com/sys-infos/mrtg/fritzbox.html

Where's my fault?


Here is the part of mc /etc/mrtg.conf:

Title[fritzbox]: Fritz!Box
PageTop[fritzbox]: <H1>Statistik des Netzwerkverkehrs (DSL-Router, Fritz!Box)</H1>
Target[fritzbox]: 14:doedel at ds9
RouterUptime[fritzbox]: doedel at ds9
# DSL 160 / 1184
MaxBytes1[fritzbox]: 20000
MaxBytes2[fritzbox]: 148000
WithPeak[fritzbox]: dwmy
Unscaled[fritzbox]: dwmy
#kMG[fritzbox]: k,M,G,T
Options[fritzbox]: growright,nobanner,unknaszero,withzeroes
kilo[fritzbox]: 1024
XSize[fritzbox]: 600
YSize[fritzbox]: 200

The router (aka ds9) answers correct values (it looked so the me):

snmpwalk -v 1 -c doedel ds9 | grep if.*Octets.14
IF-MIB::ifInOctets.14 = Counter32: 16814676
IF-MIB::ifOutOctets.14 = Counter32: 269680792
potenzia:/etc# snmpwalk -v 1 -c doedel ds9 | grep if.*Octets.14
IF-MIB::ifInOctets.14 = Counter32: 16824571
IF-MIB::ifOutOctets.14 = Counter32: 269915639
potenzia:/etc# snmpwalk -v 1 -c doedel ds9 | grep if.*Octets.14
IF-MIB::ifInOctets.14 = Counter32: 16837812
IF-MIB::ifOutOctets.14 = Counter32: 270229768
potenzia:/etc# snmpwalk -v 1 -c doedel ds9 | grep if.*Octets.14
IF-MIB::ifInOctets.14 = Counter32: 16847869
IF-MIB::ifOutOctets.14 = Counter32: 270444408


potenzia:/etc# cat /var/www/sys-infos/mrtg/fritzbox.log | less
1185981605 16728799 268036592
1185981605 685 12545 685 12545
1185981334 676 12376 676 12376
1185981300 702 12446 793 12684
1185981000 849 12694 1159 12750
1185980700 1077 12690 1159 12750
1185980400 615 12361 750 12889
1185980100 749 12877 750 12889
1185979800 723 12207 724 12854
1185979500 674 12848 676 12854
1185979200 561 12528 584 12540
1185978900 586 11892 727 12807
1185978600 735 12826 1166 13785
1185978300 1158 13768 1166 13785
1185978000 775 12927 817 12941
1185977700 815 12160 817 12731
1185977400 739 12518 752 12731



-- 
Mit freundlichen Grüßen
Bernd Schröder
mailto:darth.vader at radiparty.de



More information about the mrtg mailing list