Ad Widget

Collapse

Template SNMP Interface

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kenoss
    Junior Member
    • Oct 2016
    • 20

    #1

    Template SNMP Interface

    Hello,

    Can someone have a template to get only the traffic on one interface ? For exemple the interface which name is "GigabitEthernet 1/0".

    Regards
  • SBO
    Zabbix Certified Specialist
    Zabbix Certified Specialist
    • Sep 2015
    • 226

    #2
    You don't need a template for this, just create the item..
    Hint : net.if.in/out

    Comment

    • kenoss
      Junior Member
      • Oct 2016
      • 20

      #3
      Sorry I forget to tell it's for a router interface, so I think I must use SNMP Vx agent. If I try Zabbix agent it shows "No interface found"

      PS : Zabbix version 3.2

      Comment

      • kenoss
        Junior Member
        • Oct 2016
        • 20

        #4
        Can someone help please ?

        Comment

        • Atsushi
          Senior Member
          • Aug 2013
          • 2028

          #5
          There is no template for one interface.
          Please try to create a template according to the equipment.

          Please check the index using the snmpwalk command.
          After reviewing the index, to append the period and numeric value of index after ifInOctets.

          ex.
          Check all interfaces:
          Code:
          # snmpwalk -c public -v 2c 192.168.1.254 IF-MIB::ifDescr
          # snmpwalk -c public -v 2c 192.168.1.254 IF-MIB::ifAlias
          32bit counter:
          Code:
          # snmpwalk -c public -v 2c 192.168.1.254 IF-MIB::ifInOctets
          # snmpwalk -c public -v 2c 192.168.1.254 IF-MIB::ifOutOctets
          64bit counter:
          Code:
          # snmpwalk -c public -v 2c 192.168.1.254 IF-MIB::ifHCInOctets
          # snmpwalk -c public -v 2c 192.168.1.254 IF-MIB::ifHCOutOctets
          item - Incoming traffic on interface
          Type : SNMPv2 agent
          SNMP OID : IF-MIB::ifInOctets.1
          SNMP community : public
          Type information : Numeric(unsigned)
          Data type : Decimal
          Units : bps
          Use custum multiplier : 8
          Store value : Delta(speed per second)

          Comment

          • kenoss
            Junior Member
            • Oct 2016
            • 20

            #6
            Thanks for you reply.
            So, I will try to use the API to do it myself with the commands you sends me.

            Comment

            Working...