skillfed

py-zabbix

Python module to work with zabbix.

py-zabbix v1.1.7 75.7K downloads/30d#14,690 on PyPI422
Copyleft license DORMANT released

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-zabbix

uv

uv add py-zabbix

poetry

poetry add py-zabbix

Installing 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

Development Status :: 5 - Production/StableLicense :: OSI Approved :: GNU General Public License v2 (GPLv2)Programming Language :: Python :: 2Programming Language :: Python :: 3Topic :: System :: MonitoringTopic :: System :: Networking :: MonitoringTopic :: System :: Systems Administration

Tags

zabbix api python clientzabbix monitoring integrationsend metrics to zabbixzabbix host queryzabbix trapper senderzabbix json-rpc python
zabbix-integrationmonitoring-client

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

pyzabbix

PyZabbix provides a Python interface to the…

copyleft · top 15,000 on PyPI

zabbix-api

Provides a Python client library for…

copyleft · top 15,000 on PyPI

zabbix-utils

Provides Python bindings for Zabbix API,…

permissive · top 15,000 on PyPI

python-logging-loki

A Python logging handler that sends log records…

permissive · top 5,000 on PyPI

kanboard

A Python client library that wraps the Kanboard…

permissive · top 15,000 on PyPI

google-cloud-monitoring

Python client library for Google Cloud…

permissive · top 1,000 on PyPI

json-logging

Configures Python's standard logging module to…

permissive · top 5,000 on PyPI

jsonrpcclient

Generates JSON-RPC request objects and parses…

unclear · top 15,000 on PyPI

statsd-tags

A Python client for sending metrics to…

permissive · top 15,000 on PyPI

pykodi

PyKodi provides an async Python interface to…

permissive · top 15,000 on PyPI