Ad Widget

Collapse

{ITEM.VALUE} macros in trigger name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hedgehog_57
    Junior Member
    • Nov 2014
    • 5

    #1

    {ITEM.VALUE} macros in trigger name

    Hello

    Zabbix: 2.2.7
    RHEL 6.5

    Our problem - doesn't works macros {ITEM.VALUE} in the name of a trigger.

    We have Trigger prototype in Template like this:

    Name: Incoming use on interface {#SNMPVALUE}{ITEM.VALUE3}) exceed 80% for the last 5 minutes
    Code:
    EXpression: {Template Cisco Interfaces:if.speed["-d","{HOST.CONN}","-c","{$SNMP_COMMUNITY}","-s","{#SNMPINDEX}"].last(0)}>0 & ({Template Cisco Interfaces:ifHCInOctets[{#SNMPVALUE}].avg(300)})>({Template Cisco Interfaces:if.speed["-d","{HOST.CONN}","-c","{$SNMP_COMMUNITY}","-s","{#SNMPINDEX}"].last(0)})*0.8&{Template Cisco Interfaces:ifAlias[{#SNMPVALUE}].strlen(0)}<0
    When discovery is complete triggers are created. It looks like this:

    Name: Incoming use on interface GigabitEthernet0/0{ITEM.VALUE3}) exceed 80% for the last 5 minutes
    Code:
    Expression: {xxx-router:if.speed["-d","{HOST.CONN}","-c","{$SNMP_COMMUNITY}","-s","1"].last(0)}>0 & ({xxx-router:ifHCInOctets[GigabitEthernet0/0].avg(300)})>({xxx-router:if.speed["-d","{HOST.CONN}","-c","{$SNMP_COMMUNITY}","-s","1"].last(0)})*0.8&{xxx-router:ifAlias[GigabitEthernet0/0].strlen(0)}<0
    It looks like {ITEM.VALUE} isn't resolved as macros. Why so?
    Last edited by tchjts1; 27-11-2014, 08:15. Reason: Inserted code tags
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    Possibly because there is no value in history available yet at that time?

    Be aware that this macro might be processed differently depending on context.
    See description of {ITEM.VALUE} and {ITEM.LASTVALUE} in Macros supported by location.

    Comment

    • Hedgehog_57
      Junior Member
      • Nov 2014
      • 5

      #3
      Hello.

      If there is no history available yes macro must be "UNDEFINED".
      There is no difference in my situation between VALUE and LASTVALUE.

      Comment

      Working...