Comments (4)
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.
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.
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.
luke, I think we can close this
from pyzabbix.
Related Issues (20)
- Drop <python3.7 support ? HOT 1
- Allow to access Zabbix Object using __getitem__
- Unify Zabbix python librairies HOT 14
- 412 Client Error: Precondition Failed HOT 2
- Import template HOT 4
- Enable renovatebot for the pyzabbix repository
- Invalid params., Invalid parameter "/1": unexpected parameter "showsla". HOT 1
- httptest create with 68 character name get "value is too long" HOT 3
- How to use proxy HOT 2
- Updating Zabbix Global Macros HOT 1
- The average value from zapi.trend.get is different from GUI HOT 3
- Detecting bad creditentials HOT 2
- Login not working - Error -32602: Invalid params., Not authorized.', -32602 HOT 2
- Problem calling triggerprototype.delete methond HOT 1
- Feature request: zabbix sender HOT 1
- param from trigger.get are ignored HOT 6
- certificate verify failed error when trying to connect to Zabbix HOT 6
- Last release was not published to PyPI HOT 2
- Do not sent correct Content-Type
- In zabbix 7.0 the auth parameter is deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyzabbix.