Page 1 of 1

How to Customize Slack Notifications Alerts in Nagios

Posted: Fri Jun 29, 2018 7:08 am
by Teja
Hi Team,

I have request to Stop the particular Service Notification alerts in Slack [NOT ALL] but need to be active Via E-Mail[/b]. So whenever the service is UP or Down i get alerts both in Slack and Gmail, Is there any way to customise Slack Notifications in Nagios with Script or anything ? I tried searching in google but didn't find a Valid answer.

Thank You!!

Re: How to Customize Slack Notifications Alerts in Nagios

Posted: Fri Jun 29, 2018 1:20 pm
by npolovenko
Hello, @Teja. Is your slack notification command assigned to a contact or to service checks directly? If directly to service checks you can just remove the command for that particular service. Otherwise, If the command is assigned to a contact, you could modify the slack_nagios.pl script to check the value of "$HOSTNAME$" and "$SERVICEDESC$" and if it matches the name of the desired service -> have the script skip the rest of the commands in it.

Re: How to Customize Slack Notifications Alerts in Nagios

Posted: Tue Jul 17, 2018 9:51 am
by Teja
Hi @npolovenko, Firstly sorry for the late reply.

I'm not into Perl scripting and if you provide any example it would really help me to execute.

Thanks in advance!

Re: How to Customize Slack Notifications Alerts in Nagios

Posted: Wed Jul 18, 2018 9:34 am
by tmcdonald
We are unfortunately not able to provide custom development, especially with third-party scripts. You will need to either find someone in your organization who knows Perl, or contact [email protected] to discuss custom dev.

Re: How to Customize Slack Notifications Alerts in Nagios

Posted: Wed Jul 18, 2018 10:24 am
by Teja
It's fine..will look into it, Thank's tmcdonald.

Re: How to Customize Slack Notifications Alerts in Nagios

Posted: Wed Jul 18, 2018 10:37 am
by tmcdonald
Did you have further (related) questions or are we good to lock this up?

Re: How to Customize Slack Notifications Alerts in Nagios

Posted: Fri Jul 20, 2018 4:51 am
by Teja
We are good to close this tmcdonald, Thank You!