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"
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