xi -> Network Analyzer integration failing

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
johncwelch
Posts: 22
Joined: Mon Jun 15, 2015 8:04 am

xi -> Network Analyzer integration failing

Post 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?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: xi -> Network Analyzer integration failing

Post 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.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
johncwelch
Posts: 22
Joined: Mon Jun 15, 2015 8:04 am

Re: xi -> Network Analyzer integration failing

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: xi -> Network Analyzer integration failing

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
johncwelch
Posts: 22
Joined: Mon Jun 15, 2015 8:04 am

Re: xi -> Network Analyzer integration failing

Post by johncwelch »

it is at 1.0.4

I did a check for updates, none noted for that wizard.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: xi -> Network Analyzer integration failing

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
johncwelch
Posts: 22
Joined: Mon Jun 15, 2015 8:04 am

Re: xi -> Network Analyzer integration failing

Post by johncwelch »

That makes sense then. Okay, thanks for the help!
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: xi -> Network Analyzer integration failing

Post by lmiltchev »

You are welcome! Let us know if this worked for you. We will keep the topic open for the time being.
Be sure to check out our Knowledgebase for helpful articles and solutions!