Ad Widget

Collapse

Wrong network data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sugdyzhekov
    Junior Member
    • Oct 2012
    • 5

    #1

    Wrong network data

    Hi,

    We have two servers with CentOS 5 which use for traffic load balancing. One template with network load items was attached to these servers. One of these servers report incorrect data (looks like uses x10).

    Where should I look the reason of such situation?

    Screenshot attached.
    Attached Files
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    What version of Zabbix are you using?

    Show your item configuration. You should also have the "store value" set to Delta (speed per second)
    Attached Files

    Comment

    • sugdyzhekov
      Junior Member
      • Oct 2012
      • 5

      #3
      Zabbix 2.0.2 (latest stable)

      Screenshot attached
      Attached Files

      Comment

      • sugdyzhekov
        Junior Member
        • Oct 2012
        • 5

        #4
        yes, data stored as delta

        Comment

        • sugdyzhekov
          Junior Member
          • Oct 2012
          • 5

          #5
          I found the reason of such result..

          I wrote next bash script to check that Zabbix does not have bug:
          Code:
          #!/bin/bash
          
          set -e
          
          IFACE=$1
          DURATION_LIMIT=$2
          TMP='/tmp/netdata'
          DURATION=0
          
          while [ $DURATION -le $DURATION_LIMIT ]; do
                  DURATION=$(($DURATION + 1))
                  CURRENT_BYTES=`ifconfig $IFACE | grep 'TX bytes' | awk '{print $6}' | cut -d':' -f2`
                  if [ -e $TMP ];then
                          echo -n "$DURATION) "
                          BEFORE_BYTES=$(tail -n1 $TMP)
                          DIFF=$(( $CURRENT_BYTES - $BEFORE_BYTES))
                          MBIT=$( echo "scale=3; $DIFF / 1048576 * 8" | bc -q 2>/dev/null )
                          echo "$MBIT mbit/s"
                          sleep 1;
                  fi
                  echo $CURRENT_BYTES >> $TMP
          done
          rm $TMP
          As result i got the same wrong data. I have check interface and found that it lost statistics data in some period (sec). After that i checked logs and found some strange errors about net driver. It was found in RedHat bug system as solved, so i'm going to update system to latest release or change hardware.

          Thank you for your attention.

          Comment

          • tchjts1
            Senior Member
            • May 2008
            • 1605

            #6
            Thanks for posting the follow-up!

            Comment

            Working...