-
Incident report
-
Resolution: Duplicate
-
Minor
-
None
-
3.0.6
-
Ubuntu 16.04 LTS
Hello,
I have an item which is of type TEXT, when I create and test a trigger in the expression constructor it doesn't behave as expected.
What I'm trying to do is alert when a text value doesn't change within a specific length of time.
My trigger looks as follows: {HOST.ITEM.last()}={HOST.ITEM.last(#96)}
I have also tried: {HOST.ITEM.last()}={HOST.ITEM.last(,86400)}
When I test the expression with identical numerical values the result is TRUE, when I test with identical text values, the result is unexpectedly FALSE.
i.e.
{HOST.ITEM.last()} = 1
{HOST.ITEM.last(#96)} = 1
Result: TRUE
However:
{HOST.ITEM.last()} = abc
{HOST.ITEM.last(#96)} = abc
Result: FALSE
- duplicates
-
ZBXNEXT-702 Compare last "text" value with any other string
- Closed
-
ZBX-10449 Trigger function last() for text values can be legally used in expressions
- Closed