zabbix-cachet
zabbix-cachet copied to clipboard
Python script which sync Zabbix IT Services with Cachet
Zabbix-Cachet
This is python script which provide 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_servicefor 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.

Cachet

Requirements
Here are version that was successfully tested:
- Cachet 2.2, 2.3, 2.4, 2.5
- Zabbix 2.2, 2.4, 3.0, 3.2, 4.0, 4.2, 5.2
- python 2.7+
Installation
Docker Installation
- Create
/etc/zabbix-cachet.ymlfile basedconfig-example.yml. - Run Docker container
docker run --name zabbix-cachet -v /etc/zabbix-cachet.yml:/config.yml qk4l/zabbix-cachet - Drink a cup of tea (optional)
Git
- Clone this repository
- Rename
config-example.ymltoconfig.ymland fill a file with your settings. - Install python libs from
requirements.txt - Launch
zabbix-cachet.py
Apt
- Add official Zabbix-Cachet PPA:
add-apt-repository ppa:reg-tem4uk/zabbix-cachet apt-get update - Install the package:
apt-get install zabbix-cachet - Configure it:
nano /etc/zabbix-cachet.yml - 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.