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

trigger function count() with eq on string not working

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Commercial support required
    • Icon: Major Major
    • None
    • 3.4.12
    • None
    • None
    • ubuntu containers (official) on ubuntu

      Steps to reproduce:

      Trigger Template should count the number of values in the last 2 samples which equals "red". Trigger fires if greater than 1 ( so if both samples are "red" ).

      Problem: {Infotech - vPoller Proxy - Template vSphere Host:vpoller["host.get", "{$VSPHERE.HOST}", "{HOST.CONN}","summary.overallStatus", "null"].count(#2,"red",eq)}>1

      Result:

      Trigger is NOT fired even if both samples are "red".

      Expected:

      Trigger should fire on both samples are "red".

       

      Workaround:

      Problem: (({Infotech - vPoller Proxy - Template vSphere Host:vpoller["host.get", "{$VSPHERE.HOST}", "{HOST.CONN}","summary.overallStatus", "null"].count(#2,red,iregexp*)*})=2)

      Switching to iregexp/regexp works. The trigger fires if last two samples are "red".

            Unassigned Unassigned
            rockaut Markus Fischbacher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: