Slack NCPA integration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
elealyngarcia
Posts: 18
Joined: Sun Apr 28, 2019 6:09 pm

Slack NCPA integration

Post 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.
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: Slack NCPA integration

Post 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 }
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
elealyngarcia
Posts: 18
Joined: Sun Apr 28, 2019 6:09 pm

Re: Slack NCPA integration

Post 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.
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: Slack NCPA integration

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked