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

Preprocessing validation not working when string is empty

    XMLWordPrintable

Details

    • Problem report
    • Status: Confirmed
    • Major
    • Resolution: Unresolved
    • 6.0.8
    • None
    • Server (S)
    • None

    Description

      There is an preprocessing item Matches regular expression with Custom on fail rule.

       

      According to the documentation:

      Matches regular expression Specify a regular expression that a value must match.
      If you mark the Custom on fail checkbox, the item will not become unsupported in case of failed preprocessing step and it is possible to specify custom error handling options: either to discard the value, set a specified value, or set a specified error message.

       

      When testing this rule with empty string, it's working as expected, that is, message "domain not resolved" is presented because the string (empty) does not match the specific regular expression.

       

      But when I check latest value for the item, there is no value. It was supposed to be "domain not resolved".

       

      If a non-empty string is processed by the item and the value does not match the regular expression, value "domain not resolved" is presented for the item.

       

       

      Expected behavior: even if an empty string is processed, if value does not match regular expression, Custom on fail should work.

       

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            ropesca Rodrigo P
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: