[SOLVED] Rx&Tx traffic seems to be mixed up

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
kapa
Posts: 7
Joined: Tue Oct 23, 2007 3:25 am
Location: Moscow

[SOLVED] Rx&Tx traffic seems to be mixed up

Post by kapa »

Hello.
I'm a beginner Cacti user and I have such a problem with Weatermap plugin:

As you can see in the attached picture - Tx traffic on router is similar to summary Rx traffic on the next switch from the other two switches. And vice-versa - Rx traffic on router from that switch is equivalent to the summary Tx traffic from the switch to the two neighbouring switches.

The following links don't make me doubt in the the accuracy of data recieved from the switches. That's why I thought, that is a Router bug.

For testing purposes i wrote a small bash script, that compares Tx and Rx SNMP data on neighbouring ports of switch and router:

Code: Select all

#!/usr/local/bin/bash

SNMPIn=`snmpget -c public -v 2c RouterIP .1.3.6.1.2.1.2.2.1.10.11`
SNMPIn3526=`snmpget -c public -v 2c SwitchIP .1.3.6.1.2.1.2.2.1.10.26`
SNMPOut=`snmpget -c public -v 2c RouterIP .1.3.6.1.2.1.2.2.1.16.11`
SNMPOut3526=`snmpget -c public -v 2c SwitchIP .1.3.6.1.2.1.2.2.1.16.26`

FirstIn=`echo $SNMPIn | awk '{print $4}'`
FirstOut=`echo $SNMPOut | awk '{print $4}'`
FirstIn3526=`echo $SNMPIn3526 | awk '{print $4}'`
FirstOut3526=`echo $SNMPOut3526 | awk '{print $4}'`

sleep 5

SNMPIn=`snmpget -c public -v 2c RouterIP .1.3.6.1.2.1.2.2.1.10.11`
SNMPIn3526=`snmpget -c public -v 2c SwitchIP .1.3.6.1.2.1.2.2.1.10.26`
SNMPOut=`snmpget -c public -v 2c RouterIP .1.3.6.1.2.1.2.2.1.16.11`
SNMPOut3526=`snmpget -c public -v 2c SwitchIP .1.3.6.1.2.1.2.2.1.16.26`

LastIn=`echo $SNMPIn | awk '{print $4}'`
LastOut=`echo $SNMPOut | awk '{print $4}'`
LastIn3526=`echo $SNMPIn3526 | awk '{print $4}'`
LastOut3526=`echo $SNMPOut3526 | awk '{print $4}'`

let "SpeedIn = ($LastIn - $FirstIn)*8/5"
let "SpeedOut = ($LastOut - $FirstOut)*8/5"
let "SpeedIn3526 = ($LastIn3526 - $FirstIn3526)*8/5"
let "SpeedOut3526 = ($LastOut3526 - $FirstOut3526)*8/5"

echo "RxSpeed=  $SpeedIn bps"
echo "TxSpeed3526=      $SpeedOut3526 bps"
echo
echo "TxSpeed=  $SpeedOut bps"
echo "RxSpeed3526=      $SpeedIn3526 bps"
And it showes thats all ok.

Could it be so that Tx and Rx MIB's for routers were mixed up in Cacti? :o

p.s.: switches - D-Link DES-3526
router - D-Link DGS-3612
Attachments
pictire
pictire
Cacti.JPG (35.73 KiB) Viewed 2597 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Check that you have the nodes in the right order in your weathermap config in the NODES line for that router->switch link.

If you are using the router's interface stats (as opposed to the switch at the other end of the same wire), then the correct order is NODES router switch. This is how weathermap decides what 'in' and 'out' mean - it's relative to the first node in the link.

More likely than a router bug :-)
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
kapa
Posts: 7
Joined: Tue Oct 23, 2007 3:25 am
Location: Moscow

Post by kapa »

Howie wrote:Check that you have the nodes in the right order in your weathermap config in the NODES line for that router->switch link.

If you are using the router's interface stats (as opposed to the switch at the other end of the same wire), then the correct order is NODES router switch. This is how weathermap decides what 'in' and 'out' mean - it's relative to the first node in the link.

More likely than a router bug :-)
:lol:
Thank you!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests