Nagios-Slack webhook not sending alerts to Slack
Posted: Wed Apr 24, 2024 10:19 am
Hi,
I am integrating slack with Nagios core to receive alerts and slack has a pretty simple mechanism called Incoming webhooks to achieve it. I had two separate scripts for getting slack host & service notifications under /usr/local/nagios/libexec directory. Both Nagios core & the client are RHEL EC2 instances.
On dry run for these two scripts they work perfectly, sending empty notifications to slack but actual alerts are not seen on slack. I am attaching the snip for both the files, please suggest where can I start troubleshooting for errors. I have no idea what's wrong going on here ?
Thanks,
Piyush
I am integrating slack with Nagios core to receive alerts and slack has a pretty simple mechanism called Incoming webhooks to achieve it. I had two separate scripts for getting slack host & service notifications under /usr/local/nagios/libexec directory. Both Nagios core & the client are RHEL EC2 instances.
On dry run for these two scripts they work perfectly, sending empty notifications to slack but actual alerts are not seen on slack. I am attaching the snip for both the files, please suggest where can I start troubleshooting for errors. I have no idea what's wrong going on here ?
Thanks,
Piyush