Ad Widget

Collapse

ifInOctets - Correct Conversion for snmp+cisco bandwidth monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • treyh
    Member
    • May 2007
    • 64

    #1

    ifInOctets - Correct Conversion for snmp+cisco bandwidth monitoring

    Hello Everyone,

    I recently changed jobs and am using zabbix again. I am running freebsd 7.0 and have zabbix correctly pulling snmp info from a cisco switch.

    I first tested with this (interface 500 is a vlan interface):
    snmpwalk -v 1 -c public 10.0.5.1 1.3.6.1.2.1.2.2.1.10.500
    IF-MIB::ifInOctets.500 = Counter32: 40709544
    IF-MIB::ifInOctets.500 = Counter32: 40716250
    IF-MIB::ifInOctets.500 = Counter32: 40718023
    (as you can see, ran it 3 different times and the counter is increasing)

    I Created a new item with the following settings:
    Description: ifInOctets500
    Type: SNMPV1 Agent
    SNMP Community: public
    SNMP OID: 1.3.6.1.2.1.2.2.1.10.500
    SNMP Port: 161
    Key: ifInOctets500
    Type of Information: Numeric (float)
    Units: bps
    Use Multiplier: custom multiplier
    Custom Multiplier: 8
    Update interval: 15
    Store Value: Delta (speed per second)
    All other settings are default.

    When I look at latest data, it shows 0bps. When units was set to nothing, and store value: as is, it pulled numbers like: 40709544

    I want to be able to monitor how much bandwidth is passing through the interface in either megabits or kilabits.
  • treyh
    Member
    • May 2007
    • 64

    #2
    found some help

    found these settings on the wiki:snmp section:
    http://www.zabbix.com/wiki/doku.php?id=contrib:snmp

    #
    Create an Item

    *
    Description: server1.example.org (I use DNS names for description YMMV)
    *
    Type: SNMPv1 agent
    *
    SNMP community: public
    *
    SNMP OID: 1.3.6.1.2.1.2.2.1.10.2
    *
    SNMP port: 161
    *
    Key: ifInOctets.eth0 (or any other unique value for this item - I use the SNMP name
    *
    Type of information: Numeric Integer (64bit)
    *
    Units: bps # bits per second - refer to the ZABBIX Manual and forums for more units
    *
    Use multiplier || Custom multiplier: 8 # it’s octets so let’s try 8 - someone please explain this
    *
    Status: Active
    *
    Store value: Delta Speed per second # Traffic is at most times defined to be just a growing value, we want to see what happens not Gigabyte counting


    but even after changing just the 1 setting i had off, from float to numeric 64, still shows 0bps

    Comment

    • mdouhan
      Junior Member
      • Oct 2006
      • 23

      #3
      use snmpv2

      Hey

      Use snmpv2 instead for cisco

      and use the following instead of the OID

      IF-MIB::ifInOctets.90

      in the key field use this

      ifInOctets.90

      again where 90 is the ifindex of your router interface

      Please remember to configure snmp-server ifindex persist or your ifindexes might change after a reboot

      where 90 is the ifindex of your router interface you can find it using snmpwalk on your router,

      NOTE: if you use high speed interfaces like gig eth or similar you must use the 64 but counters ifHCInOctets otherwise your graphs will have gaps in them because the 32 bot counters wrap to quick.

      Comment

      Working...