Skip to main content

Python daemon which provides synchronisation between Zabbix IT Services and Cachet

Project description

Zabbix-Cachet

This is python script which provides synchronisation between Zabbix IT Services and Cachet

Description

The idea of Zabbix-Cachet is providing the easiest way to export Zabbix terms to Cachet. With this script you can maintain Cachet though Zabbix.

Zabbix-Cachet reads pre-configured Zabbix IT Services and automatically creates Cachet components. After that Zabbix-Cachet periodically checks Zabbix triggers (that linked to you IT Services) and manipulate with Cachet incidents and Component statuses based on triggers.

Zabbix-Cachet communicate with Zabbix and Cachet via API interface. To make it works you need a zabbix user with sufficient permissions to read triggers, items of services that is exported to Cachet and Cachet`s API key.

Features

  • Automatically creates Cachet Components and Components group
  • Automatically creates Cachet Incidents and update them with acknowledgement messages
  • Allow to specify root IT service where Zabbix-Cachet will work

Example

Zabbix IT Services.

  • Cachet - root_service for zabbix-cachet script.
  • Bitbucket, Network Connectivity - parent services. They will be Components Groups in Cachet.
  • GIT https, GIT ssh - Components in Cachet. Do not forget to set Zabbix trigger to this group.

Zabbix IT Services

Cachet

Cachet Components

Requirements

  • Cachet 2.2, 2.3
  • Zabbix 2.X, 3.X, 4.0, 5.0, 6.0, 6.4
  • python 3.6+

Installation

Docker Installation

  1. Create /etc/zabbix-cachet.yml file based config-example.yml.
  2. Run Docker container
    docker run --name zabbix-cachet -v /etc/zabbix-cachet.yml:/config.yml qk4l/zabbix-cachet
    
  3. Drink a cup of tea (optional)

Python package

  1. Install python package via pip
    pip install zabbix-cachet
    
  2. Rename config-example.yml to config.yml and fill a file with your settings.
  3. Define CONFIG_FILE environment variable which point to your config.yml or change current work directory to folder with config
  4. Launch zabbix-cachet

Apt (outdated release)

  1. Add official Zabbix-Cachet PPA:
    add-apt-repository ppa:reg-tem4uk/zabbix-cachet
    apt-get update
    
  2. Install the package: apt-get install zabbix-cachet
  3. Configure it: nano /etc/zabbix-cachet.yml
  4. Restart it: systemctl enable zabbix-cachet && systemctl restart zabbix-cachet

Configuration

Settings are storing in config.yml file which should be placed in script's working directory. If you want to use another path for config.yml use CONFIG_FILE environment variable.

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

zabbix_cachet-2.1.2.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

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

zabbix_cachet-2.1.2-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file zabbix_cachet-2.1.2.tar.gz.

File metadata

  • Download URL: zabbix_cachet-2.1.2.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-35-generic

File hashes

Hashes for zabbix_cachet-2.1.2.tar.gz
Algorithm Hash digest
SHA256 53777f9facd9096daf8e74a698ea11e35883b6522f1c687f0826fd0da5ff4cd7
MD5 7a836884a19713e250f5fde96f31d0d2
BLAKE2b-256 1b1983aa2d1682a671566e525f62cd2d9de6418ef2532dbd8e7fbe1925ea7c89

See more details on using hashes here.

File details

Details for the file zabbix_cachet-2.1.2-py3-none-any.whl.

File metadata

  • Download URL: zabbix_cachet-2.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-35-generic

File hashes

Hashes for zabbix_cachet-2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 740ddddde3d397e21f7230b3dab996fe77fd780a4950ae07693ed06569de3c52
MD5 8a056fa640d7fa738cf2118df0e075d3
BLAKE2b-256 5bf9f4ab79a06a906018f1268797bdd21a5fa0535df291c1d205d6f5bbad2e45

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