WEIGEL FORUM
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    CheckMK || Discord Notifications

    Automation
    1
    1
    25
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DerMeldosD
      DerMeldos
      last edited by

      SOURCE!!!

      1. Login via SSH to your Checkmk Server
      2. Become the Site User [sudo su - SITENAME]
      3. Go to local/share/check_mk/notifications/

      cd local/share/check_mk/notifications/
      

      4. Go to [Discord Checkmk Notification Script · GitHub](https://gist.github.com/n00rm/32f1334b1dd2efc40122fee36551ef17)
      5. Click on the RAW Button [It’s possible to skip this step and use the URL from Step 6.]
      effc3b6b-f4fe-4c7b-b0dd-e6dc1ca48b2c-image.png
      6. Copy the URL from your Browser
      [https://gist.githubusercontent.com/n00rm/32f1334b1dd2efc40122fee36551ef17/raw/4feee30fa2b183bef6fc619e897f541ec23befa8/discord.py]
      7.Go back to your Checkmk site terminal (SSH) and write wget and insert the copied URL.

      wget https://gist.githubusercontent.com/n00rm/32f1334b1dd2efc40122fee36551ef17/raw/4feee30fa2b183bef6fc619e897f541ec23befa8/discord.py
      

      8. Do a chmod +x on the downloaded file to make it executable by Checkmk.

      chmod +x discord.py
      

      9. Create Discord Webhook:
      00631069-28b6-4d7e-924a-fbd13a812a48-image.png
      2592f97d-d72b-4268-a8f8-579f377974e0-image.png
      9354aec5-50ea-4517-8116-727281dbe329-image.png
      Change the bot settings to your preferences and copy the webhook URL.
      10. Login to your Checkmk Webinterface and go to notification settings.
      11. Create a notification rule like this:
      8461bd48-0b41-4945-bbe8-c02ed8dca51b-image.png
      Copy the created webhook url into the parameters
      12. Change the notification conditions to your liking.
      13. Profit!

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB | Contributors