-
Problem report
-
Resolution: Cannot Reproduce
-
Trivial
-
None
-
5.4.1
-
None
-
Debian 10.9
Zabbix 5.4.1
php 7.3.27
mysql Ver 15.1 Distrib 10.3.27-MariaDB
Steps to reproduce:
- Create an Item on a Linux host that monitors a log file, using a regex: logrt[/var/log/syslog,"(?i)error:"]
- Create a trigger using the following expression: length(last(/hostname.com/logrt[/var/log/syslog,"(?i)error:"]))>=1
- Using the Expression Constructor, test the expression. Note that when text is entered in the box it returns true, when text is removed from the box it returns false.
- Save the trigger with the expression.
- Note the error that is shown "Cannot convert expression result of type "string" to floating point value"
Result:
The trigger is saved/updated, but shows an error "Cannot convert expression result of type "string" to floating point value"
Trigger does not work and cannot be used.
Expected:
I expected that length would return a number that that is either 0, or the number of characters in {{last(/hostname.com/logrt[/var/log/syslog,"(?i)error:"]) }}and be triggerable on this.