Ad Widget

Collapse

How can I use zabbix_sender to send UTF-8 text (like Chinese) to Zabbix server?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tonnydp
    Junior Member
    • Oct 2018
    • 5

    #1

    How can I use zabbix_sender to send UTF-8 text (like Chinese) to Zabbix server?

    I tried several ways, but the result displayed in the frontend of Zabbix is not correct.
    Thank you!
  • tonnydp
    Junior Member
    • Oct 2018
    • 5

    #2
    It's Zabbix 3.4, and it's ok when zabbix_sender send ascii texts, they are displayed correctly, just doesn't work with Chinese text.

    Comment

    • tonnydp
      Junior Member
      • Oct 2018
      • 5

      #3
      Is there anyone?

      Comment


      • Atsushi
        Atsushi commented
        Editing a comment
        In the environment of Zabbix 3.4.14 used by me, it is possible to send UTF-8 characters with zabbix_sender without problems.

        Please give details of the following information.
        - Detailed version of Zabbix you are using
        - Platform that executed zabbix_sender
        - How to run zabbix_sender
        - Error messages and logs when command executed
        - Database character set
    • tonnydp
      Junior Member
      • Oct 2018
      • 5

      #4
      1. Zabbix 3.0.13
      2. Windows Server 2012 R2
      3. zabbix_sender.exe -s host -z 10.10.1.1 -k key -o 测试
      4. no errors or logs
      5. mysql character set is utf8

      Thank you.

      Comment


      • Atsushi
        Atsushi commented
        Editing a comment
        Are you using gb2312 or big5 as Windows code page?
        In that case, since it is the code page on the Windows command prompt, it can not be sent with UTF-8.
        Also, since the command prompt adds extra code, it will be difficult to send it directly with zabbix_sender.exe directly.

        Consider how to load the contents output to the file into zabbix_sender.exe, or how to obtain the value using the file monitoring items output to the file.
    • tonnydp
      Junior Member
      • Oct 2018
      • 5

      #5
      Thank you, I think it is the problem, I will have a try.

      Comment

      Working...