Infrastructure / Zabbix It’s surprisingly easy to setup Zabbix to send notifications to Slack including customizing which notifications go to which Slack channels and what to include on the Slack message. There is official documentation for Zabbix 4.4 available here. Slack is popular messenger. Having a webhook integration that is shipped with Zabbix will result in more efficient monitoring. Zabbix integration with Slack I want to be clear from the beginning, I am not going to write about Slackware (the distribution) but Slack (the platform/client chat). Zabbix is a solution for monitoring applications, networks and servers. Zabbix Alert Notification Script for Slack. Can use by “Remote command”. But can’t use by “Media type”. If use by python2.6 (like CentOS6.x), install argparse module. Ex, $ sudo yum install python-argparse. Zabbix AlertScript for Slack.com chat. Contribute to ericoc/zabbix-slack-alertscript development by creating an account on GitHub.
Released:
command-line tool for Zabbix Alert Notification to Slack.
Project description
Zabbix Alert Notification Script for Slack. by pure python.
Can use by “Remote command”. But can’t use by “Media type”.
if use by python2.6 (like CentOS6.x), install argparse module. ex,
Install
In your zabbix server,
or you can download directly using wget, curl.
(if necessary, use sudo. )
set this script your zabbix server.
Zabbix Https
put file and add mode to execute.
Usage
get incoming-webhook url for your slack. from incoming webhook integration.
In the WebUI of your zabbix server.
[Configureation]
[Action]
Choose ‘Trigger’ at Event source and Create Action.
if “Recovery message” checked, Uncheck the checkbox.
- At [Conditions] tab, add Trigger value = OK to Conditions.
- Trigger value = OK and Trigger value = PROBLEM are in Conditions.
- At [Operations] tab, add Remote Command
Operation type : Remote Command
Targeta list : any host (ex. Current host)
Type : Custom script
Execute on : Zabbix server
Commands:
(if directly download, replace zbx2slack to zbx2slack.py.)
AUTHOR
Kei Iwasaki <me@laughk.org>
Release historyRelease notifications | RSS feed
0.1.1
0.1.0
0.0.1
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size zbx2slack-0.1.1.tar.gz (4.1 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for zbx2slack-0.1.1.tar.gz
Zabbix Cloud
Algorithm | Hash digest |
---|---|
SHA256 | eb980ebcf85c03979e66456e4797d674677c68453cdfce0e53a0222f31ad84f2 |
MD5 | 944f3cf6bd9ad599999a5aaa4ce6bc5a |
BLAKE2-256 | cf3bc859681791c17a0c2114a83ff21c19d4613246a85d1b8b31791ac264149c |