Page 1 of 1

cURL call to NCPA port returned invalid JSON

Posted: Tue Apr 07, 2020 10:12 am
by huntrace
Hello Forum,

installed Nagios XI Appliance latest version (5.61.12), trying to monitor a Hyper-V host.
Installed NCPA-Client on Hyper-V host with default parameters - latest version 2.2.1.

I'm able to connect via web-browser to https://ip:5693 by giving the API-Token.
Works fine.

If i try to use configuration wizard on Nagios XI GUI I get an error "cURL call to NCPA port returned invalid JSON".

All machines are in same subnet, no firewall between machines.
Maybe this is a problem with self-signed certificates (I guess created by NCPA)?

Regards
Michael

Re: cURL call to NCPA port returned invalid JSON

Posted: Tue Apr 07, 2020 2:51 pm
by benjaminsmith
Hi Michael,

Welcome to the Support Forum and thank you for trying out Nagios XI! Do you have special characters in the token that maybe getting passed incorrectly, and would you be able to test again with a simplified password?

If that's not the issue, can you post the output to the following test command ( run from Nagios XI terminal)?

Code: Select all

curl -k "https://<ip address>:5693/testconnect/?token=<your token>" -v

Re: cURL call to NCPA port returned invalid JSON

Posted: Wed Apr 08, 2020 9:07 am
by huntrace
Hi Benjamin,

thanks, you did it - there was a "#" in the Token.
I substituted these special-character and it worked fine.

Thank you,
Michael

Re: cURL call to NCPA port returned invalid JSON

Posted: Wed Apr 08, 2020 10:17 am
by scottwilkerson
huntrace wrote:Hi Benjamin,

thanks, you did it - there was a "#" in the Token.
I substituted these special-character and it worked fine.

Thank you,
Michael
Great!

Locking thread