Installation

zabbix_utils can be installed using any of the methods described below.

Requirements:

  • Zabbix 6.0 or later (tested on 6.0, 7.0, 7.2, 7.4)
  • Python 3.8 or later (tested on 3.8–3.13)
  • aiohttp async HTTP framework (required only for asynchronous mode)

Python Package Index (PyPI)

This is the most common method for most environments:

pip install zabbix_utils
       pip install zabbix_utils[async] # Only for async support

Zabbix repository

Use this method if you prefer managing dependencies through your system's package manager.

Download Zabbix packages for your Linux distribution and then run the following commands.

On RHEL and derivatives:

dnf install python3-zabbix-utils
       dnf install epel-release # Only for async support
       dnf install python3-aiohttp # Only for async support

On Debian/Ubuntu and derivatives:

apt install python3-zabbix-utils
       apt install python3-aiohttp # Only for async support

Source (GitHub)

Use this method if you prefer the latest development version:

git clone https://github.com/zabbix/python-zabbix-utils
       cd python-zabbix-utils/
       pip install -r requirements.txt # Only for async support
       python3 setup.py install

To install dependencies required for asynchronous mode, you can also use one of the methods described above.