Page 1 of 1

Actions component using Reactor not showing

Posted: Mon Jan 18, 2016 3:45 am
by WillemDH
Hello,

Since I configured SSL for Reactor, the actions component seems to have problems showing the Reactor chain details. Luckily most of the chains are still showing in the host detail quick actions, but I noticed some of them aren't. It's also impossible to edit the chains or action configuration, as the details aren't loading. The Reactor integration has been updated with the https url. I'm using version 1.6.1 of the Actions component.

When I reconfigure the Reactor integration with the http url, the Reactor action details are showing up again. But then I'm having issues with insecure content in the popup windows when the quick action is activated.

Grtz

Willem

Re: Actions component using Reactor not showing

Posted: Mon Jan 18, 2016 5:37 pm
by ssax
Try this updated component to see if it resolves your issues, use HTTPS for the Reactor API URL:
reactoreventhandler.zip

Re: Actions component using Reactor not showing

Posted: Tue Jan 19, 2016 3:49 am
by WillemDH
Sean,

I tried your updated component, but it doesn't seem to result in any difference. The Reacto chains aren't loaded.
It is also version 1.0.0 while I was at 1.0.2 and it doesn't seem to have the new Reactor custom icon for Reactor tab in host / service details.

Grtz

Re: Actions component using Reactor not showing

Posted: Tue Jan 19, 2016 4:10 pm
by ssax
Please edit this file:

Code: Select all

/usr/local/nagiosxi/html/includes/components/reactoreventhandler/reactoreventhandler-helpers.inc.php
Around line 556, change this code:

Code: Select all

    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
To this:

Code: Select all

    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($handle, CURLOPT_VERBOSE, true);
    $file = fopen('/tmp/curl.out', 'w+');
    curl_setopt($handle, CURLOPT_STDERR, $file);
Then reopen the page, select the Reactor instance, and then when it tries to load the chains it will output the /tmp/curl.out file, please PM that to me.

Thank you

Re: Actions component using Reactor not showing

Posted: Tue Jan 19, 2016 4:15 pm
by ssax
Wait, are you sure you used the same one that I uploaded? The version when I re-download it from the post shows it as 1.0.2.

Re: Actions component using Reactor not showing

Posted: Wed Jan 20, 2016 3:09 am
by WillemDH
Sean,

Seems like I somehow uploaded and installed an old version. i'm nto sure how this happened,, but I tried again and it works nog. See also this thread. I suggest we close this thread. I had a few extra questions in https://support.nagios.com/forum/viewto ... 16&t=36619

Grtz

Re: Actions component using Reactor not showing

Posted: Wed Jan 20, 2016 11:49 am
by bwallace
Thanks, we'll go ahead and lock this thread then.