Ad Widget

Collapse

Problem with trigger error Cannot evaluate expression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ltep
    Member
    • Nov 2022
    • 42

    #1

    Problem with trigger error Cannot evaluate expression

    I'm having difficulties finding the error in this expression.

    The host has 3 macros:
    • {$ICMP_RESPONSE_TIME_WARN} = 0.15
    • {$ICMP_LOSS_WARN} = 20
    • {$INTERFACE} = 192.168.1.1
    3 items:
    • Name: ICMP loss (interface {$INTERFACE} firewall)
      Key: icmppingloss[{$INTERFACE}]
      Type: Numeric (float)
    • Name: ICMP ping (interface {$INTERFACE} firewall)
      Key: icmpping[{$INTERFACE}]
      Type: Numeric (unsigned)
    • Name: ICMP response time (interface {$INTERFACE} firewall)
      Key: icmppingsec[{$INTERFACE}]
      Type: Numeric (float)
    trigger:
    • Name: Interface {$INTERFACE} - High ICMP ping loss
      Operational data: Loss: {ITEM.LASTVALUE1}
      Expression: min(/host/icmppingloss[{$INTERFACE}],5m)>{$ICMP_LOSS_WARN} and
      min(/host/icmppingloss[{$INTERFACE}],5m)<100

      This trigger is in errorstate with info: Cannot evaluate expression: right operand "$ICMP_LOSS_WARN" is not a numeric value for operator at ">"$ICMP_LOSS_WARN""
      While the macro has a numeric value. I don't understand...
Working...