{"id":21724,"library":"py-zabbix","title":"py-zabbix","description":"Python module to work with Zabbix API and send trapper data. Version 1.1.7. Low release cadence, maintained sporadically.","status":"active","version":"1.1.7","language":"python","source_language":"en","source_url":"https://github.com/blacked/py-zabbix","tags":["zabbix","api","monitoring","sender"],"install":[{"cmd":"pip install py-zabbix","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Hyphen in library name but underscore in Python package","wrong":"from py_zabbix import ZabbixAPI","symbol":"ZabbixAPI","correct":"from pyzabbix import ZabbixAPI"},{"note":"","wrong":"","symbol":"ZabbixMetric","correct":"from pyzabbix import ZabbixMetric"},{"note":"","wrong":"","symbol":"ZabbixSender","correct":"from pyzabbix import ZabbixSender"}],"quickstart":{"code":"from pyzabbix import ZabbixAPI\n\nzapi = ZabbixAPI('http://zabbix.example.com')\nzapi.login('user', 'password')\nprint('Connected to Zabbix API version %s' % zapi.api_version())","lang":"python","description":"Connect to Zabbix API and print the API version."},"warnings":[{"fix":"Use 'from pyzabbix import ...' (no hyphen).","message":"Package name on PyPI has a hyphen (py-zabbix), but Python import uses underscore (pyzabbix).","severity":"gotcha","affected_versions":"all"},{"fix":"Use ZabbixAPI(token='...') constructor parameter if available (v1.1.7+).","message":"Login method ZabbixAPI.login() accepts username and password in plain text; API tokens not natively supported in older versions.","severity":"deprecated","affected_versions":"<1.1.7"},{"fix":"Explicitly set chunk_size when creating ZabbixSender object.","message":"ZabbixSender must have correct chunk_size for large data. Default may cause errors.","severity":"gotcha","affected_versions":">=1.1.3"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'pip install py-zabbix' and import as 'from pyzabbix import ...'.","cause":"Installed py-zabbix but imported with wrong name or not installed.","error":"ModuleNotFoundError: No module named 'pyzabbix'"},{"fix":"Ensure Zabbix server version matches py-zabbix supported versions; check API endpoint URL.","cause":"Using JSON-RPC call with incompatible Zabbix version or malformed request.","error":"zabbix.api.ZabbixAPIException: Invalid JSON. Check Zabbix server version."},{"fix":"Upgrade py-zabbix to 1.1.3+ with 'pip install --upgrade py-zabbix'.","cause":"Older version of py-zabbix without ZabbixSender class.","error":"AttributeError: module 'pyzabbix' has no attribute 'ZabbixSender'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}