Item with vfs.file.regexp key doesn't return regexp value in case when file isn't UTF-8

XMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Trivial
    • 8.0.0beta1 (master)
    • Affects Version/s: 8.0.0alpha2
    • Component/s: Agent (G)

      Steps to reproduce:

      1. Configure Agent with old library PCRE2-10.30

        ./configure --prefix=$(pwd)/dist --enable-agent --with-libpcre2=/home/zabbix/workspace/downgraded_library/pcre2-10.30 -q

      2. Create item with key: vfs.file.regexp["/home/zabbix/workspace/japan_jis_coding_2","error"]
      3. Create file with encoding Shift_JIS (Japanese) and write some text like this:

        1. お母さんはフレームを洗っていました
        2. 良い天気
        3. error 4 こんにちは世界
        4. 良い天気
        5. お母さんはフレームを洗っていました
        6. error 3 hello
        7. お母さんはフレームを洗っていました

      4. Go to Monitoring->Latest data and check

      Result:
      Line 6 is returned: 6. error 3 hello

      Expected:
      Line 3 should be returned, similar as it is returned for Agent2:

      NOTE: in case, if key contains encoding vfs.file.regexp["/home/zabbix/workspace/japan_jis_coding_2","error",shift_jis], correct line is returned.

        1. image-2026-02-25-14-09-35-375.png
          4 kB
          Julija Zelezova
        2. image-2026-02-25-14-11-51-132.png
          3 kB
          Julija Zelezova

            Assignee:
            Vjaceslavs Smelovs
            Reporter:
            Julija Zelezova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: