I'm having difficulties finding the error in this expression.
The host has 3 macros:
The host has 3 macros:
- {$ICMP_RESPONSE_TIME_WARN} = 0.15
- {$ICMP_LOSS_WARN} = 20
- {$INTERFACE} = 192.168.1.1
- 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)
- 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...