Nagios Discord notification

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
brolal
Posts: 2
Joined: Wed Aug 25, 2021 7:55 am

Nagios Discord notification

Post by brolal »

Hello

I'm using Nagios core 4.4.6 on OpenSUSE 15.3. I was wandering if someone here can help with some settings. I am trying to push Nagios notification on a Discord webhook. So far I have try this method:

https://github.com/ReenigneCloud/nagios ... ifications - it didn't work for me.

Also, I have try this tutorial also, with apprise, but that *.yml file doesn't work for me

https://nuxref.com/tag/discord/

Any ideas?
Thank you!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Nagios Discord notification

Post by benjaminsmith »

Hi,
https://github.com/ReenigneCloud/nagios ... ifications - it didn't work for me.
Did you get any error message (check the nagios.log)?

I would recommend opening an issue on the GithHub for that script. Normally you would pass the macros used in the notification as arguments in the notify-host-by-discord command setup. I don't see that part (take a look at the default notification commands).

Let us know if you get it working.

Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
brolal
Posts: 2
Joined: Wed Aug 25, 2021 7:55 am

Re: Nagios Discord notification

Post by brolal »

Hi,
Thank you for your reply!

I was getting this errors with that script:

./send-discord-host.sh: line 28: + : syntax error: operand expected (error token is "+ ")
./send-discord-host.sh: line 29: + : syntax error: operand expected (error token is "+ ")

I did open an issue on Github. Also, I wasn't sure what to edit that script at - Nagios domain, used for generating our URLs
nagios_domain="" - script link: https://github.com/ReenigneCloud/nagios ... rd-host.sh

Any other suggestion?

I found a lot of stuff for Slack, but nothing for Discord.
Cheers!
Locked