Page 1 of 1

XI -> Network Analyzer integration failing

Posted: Thu May 03, 2018 1:32 pm
by johncwelch
Testing out Network Analyzer. It's working fine in and of itself, but the integration with XI is not.

setup: NA server, collecting data. NOT using SSL
XI Server, doing its thing, IS using SSL

I can add the NA server into XI with no obvious problems, but any time I try to go configure it in the wizard, I get, on the wizard screen:

Host Name: Failed connect to API. Check your connection to the host (using SSL?) and make sure your Nagios Network Analyzer is version
2014R1.5 or higher.

In the ssl_error_log on the XI Server I get:

[error] [client 10.200.3.173] PHP Warning: base64_decode() expects parameter 1 to be string, array given in /usr/local/nagiosxi/html/includes/utils-macros.inc.php on line 0, referer: https://nwr-nagios-internal.nwrdc.com/n ... wizard.php

If I change the API key, I don't see any errors on the NA side.

No idea what's causing the issue. In XI, I have the NA server currently configured to not use SSL.

XI version is 5.4.13
NA version is 2.3.2

ideas?

Re: XI -> Network Analyzer integration failing

Posted: Thu May 03, 2018 3:38 pm
by npolovenko
Hi, @johncwelch. We could try to replace the Network Analyzer integration component with the most updated version. First, establish an ssh session to the nagios server. Navigate to /usr/local/nagiosxi/html/includes/components/ and remove the folder called "nagiosna". You should save a backup copy of this folder on your computer just in case. Then in the web interface go to the Admin menu, then Manage Components, Upload&Install and select the zip file that I'm attaching to this post. Click Upload&Install.

2. Make sure that the API key that you entered in the integration component is correct.

3. Try using a different web browser.

Re: XI -> Network Analyzer integration failing

Posted: Thu May 03, 2018 4:19 pm
by johncwelch
updated the component as specified, currently is 1.3.8. API key is correct, still no change. Same results in Safari and Firefox.

Re: XI -> Network Analyzer integration failing

Posted: Thu May 03, 2018 4:45 pm
by npolovenko
@johncwelch, And what version of the NNA wizard do you have?
Admin menu -> Manage Config Wizards -> Check For Updates -> Install Updates
Your Nagios Network Analyzer wizard should be of version 1.0.4 or higher.

Re: XI -> Network Analyzer integration failing

Posted: Fri May 04, 2018 10:16 am
by johncwelch
it is at 1.0.4

I did a check for updates, none noted for that wizard.

Re: XI -> Network Analyzer integration failing

Posted: Fri May 04, 2018 11:54 am
by lmiltchev
setup: NA server, collecting data. NOT using SSL
XI Server, doing its thing, IS using SSL
The integration wouldn't work if only one of the servers is configured to use SSL. I would recommend configuring NNA with SSL as well, then trying the integration again. Here's a document on how to configure SSL/TLS with Nagios Network Analyzer:

https://assets.nagios.com/downloads/nag ... alyzer.pdf

Re: XI -> Network Analyzer integration failing

Posted: Fri May 04, 2018 4:03 pm
by johncwelch
That makes sense then. Okay, thanks for the help!

Re: XI -> Network Analyzer integration failing

Posted: Fri May 04, 2018 4:11 pm
by lmiltchev
You are welcome! Let us know if this worked for you. We will keep the topic open for the time being.