Skip to main content

aiozabbix

aiozabbix is a Python package that provides an asynchronous interface to the Zabbix API, using aiohttp. It is based on PyZabbix.

Example usage

The interface mimics PyZabbix as closely as possible:

import asyncio

from aiozabbix import ZabbixAPI


async def main():
    zapi = ZabbixAPI('https://zabbixserver.example.com/zabbix')
    await zapi.login('zabbix user')
    hosts = await zapi.host.get(output=['host', 'hostid', 'name', 'status'])
    print(hosts)


if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())
    loop.close()

To customize the HTTP requests, for example to perform HTTP basic authentication, you need to provide your own aiohttp.ClientSession:

import asyncio

import aiohttp
from aiozabbix import ZabbixAPI


async def main():
    auth = aiohttp.BasicAuth('zabbix user', password='zabbix password')
    async with aiohttp.ClientSession(auth=auth) as session:
        zapi = ZabbixAPI('https://zabbixserver.example.com/zabbix', client_session=session)
        await zapi.login('zabbix user')
        hosts = await zapi.host.get(output=['host', 'hostid', 'name', 'status'])
        print(hosts)


if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())
    loop.close()

Release files for aiozabbix 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiozabbix 1.4.0
File Size Uploaded
aiozabbix-1.4.0.tar.gz 33.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aiozabbix 1.4.0
File Interpreter ABI Platform
aiozabbix-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 60.6 kB

Release files / aiozabbix-1.4.0.tar.gz

Download URL aiozabbix-1.4.0.tar.gz
Size 33.2 kB
Tags Source
SHA-256 checksum
How to use checksums
adedf811b5a26e0a237f2cf6d8d9435a91e1d4bda2e9ea759e851308d0e3c7ad
BLAKE2b-256 checksum
How to use checksums
06b86492c929038696a013e0ad7956f03dcd5fda61079f28d4ffd7c657f52bfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / aiozabbix-1.4.0-py3-none-any.whl

Download URL aiozabbix-1.4.0-py3-none-any.whl
Size 27.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23ffc4edfe650c0464788a45b68ed2c7b527254adb091614619db753139098db
BLAKE2b-256 checksum
How to use checksums
b41e179f94554712062b24e16de26626b9bbcb3365a8ec1d0f86d0312e5a8479
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.2

2 release files

1.1.1

1 release file

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page