Zabbix API wrapper
Project description
zabbix-client is a Zabbix API wrapper written in Python. It works on Python 2.6+ and 3.2+.
Zabbix API
Zabbix API was introduced in Zabbix 1.8 and allows you to create, update and fetch Zabbix objects (like hosts, items, graphs and others) through the JSON-RPC 2.0 protocol.
Zabbix API documentation:
JSON-RPC documentation:
zabbix-client supports all Zabbix versions including the JSON-RPC API, starting with Zabbix 1.8.
Usage
Calling a method that does not require authentication:
>>> from zabbix_client import ZabbixServerProxy >>> s = ZabbixServerProxy('http://localhost/zabbix') >>> s.apiinfo.version() '2.0.12'
Calling a method that requires previous authentication:
>>> from zabbix_client import ZabbixServerProxy >>> s = ZabbixServerProxy('http://localhost/zabbix') >>> s.user.login(user='Admin', password='zabbix') '44cfb35933e3e75ef51988845ab15e8b' >>> s.host.get(output=['hostid', 'host']) [{'host': 'Zabbix server', 'hostid': '10084'}, {'host': 'Test', 'hostid': '10085'}] >>> s.user.logout() True
License
Licensed under the Apache License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zabbix-client-0.1.2.tar.gz
(5.6 kB
view details)
File details
Details for the file zabbix-client-0.1.2.tar.gz
.
File metadata
- Download URL: zabbix-client-0.1.2.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/35.0.2 requests-toolbelt/0.9.1 tqdm/4.19.5 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e3807177b7d1c2d4c3653160dbf5e3535beb2b8f61cced31948ccc1051b4850 |
|
MD5 | d674465da652dfad8f1173a43ae6c75c |
|
BLAKE2b-256 | 28794e69bdc5471b5d8560a6f8de89971319535af9268cbe57b6afda6aafd944 |