Problem in integration Slack with proxy

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
incoming
Posts: 1
Joined: Wed Apr 24, 2019 11:44 pm

Problem in integration Slack with proxy

Post by incoming »

Hi team,

I am integrating NagioXI with Slack. I have followed below document to integrate nagiosxi with slack.

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

Every thing is fine, but i need to call slack through proxy, and problem is here.
we usually config nagios.pl file like this
my $opt_domain = "foo.slack.com";
i setup a proxy to call foo.slack.com through foo.slack.local:8088, it worked
but when i config nagios.pl
my $opt_domain = "foo.slack.local:8088";
then i use check command, slack say it cant connect to "foo.slack.local:8088"
is that nagios not support proxy port, or im missing anything?
i really need ur help.
thks all!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problem in integration Slack with proxy

Post by scottwilkerson »

looking at the nagios.pl it makes the call to

Code: Select all

my $req = POST("https://${opt_domain}/services/hooks/nagios?token=${opt_token}", \%event);
when you tested the proxy was it using https:// ?

How is the proxy setup? Does the nagios user on the XI server have access?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked