Page 1 of 1

Nagios Discord notification

Posted: Wed Aug 25, 2021 8:07 am
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!

Re: Nagios Discord notification

Posted: Wed Aug 25, 2021 5:06 pm
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

Re: Nagios Discord notification

Posted: Wed Aug 25, 2021 5:17 pm
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!