Hi there,
I would like to compare two text values with function last.
Is it possible? In manual it is clearly said that this function can be used on strings, but when I make a trigger like:
{host:item.last(0)}={host:item.last(0,3600)} or
{host:item.last(0)}={host:item.last(#10)}
I only get "Format error or unsupported operator. Exp: [01 January 2013 00:00:00]"
Can someone help?
I didn't want to make external script+sender to firstly reconfigure values I get and lastly send them.
I just need to compare two values (the change is for example on midnight, from 01 January 2013 00:00:00 to 02 January 2013 00:00:00
if after midnight that value does not change, than I have a problem.
zbx: 2.2.1
P.S. function change/abschange is not good in my case because they only compare newest and previous values.
I would like to compare two text values with function last.
Is it possible? In manual it is clearly said that this function can be used on strings, but when I make a trigger like:
{host:item.last(0)}={host:item.last(0,3600)} or
{host:item.last(0)}={host:item.last(#10)}
I only get "Format error or unsupported operator. Exp: [01 January 2013 00:00:00]"
Can someone help?
I didn't want to make external script+sender to firstly reconfigure values I get and lastly send them.
I just need to compare two values (the change is for example on midnight, from 01 January 2013 00:00:00 to 02 January 2013 00:00:00
if after midnight that value does not change, than I have a problem.
zbx: 2.2.1
P.S. function change/abschange is not good in my case because they only compare newest and previous values.
Comment