All Projects → atomy → zabbix-discord

atomy / zabbix-discord

Licence: MIT license
Alertscript for zabbix to enable discord notifications

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to zabbix-discord

Thola
Tool for monitoring and provisioning network devices (mainly using SNMP) - monitoring check plugin
Stars: ✭ 179 (+562.96%)
Mutual labels:  zabbix
Kubernetes Zabbix
📦 Kubernetes Zabbix/Grafana cluster (bare metal, Google Computer Engine - GCE, Google Container Engine - GKE)
Stars: ✭ 244 (+803.7%)
Mutual labels:  zabbix
docker-alpine
Docker Alpine Linux Base Images
Stars: ✭ 27 (+0%)
Mutual labels:  zabbix
Zabbix manager
🍀 (1)安装后一键设置 (2)日常管理工具 (3)一键导出常用报表 (4)Zabbix API 二次开发
Stars: ✭ 192 (+611.11%)
Mutual labels:  zabbix
Ewp oms
自动化运维系统(saltstack+django+bootstrap),QQ群342844540,博客http://ywzhou.blog.51cto.com
Stars: ✭ 211 (+681.48%)
Mutual labels:  zabbix
zbxdb
Zabbix database monitoring, the easy and extendable way
Stars: ✭ 87 (+222.22%)
Mutual labels:  zabbix
Zabbix Haproxy
HAProxy Zabbix Discovery and Template
Stars: ✭ 169 (+525.93%)
Mutual labels:  zabbix
helm-zabbix
Helm Chart For Zabbix
Stars: ✭ 56 (+107.41%)
Mutual labels:  zabbix
Rabbitmq Zabbix
Zabbix RabbitMQ Configuration
Stars: ✭ 241 (+792.59%)
Mutual labels:  zabbix
zabbix-module-python
Embedded Python interpreter module for Zabbix
Stars: ✭ 32 (+18.52%)
Mutual labels:  zabbix
Zabbix
Zabbix Plugin
Stars: ✭ 195 (+622.22%)
Mutual labels:  zabbix
Zbx Smartctl
Templates and scripts for monitoring disks health with Zabbix and smartmontools
Stars: ✭ 206 (+662.96%)
Mutual labels:  zabbix
zabbix-cachet
Python script which sync Zabbix IT Services with Cachet
Stars: ✭ 78 (+188.89%)
Mutual labels:  zabbix
Wgcloud
linux运维监控工具,支持系统信息,内存,cpu,温度,磁盘空间及IO,硬盘smart,系统负载,网络流量等监控,API接口,大屏展示,拓扑图,进程监控,端口监控,docker监控,文件防篡改,日志监控,数据可视化,web ssh,堡垒机,指令下发批量执行,linux面板,探针,故障告警
Stars: ✭ 2,669 (+9785.19%)
Mutual labels:  zabbix
Email-Graph-ZABBIX Python
No description or website provided.
Stars: ✭ 16 (-40.74%)
Mutual labels:  zabbix
Zorka
Sophisticated monitoring agent for Java
Stars: ✭ 178 (+559.26%)
Mutual labels:  zabbix
Golang Stats Api Handler
Golang cpu, memory, gc, etc information api handler.
Stars: ✭ 247 (+814.81%)
Mutual labels:  zabbix
zabbix-pgsql-partitioning
Partitioning scripts for Zabbix on PostgreSQL
Stars: ✭ 26 (-3.7%)
Mutual labels:  zabbix
zapish
zapish - Zabbix API SHell binding
Stars: ✭ 28 (+3.7%)
Mutual labels:  zabbix
zabbix-mini-IPMI
Disk and CPU temperature monitoring for Linux, FreeBSD and Windows. LLD, trapper.
Stars: ✭ 82 (+203.7%)
Mutual labels:  zabbix

Overview

This is an alert-script for notifications to Discord, issued from Zabbix. It uses Discord-webhooks.

Image of Discord-Notifcation

Prerequisites

Installation

  1. set env WEBHOOK_URL to your previously setup discord-web-hook-url in discord.sh (e.g. https://discordapp.com/api/webhooks/xxx/yyy)
  2. (optional) set env ZABBIX_URL in bash-script discord.sh to aim towards your zabbix installation (e.g. https://zabbix.your-domain-bleh.foo/), this will be used to link the discord-messages to your zabbix installation
  3. configure AlertScriptsPath of your zabbix installation - Zabbix Howto
  4. add the discord.sh script to your zabbix AlertScriptsPath directory
  5. make sure zabbix can access that file and it also has execution permission (chmod +x discord.sh)
  6. configure your custom alertscript in zabbix - Zabbix Howto, script parameters are (as shown in zabbix documentation):
    {ALERT.SENDTO}
    {ALERT.SUBJECT}
    {ALERT.MESSAGE}
    
  7. add media to a zabbix-user to be notified that way, the "Send to"-field is the discord-channel name here, e.g. #zabbix.
  8. (optional) probably re-configure zabbix-action for different message-format

Additional Info

I build a regexp into the script to detect if it's either a PROBLEM, OK or Resolved (never got things like {EVENT.VALUE} working)

Example webhook for discord

$ curl -X POST --data '{ "embeds": [{"title": "<NOTIFICATION TITLE>", "url": "<NOTIFICATION URL>", "description": "<NOTIFICATION BODY>", "type": "link", "thumbnail": {"url": "https://storage.googleapis.com/material-design/publish/material_v_12/assets/0Bx4BSt6jniD7dFBUNHdrY05jQ3c/style-logos-product-intro-definition.png"}}] }' -H "Content-Type: application/json" https://discordapp.com/api/webhooks/xxx/yyyy

Zabbix Media type config

Image of Discord-Notifcation

Zabbix User media config

Image of Discord-Notifcation

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].