Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


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

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
kapa



Joined: 23 Oct 2007
Posts: 7
Location: Moscow

PostPosted: Fri Oct 26, 2007 5:56 am    Post subject: [SOLVED] Rx&Tx traffic seems to be mixed up Reply with quote

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:

#!/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?

p.s.: switches - D-Link DES-3526
router - D-Link DGS-3612



Cacti.JPG
 Description:
pictire
 Filesize:  35.73 KB
 Viewed:  872 Time(s)

Cacti.JPG


Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Fri Oct 26, 2007 6:36 am    Post subject: Reply with quote

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
Back to top
kapa



Joined: 23 Oct 2007
Posts: 7
Location: Moscow

PostPosted: Fri Oct 26, 2007 7:13 am    Post subject: Reply with quote

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


Thank you!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group