Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-18410

Trigger function strlen #num does not work

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.3
    • Component/s: Server (S)
    • Labels:
      None
    • Environment:
      New zabbix installation on CentOS7 with zabbix-server-pgsql, zabbix-web-pgsql-scl and zabbix-apache-conf-scl packages
    • Team:
      Team C
    • Sprint:
      Sprint 69 (Oct 2020), Sprint 70 (Nov 2020), Sprint 71 (Dec 2020), Sprint 72 (Jan 2021)
    • Story Points:
      0.25

      Description

      In trigger function strlen() the strlen(#num) does not work according to manual https://www.zabbix.com/documentation/current/manual/appendix/triggers/functions but seems to be ignored instead.

       

      To reproduce:

      • create empty file /var/tmp/tstfile on zabbix server
      • create new Item on Zabbix Server 'test' with
        • Type Zabbix Agent
        • Key vfs.file.contents[/var/tmp/tstfile]
        • Type of information Text
      • create Trigger 'strln-test-trigger'
        • Expression:
          {Zabbix server:vfs.file.contents[/var/tmp/tstfile].strlen(#4)}>0 

        Observation: when adding some text to /var/tmp/tstfile, the trigger is active immediately after the next check, instead of  the 4th check.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dgoloscapov Dmitrijs Goloscapovs
              Reporter:
              gschuetze Georg Schuetze
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: