Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Notifications on Discord

Notifications on Discord

Scheduled Pinned Locked Moved Support
2 Posts 1 Posters 30.4k Views
  • 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.
  • T
    T
    tiago_tntbizhub
    wrote on last edited by
    #1

    Hi all!

    We use Discord a lot in the company and we created a webhook for server monitoring. We are using NetXMS 4.X on Ubuntu Linux 20.04.

    After searching a lot on Google for a NetXMS integration and reading docs, the closest I got was an integration with Slack (that we don't use) , nothing about Discord.

    I have created a "Actions Configuration" with "Execute command on management server" and Command ->

     /usr/bin/curl -s -i -H "Accept: application/json" -H "Content-Type:application/json" -X POST --data "{\"content\": \"TEST NODE DOWN\"}"  https://discord.com/api/webhooks/9275956969/7_1C8OtoYDJSRLPf0WCGTH-xo9DIlmTEWTHA0pmLe_

    which functions properly from Linux command line but not on NetXMS... Am I missing something?

    (example in https://www.youtube.com/watch?v=ZtsshH4ppPA as referred on list of videos HOW TO's here on the Forum )

    Tried executing as an remote agent, same result, no output on Discord. On the Event processing Policy I have notification by email and this configuration for Discord, the email notification works every time.

    All help is appreciated,
    Tiago

    1 Reply Last reply
    0
    • T
      T
      tiago_tntbizhub
      wrote on last edited by
      #2

      End up accomplishing using Discord.sh (https://chaoticweg.cc/discord.sh/)

      "Actions Configuration" with "Execute command on management server" and

      Command -> /usr/src/discord-bash/discord.sh  --text "Notificação [%S] %n: %m"  --webhook-url=https://discord.com/api/webhooks/92757956969/7_1C8OtoYDoLPf0WCGTH-xo9DIlmTEWTHA0pmLe_

      It was also a permission (user) issue to run the command on Linux, nothing to do with NetXMS. I leave the comments here and hope it helps someone.

      Thanks,
      Tiago

      @tiago_tntbizhub said in Notifications on Discord:

      Hi all!

      We use Discord a lot in the company and we created a webhook for server monitoring. We are using NetXMS 4.X on Ubuntu Linux 20.04.

      After searching a lot on Google for a NetXMS integration and reading docs, the closest I got was an integration with Slack (that we don't use) , nothing about Discord.

      I have created a "Actions Configuration" with "Execute command on management server" and Command ->

       /usr/bin/curl -s -i -H "Accept: application/json" -H "Content-Type:application/json" -X POST --data "{\"content\": \"TEST NODE DOWN\"}"  https://discord.com/api/webhooks/9275956969/7_1C8OtoYDJSRLPf0WCGTH-xo9DIlmTEWTHA0pmLe_

      which functions properly from Linux command line but not on NetXMS... Am I missing something?

      (example in https://www.youtube.com/watch?v=ZtsshH4ppPA as referred on list of videos HOW TO's here on the Forum )

      Tried executing as an remote agent, same result, no output on Discord. On the Event processing Policy I have notification by email and this configuration for Discord, the email notification works every time.

      All help is appreciated,
      Tiago

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      Powered by NodeBB Contributors
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups