Giter Club home page Giter Club logo

Comments (4)

neothematrix avatar neothematrix commented on August 17, 2024

hello holyzhou, what python version are you using? 2.x or 3.x? in case you're using 2.x, could you try with 3.x?

from pyzabbix.

neothematrix avatar neothematrix commented on August 17, 2024

It would be nice to have some more stack trace, not just the pyzabbix part, but also the py-vpoller part, to try and understand which part is having issues.
Just for your information, the "host" property in Zabbix cannot have chinese characters, only the "visible name" that is the "name" property.
I tried to create an host with chinese character in the "Visible name" using the API and it succeeded and then I tried the "host.get" API call and it returned the correctly encoded character:

>>> zapi.host.get(hostids='11364',output=['name'])
[{'hostid': '11364', 'name': u'\u8f93\u5165'}]

>>> print zapi.host.get(hostids='11364',output=['name'])[0]['name']
输入

so I suppose it may either be a problem in the encoded name returned by the vpoller call or something else, but we'll need more information

from pyzabbix.

dnaeon avatar dnaeon commented on August 17, 2024

Hi,

This is indeed related to Zabbix not supporting unicode characters as part of the machine name ({HOST.HOST} macro). Only unicode characters in the visible name are supported (the {HOST.NAME} macro).

Here are the corresponding issues in vPoller and Zabbix as well:

So, this issue can be closed as the issue is not related to pyzabbix or vPoller.

Regards,
Marin

from pyzabbix.

neothematrix avatar neothematrix commented on August 17, 2024

luke, I think we can close this

from pyzabbix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.