py-zabbix
Python module to work with zabbix.
What it is and what it does
py-zabbix is a Python client library for the Zabbix monitoring platform. It wraps Zabbix's JSON-RPC API to let you query monitored hosts, retrieve metrics, and manage Zabbix objects programmatically. It also provides a ZabbixSender class to push custom metrics into Zabbix trappers for real-time data ingestion.
The library is straightforward to use: instantiate a ZabbixAPI object with server credentials, then call methods like host.get() to retrieve data or use ZabbixSender to submit metrics. It supports context managers for automatic logout and includes logging that redacts passwords from debug output. However, the project is dormant—the last release was in April 2020 and the repository has not been actively maintained since late 2023, so compatibility with recent Zabbix versions and modern Python environments is uncertain.
Use it for:
- Query monitored hosts and retrieve their status, metrics, and configuration from a Zabbix server.
- Send custom application metrics to Zabbix trappers for centralized monitoring and alerting.
- Automate Zabbix administration tasks like bulk host lookups or metric collection in Python scripts.
- Integrate Zabbix monitoring data into Python-based dashboards or reporting tools.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python bindings to query and interact with Zabbix monitoring servers via their JSON-RPC API, and send metrics to Zabbix trappers.
Yes, if you are actively using Zabbix and need a Python API client and your Zabbix server version is compatible with the library's last release (April 2020). The package has no dependencies, installs easily, and works for basic API queries and metric sending. However, be aware that maintenance is dormant—test thoroughly in your environment before relying on it in production, and consider whether a more recently maintained fork or alternative exists if you need support for newer Zabbix versions.
Install
py-zabbix on PyPI
pip
pip install py-zabbixuv
uv add py-zabbixpoetry
poetry add py-zabbixInstalling py-zabbix
Before you install
Low install friction with no runtime dependencies. Maintenance is dormant: last release was 2020-04-29 and the repository has not been updated since 2023-11-09, so expect no active bug fixes or feature development.
License in practice
Licensed under GPLv2 (copyleft). Any code that links this library must be distributed under compatible terms; proprietary or closed-source projects should review licensing obligations carefully.
Quickstart
pip install py-zabbix
from pyzabbix.api import ZabbixAPI
zapi = ZabbixAPI(url='https://localhost/zabbix/', user='Admin', password='zabbix')
result = zapi.host.get(monitored_hosts=1, output='extend')
zapi.user.logout()
Requires a running Zabbix server accessible at the specified URL with valid credentials.
Verify before relying
- Whether the package works with current Zabbix server versions (last release was 2020-04-29).
- Python version compatibility beyond the classifiers (Python 2 and 3 listed, but Python 2 is EOL).
- Whether SSL/TLS certificate validation is configurable for HTTPS connections.
Package facts
| License | not declared (copyleft) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 2,298 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 75,653/month — #14,690 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: py_zabbix-1.1.7-py2-none-any.whl; py_zabbix-1.1.7-py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
pyzabbixPyZabbix provides a Python interface to the…
copyleft · top 15,000 on PyPI
zabbix-apiProvides a Python client library for…
copyleft · top 15,000 on PyPI
zabbix-utilsProvides Python bindings for Zabbix API,…
permissive · top 15,000 on PyPI
python-logging-lokiA Python logging handler that sends log records…
permissive · top 5,000 on PyPI
kanboardA Python client library that wraps the Kanboard…
permissive · top 15,000 on PyPI
google-cloud-monitoringPython client library for Google Cloud…
permissive · top 1,000 on PyPI
json-loggingConfigures Python's standard logging module to…
permissive · top 5,000 on PyPI
jsonrpcclientGenerates JSON-RPC request objects and parses…
unclear · top 15,000 on PyPI
statsd-tagsA Python client for sending metrics to…
permissive · top 15,000 on PyPI
pykodiPyKodi provides an async Python interface to…
permissive · top 15,000 on PyPI