[ZBX-11369] Last() don't work with char/text Created: 2016 Oct 18  Updated: 2017 May 30  Resolved: 2016 Oct 18

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 3.2.1
Fix Version/s: None

Type: Incident report Priority: Minor
Reporter: Timofey Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: triggers
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates ZBXNEXT-702 Compare last "text" value with any ot... Closed
duplicates ZBX-10449 Trigger function last() for text valu... Open

 Description   

We try to create several triggers like:
{routing-health:get-gate.sh[{$HOPS},{$IP}].last()}<>{$GATE}
{routing-health:get-gate.sh[{$HOPS1},{$IP1}].last()}<>{routing-health:get-gate.sh[{$HOPS2},{$IP2}].prev()}

get-gate.sh - external script, return IP of HOP N.

So errors showed by zabbix:
Cannot evaluate expression: macro '{$GATE}' value is not numeric.
Cannot evaluate expression: expected numeric token at "127.0.0.1)<>(127.0.0.1)"
& etc.

According to https://www.zabbix.com/documentation/3.2/manual/appendix/triggers/functions
Zabbix must NOT expect numeric or other values, for fuction last()/prev() and AFAIK must respect item type in the check.

Nope, i don't test this with other zabbix versions.
Thanks.



 Comments   
Comment by Aleksandrs Saveljevs [ 2016 Oct 18 ]

Closing as a duplicate of ZBX-10449 and ZBXNEXT-702.

Generated at Thu Mar 28 17:48:38 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.