Portál AbcLinuxu, 28. listopadu 2025 09:11
eth0 Link encap:Ethernet HWaddr ...
inet addr: ... Bcast: ... Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:150836676 errors:0 dropped:8129 overruns:0 frame:0
TX packets:191468776 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:322796773 (307.8 Mb) TX bytes:999029026 (952.7 Mb)
eth1 Link encap:Ethernet HWaddr ...
inet addr: ... Bcast: ... Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:156468171 errors:0 dropped:0 overruns:0 frame:0
TX packets:63042936 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:221907091492 (211627.0 Mb) TX bytes:3698871468 (3527.5 Mb)
eth0 je Intel e1000, eth1 Realtek r8169 - proč je counter u eth1 větší než 32bit číslo, přičemž u eth0 je max 32bit? Distribuce je 32bitový Slackware 13.37, to mi hlava nebere :-/ Proč se ptám? Blbne mi MRTG u eth0 :/ Než během 5 minutového intervalu sesbírá data, při rychlosti cca 750Mb/s se counter protočí a pak ukazuje nesmysly. Menší interval než 5 minut mi MRTG nebere, to bych musel použít RRDTools. Jen nechápu ty countery u 32bitovém systému.
Řešení dotazu:
Target[myrouter]: 2:public@router1:::::2
Citováno z manuálu k MRTG:
If you have a fast router you might want to try to poll the ifHC* counters. This feature gets activated by switching to SNMPv2c. Unfortunately not all devices support SNMPv2c yet. If it works, this will prevent your counters from wraping within the 5 minute polling interval, since we now use 64 bit instead of the normal 32 bit.
Teď už je graf ukazuje správné rychlosti.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.