Slack integration stopped working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
scrantic
Posts: 17
Joined: Fri May 18, 2012 12:25 am

Slack integration stopped working

Post by scrantic »

Hi All, Over the weekend our slack integration with Nagios stopped working with the following error.

500 Can't connect to iaitdepartment.slack.com:443 (SSL connect attempt failed with unknown errorerror:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure)

It would appear that SSLv3 and possibly earlier versions of TLS has been disabled at slacks end which makes sense as per security guidelines but we are at a loss as to how we get this going again. We use the standard slack_nagios.pl and the below command yields the above error.


slack_nagios.pl -field slack_channel=#hosts -field HOSTALIAS="Test host" -field HOSTSTATE="UP" -field HOSTOUTPUT="Host is Up" -field NOTIFICTATIONTYPE="RECOVERY"
Request: POST https://ourinstance.slack.com/services/ ... iBSKbnFtAP

I'm keen to get this up and going any assistance in how we get this happening would be much appreciated.
scrantic
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Slack integration stopped working

Post by cdienger »

The Slack announcement was made here:

https://api.slack.com/changelog/2019-07 ... s-versions

This will impact most Cent/RHEL 6 users as it doesn't appear that the Perl packages available from official repos are able to use SNI in secure connections.

A quick work around would be to be to install NCPA on another machine(Cent/RHEL 7 for example that have updated Perl packages) along with a copy of the slack_nagios.pl plugin, and then configure the slack_host_notification_handler and slack_service_notification_handler commands to execute the slack_nagios.pl script via ncpa:

Code: Select all

$USER1$/check_ncpa.py -H CENTOS7MACHINE -t 'TOKEN' -M 'plugins/slack_nagios.pl' -q 'args=-field slack_channel="#hosts" -field HOSTALIAS="$HOSTNAME$" -field HOSTSTATE="$HOSTSTATE$" -field HOSTOUTPUT="$HOSTOUTPUT$" -field NOTIFICATIONTYPE="$NOTIFICATIONTYPE$"'

Code: Select all

$USER1$/check_ncpa.py -H CENTOS7MACHINE -t 'TOKEN' -M 'plugins/slack_nagios.pl -q 'args=-field slack_channel="#services" -field HOSTALIAS="$HOSTNAME$" -field SERVICEDESC="$SERVICEDESC$" -field SERVICESTATE="$SERVICESTATE$" -field SERVICEOUTPUT="$SERVICEOUTPUT$" -field NOTIFICATIONTYPE="$NOTIFICATIONTYPE$"' 
Configuring the Slack plugin: https://assets.nagios.com/downloads/nag ... ios-XI.pdf
NCPA install and documentation: https://www.nagios.org/ncpa/
How to run third party scripts with NCPA: https://support.nagios.com/kb/article/n ... a-722.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
scrantic
Posts: 17
Joined: Fri May 18, 2012 12:25 am

Re: Slack integration stopped working

Post by scrantic »

Was quicker to backup/restore and repair our Nagios install the CentOS Hyper-V image
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Slack integration stopped working

Post by scottwilkerson »

scrantic wrote:Was quicker to backup/restore and repair our Nagios install the CentOS Hyper-V image
Are you back to a working setup?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked