Ad Widget

Collapse

Aggregated items from SNMP Template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fratotec
    Junior Member
    • May 2010
    • 12

    #1

    Aggregated items from SNMP Template

    Hi,
    I´m trying to create an aggregated item for the total traffic ( inOctets + outOctets ) for an Cisco Router on Zabbix 2.2.2, from the items of the SNMP Device Template.
    The Itens from the template look like:
    Network interfaces: Outgoing traffic on interface GigabitEthernet0/1 ifOutOctets[GigabitEthernet0/1]
    the key of the original item is "ifOutOctets[{#SNMPVALUE}]".

    When I try to use as function:
    last("ifOutOctets[GigabitEthernet0/1]") + last("ifinOctets[GigabitEthernet0/1]") I get an "invalid key GigabitEthernet0" error.
    It looks like Zabbix doesn´t like the "/" in the key name.

    Any ideas to work around this, other than create aditional plain SNMP items (like ifinoctets.1 / ifoutoctets.1 ) and aggregate them ?

    Thanks

    Franz
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    My "Total traffic on $1" Item prototype configured like that:
    Code:
    Name: Total traffic on $1
    Type: Calculated
    Key: total.traffic.[{#SNMPVALUE}]
    Formula: last("ifInOctets[{#SNMPVALUE}]")+last("ifOutOctets[{#SNMPVALUE}]")
    Type of information: Numeric(unsigned)
    Data type: Decimal
    Units: bps
    Sincerely yours,
    Aleksey

    Comment

    • fratotec
      Junior Member
      • May 2010
      • 12

      #3
      [SOLVED] Calculated items from SMTP template

      Great, that did what I needed.

      Thank you

      Franz

      Comment

      Working...