Skip to main content

A Python replacement for Zabbix sender and get.

Project description

zappix - a package for Zabbix sender and get.

zappix aims to be a drop-in replacement for zabbix_get as well as zabbix_sender. Its components are available not only as a module but from the command line as well.

zappix requires Python3 and is guaranteed to work with 3.6.

Instalation

zappix is not dependant on any third party modules. The easiest way to install it with pip:

pip install zappix

Usage

As mentioned earlier - zappix can be used both as a module inside of an application, as well as from the Command Line Interface.

As a module

At the moment zappix has two classes: Sender and Get. Both of which can be imported in the following manner:

>>> from zappix.sender import Sender
>>> from zappix.get import Get

Then you can send or get some data. Asuming both Zabbix Agent and Server run on localhost and default ports:

>>> getter = Get("127.0.0.1")
>>> getter.get_value("agent.ping")
1
>>> sender = Sender("127.0.0.1")
>>> sender.sender.send_value('testhost', 'test', 1)
{"processed": 1, "failed": 0, "total": 1, "seconds spent": 0.005}

CLI

To use this utility from the command line, you need to invoke python with the -m flag, followed by the module name and required parameters:

python -m zappix.sender -z 127.0.0.1 -s testhost -k testkey -o 1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zappix-0.3.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zappix-0.3.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file zappix-0.3.0.tar.gz.

File metadata

  • Download URL: zappix-0.3.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for zappix-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1dd7b6e63c0b89e89438b3dc5dda717ad511e9672cfae4e4e53b23996cb1dd04
MD5 64d8c6513016032c8658f89dca20dc20
BLAKE2b-256 e2888f031303239fd972d5042a51f4a7c598e817e5810166cd17911159fe17ea

See more details on using hashes here.

File details

Details for the file zappix-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: zappix-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for zappix-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df478d8d67e64f2259c00ca5f0e1da3616cf2afeb2e779d5588f20c8c5d104d3
MD5 d9bab03b9421e52f855fca5373308959
BLAKE2b-256 2a4a9ad1c843296f043fef73de26be5d728a7679b2cafe489ae451d0eddce294

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page