Skip to main content

workflow badge

Zabbix Async Sender module for Python

Install

pip install zabbix-sender-async

Examples

import asyncio
from zabbixasync.sender import AsyncSender, ItemData

async def sendmetrics():
    sender = AsyncSender('localhost', 10051)
    metric = ItemData(host='hostname', key='test.metric.text', value='test package import')
    result = await sender.send(metric)
    print(result)

asyncio.run(sendmetrics())

Expected result:

ZabbixResponse(processed=1, failed=0, total=1, seconds_spent=0.00019, response='success')

TLS-PSK example (compatible with Zabbix sender PSK mode):

import asyncio
from zabbixasync.sender import AsyncSender, ItemData

async def sendmetrics():
    sender = AsyncSender(
        'zabbix-proxy.local',
        10051,
        tls_connect='psk',
        tls_psk_identity='my-host-psk',
        tls_psk_file='/etc/zabbix/zabbix_agent2.psk',
    )
    metric = ItemData(host='my-host', key='app.metric', value='42')
    result = await sender.send(metric)
    print(result)

asyncio.run(sendmetrics())

Metadata

Release files for zabbix-sender-async 1.1.1

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

Source distribution (sdist)

Source distribution for zabbix-sender-async 1.1.1
File Size Uploaded
zabbix_sender_async-1.1.1.tar.gz 35.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zabbix-sender-async 1.1.1
File Interpreter ABI Platform
zabbix_sender_async-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 65.1 kB

Release files / zabbix_sender_async-1.1.1.tar.gz

Download URL zabbix_sender_async-1.1.1.tar.gz
Size 35.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2d3d08c35e2a29ca29d0e4fc95e3b6c84c4ee28c286ec747a8730006cf627603
BLAKE2b-256 checksum
How to use checksums
a050caf36c7f3ce243f1538084cc931e7b4c8e66d533a6fc2474c99aa58d60d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / zabbix_sender_async-1.1.1-py3-none-any.whl

Download URL zabbix_sender_async-1.1.1-py3-none-any.whl
Size 29.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05989c92edd159a755931ff7a05504628c896bd83c30334b5171e27704b41c4a
BLAKE2b-256 checksum
How to use checksums
43f4b95f0c39aa0f4b83d0345e4a903cae570898b3cac055f3ade5468be3ce6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.0.4

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