Source control for Zabbix templates in Git
Project description
[!WARNING] This project is under active development, the code in the main branch should be relatively stable but things might break every now and then. The releases that can be installed with
pipare currently stable enough for testing. If you run into unexpected bugs, please create an issue. For questions about usage, please start a discussion.
ZabbixCI
ZabbixCI is a tool that adds continuous integration to Zabbix, allowing you to synchronize Zabbix assets with a Git repository. By using the Zabbix API, ZabbixCI can create, update, and delete assets across multiple Zabbix servers.
[!NOTE] ZabbixCI has no affiliation with Zabbix SIA.
Features
ZabbixCI provides the following features:
- Easily installable through pip or run it as a container image
- Fully configurable through cli arguments, config file and/or environment variables
- Supports HTTP(S) and SSH auth for Git
- Export assets from Zabbix and push them to Git
- Pull assets from Git and import them in Zabbix
- Only changed or new assets will be processed during Git push or Zabbix import actions
- Removes deleted assets automatically (unless black- or whitelisting is used)
- Use dry-run to verify behavior without changes to Zabbix or Git
- Build with parallelization in mind to speed up the process (can be scaled for your needs)
- (Optional) Support for private CA servers to verify certificates
- (Optional) Allow black-/whitelisting of assets (supports regexp)
- (Optional) Use separate branches for push and pull transactions
Additional template features
- Sync your templates with Git
- Built-in Zabbix version compatibility checking
- (Optional) Automatically populate empty vendor field with your own string
- (Optional) Allow automatic versioning of exported templates based on timestamps
Additional image (icons and backgrounds) features
- Sync your map images with Git
- Sync your icon-maps with Git
- Dynamically generate icons and backgrounds in predefined sizes
- Use
.pngor.svgfiles as sources for image generation
Installation
ZabbixCI is available on PyPI and can be installed using pip:
pip install zabbixci
Alternatively, you can use a container image to run ZabbixCI, see the available container images. See the Containerized Deployment documentation for more information.
Configuration
ZabbixCI requires parameters to be set as command line arguments, a yaml configuration or as environment variables. See the example configuration file.
We recommend passing environment variables when using the container image. Feel free to use the method that best suits your workflow.
Usage
We have a quickstart tutorial for first time users. Please see the Docs for extended details if needed.
License
This project is licensed under AGPL-3.0, see LICENSE for more information.
Contributing
Contributions are welcome! Please take a look at the following guidelines:
- Commit messages should follow the Gitmoji convention or prefix with types (feat:, fix:, style:, etc.).
- The codebase uses ruff for formatting and linting.
Star History
[!NOTE] If you like this project, please consider starring it on GitHub. ❤️
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zabbixci-0.4.0b6.tar.gz.
File metadata
- Download URL: zabbixci-0.4.0b6.tar.gz
- Upload date:
- Size: 266.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
129269b1b31a1a796c79193d890c1c76225989717635c7e0c26ce6525051626a
|
|
| MD5 |
63d879e39a18eb213380c59c3e76fab3
|
|
| BLAKE2b-256 |
90acfd30f97139243aec84937467db4959a4d66348dca521c38aa56472b9ee68
|
Provenance
The following attestation bundles were made for zabbixci-0.4.0b6.tar.gz:
Publisher:
pypi.yaml on retigra/ZabbixCI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zabbixci-0.4.0b6.tar.gz -
Subject digest:
129269b1b31a1a796c79193d890c1c76225989717635c7e0c26ce6525051626a - Sigstore transparency entry: 670696481
- Sigstore integration time:
-
Permalink:
retigra/ZabbixCI@c2c908f1a7f3fd54438f2cfc93f08ebe2d9b4c46 -
Branch / Tag:
refs/tags/v0.4.0-beta.6 - Owner: https://github.com/retigra
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@c2c908f1a7f3fd54438f2cfc93f08ebe2d9b4c46 -
Trigger Event:
release
-
Statement type:
File details
Details for the file zabbixci-0.4.0b6-py3-none-any.whl.
File metadata
- Download URL: zabbixci-0.4.0b6-py3-none-any.whl
- Upload date:
- Size: 50.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aed54fedc721465fc2d9ac2845cb21ceea46b3a49ac00925777f4116a63b761f
|
|
| MD5 |
139213a17276b5e062f6221c8030d622
|
|
| BLAKE2b-256 |
4445ac50288ef134ad41b36f9e1988b12c6c0a5232b65f7c845ee5e4253faa20
|
Provenance
The following attestation bundles were made for zabbixci-0.4.0b6-py3-none-any.whl:
Publisher:
pypi.yaml on retigra/ZabbixCI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zabbixci-0.4.0b6-py3-none-any.whl -
Subject digest:
aed54fedc721465fc2d9ac2845cb21ceea46b3a49ac00925777f4116a63b761f - Sigstore transparency entry: 670696508
- Sigstore integration time:
-
Permalink:
retigra/ZabbixCI@c2c908f1a7f3fd54438f2cfc93f08ebe2d9b4c46 -
Branch / Tag:
refs/tags/v0.4.0-beta.6 - Owner: https://github.com/retigra
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@c2c908f1a7f3fd54438f2cfc93f08ebe2d9b4c46 -
Trigger Event:
release
-
Statement type: