Skip to content
No description, website, or topics provided.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
core
README.md
zabbix_graph_add.py
zabbix_graph_get.py
zabbix_graph_mapi_add.py
zabbix_history_get.py
zabbix_hostInterface_update.py
zabbix_host_add.py
zabbix_host_delete.py
zabbix_host_get.py
zabbix_host_massadd.py
zabbix_host_massremove.py
zabbix_host_massupdate.py
zabbix_host_update.py
zabbix_hostgroup_massadd.py
zabbix_hostgroup_massremove.py
zabbix_item_add.py
zabbix_item_delete.py
zabbix_item_get.py
zabbix_template_massadd.py
zabbix_template_massremove.py
zabbix_trigger_add.py

README.md

pyzabbix

pyzabbix is a python module for working with the Zabbix API.

The Zabbix API is a web based API and is shipped as part of the web frontend. It uses the JSON-RPC 2.0 protocol which means two things:

  • The API consists of a set of separate methods,like "user.login","item.create",etc.
  • Requests and responses between the clients and the API are encoded using the JSON format.

There are some examples using this method:

[root@test Zabbix-PyZabbix]# python zabbix_host_delete.py -h
Usage: zabbix_host_delete.py [options]

Options:
  -h, --help            show this help message and exit
  -s SERVER, --server=SERVER
                        (REQUIRED)Zabbix Server URL.
  -u USERNAME, --username=USERNAME
                        (REQUIRED)Username (Will prompt if not given).
  -p PASSWORD, --password=PASSWORD
                        (REQUIRED)Password (Will prompt if not given).
  -H HOSTNAME, --hostname=HOSTNAME
                        (REQUIRED)hostname for hosts.
  -f FILE, --file=FILE  Load values from input file. Specify - for standard
                        input Each line of file contains whitespace delimited:
                        <hostname>
You can’t perform that action at this time.