Page 1 of 1

Slack NCPA integration

Posted: Thu Apr 02, 2020 4:08 am
by elealyngarcia
Hi

I'm trying the guide for NCPA to SLACK integration, but I have this issue with ncpa

Code: Select all

[root@lnpnprifngm001v elealyn.garcia]# /usr/local/nagios/libexec/check_ncpa.py check_ncpa.py -H  HOSTIP -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$"'
UNKNOWN: The plugin (slack_nagios.pl) requested does not exist.
I copy the slack_nagios.pl to the /usr/local/nagios/libexec/ but still have an issue.

Re: Slack NCPA integration

Posted: Thu Apr 02, 2020 2:21 pm
by jbrunkow
Just to be sure, can you clarify what guide exactly you are using? I recommend using the one linked below, if you are not already.

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

You may also want to double check that you have the proper permissions to run the Perl script on the host. You can do so by running a command like the example below.

Code: Select all

ls -l { file name }

Re: Slack NCPA integration

Posted: Thu Apr 02, 2020 9:16 pm
by elealyngarcia
jbrunkow wrote:Just to be sure, can you clarify what guide exactly you are using? I recommend using the one linked below, if you are not already.

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

You may also want to double check that you have the proper permissions to run the Perl script on the host. You can do so by running a command like the example below.

Code: Select all

ls -l { file name }

Hi,

We have a working setup of SLACK notification, but with the announcement of SLACK that it no longer support CENTOS/RHEL 6 and below.

But we are able to resolve this issue, the location should be in /usr/local/ncpa/plugins/, which was missing in the NCPA setup guide, or maybe I missed it.

Re: Slack NCPA integration

Posted: Fri Apr 03, 2020 9:08 am
by jbrunkow
I'm glad to hear that it is working for you now!

I will take a closer look at the documentation to see if it is missing that step.

Is it okay with you if we close this thread now?