Zabbix Slack



  1. Zabbix Slack Download
  2. Zabbix And Slack
  3. Zabbix Slack.sh
  4. Zabbix Slack Vs

To receive notifications in Slack, you need to create a Zabbix user and add Media with the Slack type. The Send to field can contain several variants of values: Channel name in #channelname format User.

Today I’ve configured my Zabbix Server to automatically send alerts to the #alerting channel of my slack team.

The path 'templates/media/slack/mediaslack.xml' does not exist at revision 'refs/heads/master'. Zabbix 5 Course: have a slack account, and I create an app for it that accepts incoming web hooks.I get the sample URL from the.

To to this, you have to create un new Incoming WebHook in your slack Team.

  • Click on your team, select App and Integration.
  • Search for Incoming Webhook
  • Click « Add a configuration »
  • Configure the webhook with the default destination topic, etc..
  • Copy the generated URL in your clipboard, you will need it later. The webhook url is something like https://hooks.slack.com/services/ABCDEFGHIJKJMNOPQRSTUVWXYZ
  • Result: Messages in Slack is not working as expected Expected: Messages sends to Slack without errors, resolve and update works too Comment:. After some investigations i've found the reason. Part of script from tutorial tries to get permalink for Slack message to attach it as tag to Problem in Zabbix.
  • Hello Guys, I have a problem to integrate zabbix and slack. I configure it follow this instruction: with include new slack app creation's method.

Next Go to your Zabbix Server.

Edit the /etc/zabbix/zabbix_server.conf file to specify a correct Path for AlertScriptPath, for example :

Zabbix Slack

Then go to the /usr/share/zabbix/alertscripts directory and create a tiny shell script post_to_slack.sh :

Then Go to The Zabbix IHM and add a new media type of type script, with the script name you created before (Administration > Media Types > create media type)

Add 2 parameters for your script :

  1. The first one is the Slack Webhook URL you generated in step 1,
  2. the second is the Alert Subject.

Then, Configure a Zabbix Actions (Configuration > Actions) to send a message to slack media for the admin user.

Zabbix Slack Download

Set a correct Subject message to get all the information you need. For example :

Finaly edit the Zabbix admin user and add a new media of type slack.

That’s It !

Now all your Zabbix Alerts are sent to your slack #alerting Channel o/

PS : You can configure multiple slack media type to send alerts to multiple webhooks, according to the Host group.

Zabbix And Slack

Special Offer

Zabbix Monitoring Course Discount $11.99
https://www.udemy.com/course/zabbix-monitoring/?couponCode=607976806882D016D221
Offer expires in hours. Be quick and share with your friends and colleagues.

Special Offer

Grafana Course Discount $13.99
https://www.udemy.com/course/grafana-tutorial/?couponCode=D04B41D2EF297CC83032
Offer expires in hours. Be quick and share with your friends and colleagues.

Special Offer

Prometheus Course Discount $9.99
https://www.udemy.com/course/prometheus/?couponCode=EB3123B9535131F1237F
Offer expires in hours. Be quick and share with your friends and colleagues.

Special Offer

Threejs Course Discount $9.99
https://www.udemy.com/course/threejs-tutorials/?couponCode=416F66CD4614B1E0FD02
Offer expires in hours. Be quick and share with your friends and colleagues.

Video Lecture

Description

We set up a Slack Media Type for Trigger alerts in Zabbix.

  1. Create or join a Workspace

  2. Create a Channel

  3. Create an App.

  4. Add the OAuth Scope chat:write

  5. Press the button Install App to Workspace

  6. Allow your APP to access your workspace so that it can send messages to your new Channel.

  7. Copy the Bot User OAuth Access Token and place it in the Zabbix Slack Media Type Bot Token field.

  8. Enable the Slack Media Type

  9. Add the Problem and Problem Recovery templates to the Slack Media Type

  10. In Slack, go to your Channel, and press the Add an app option, and Add your APP.

  11. Add a global Macro for {$ZABBIX_URL} and set its value to the full url of your Zabbix system. This will be used in the Slack messages to create a link to the problem information contained in the Zabbix UI.

  12. Add the Slack Media Type to your user, and select which severity to receive alerts for.

  13. Ensure the Trigger Action for Report problems to Zabbix administrators is enabled.

Zabbix slack vs

Optional

ZabbixZabbix Slack

slack_mode

  • alarm (default)
    • Update messages will be attached as replies to the Slack message thread
    • Recovery messages from Zabbix will update the initial Problem message
  • event
    • Recovery and update messages from Zabbix will be posted as new messages

Zabbix Slack.sh

Troubleshooting

If you get an error 'no message for media type', then go into the Media type settings, and then its Message Templates tab and then add the Problem and Problem Recovery templates if they don't already exist, and then update.

Zabbix Slack Vs

If you get an error 'not in channel' when sending the alert, you need to add your Slack APP to your Channel using the Slack UI.