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

Failed to convert from encoding UTF-16 to utf8. Error: [0x00000057]

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 7.0.5, 7.0.6
    • Agent (G)
    • None
    • Windows Server 2022, Windows Server 2016
      zabbix_agent 7.0.0 - 7.0.6
      zabbix_agent2 7.0.0 - 7.0.6

      Steps to reproduce:

      At monitored Windows host create Zabbix (active) item with type information log:
      log["C:\ERRORLOG2",,UTF-16]

      part of ERRORLOG2 file is included.

      It is a log form MSSQL and problematic is the empty line between 2024-11-13 23:03:30.75 and 2024-11-13 23:03:30.77 which is correctly handled by linux agents but not agents on windows.

      file -b ERRORLOG2
      Unicode text, UTF-16, little-endian text, with very long lines (517), with CRLF line terminators

      Result:
      After parsing first three log lines, I get Unsupported item state with message:

      Failed to convert from encoding UTF-16 to utf8. Error: [0x00000057] The parameter is incorrect..

      Expected:
      Supported item.

            wrawicki Wojciech Rawicki
            kotlinj Jirka Kotlin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: