UNKNOWN: An error occured connecting to API.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

UNKNOWN: An error occured connecting to API.

Post by RIDS_I2MP »

Hi Team,

We are facing issue with ncpa agent installed on linux/unix servers. its been a while we are using ncpa on linux/unix server never faced any such issues. we are able to ping the server but when we are adding services like cpu,memory and swap etc. We are getting below error some servers.

UNKNOWN: An error occured connecting to API. (Connection error: '[Errno 113] No route to host').

Please help us.
Thanks & Regards,
I2MP Team.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: UNKNOWN: An error occured connecting to API.

Post by pbroste »

Hello @RIDS_I2MP

Thanks for reaching out about the ncpa connection error issue.

Would like to have you check on the following:
  • Check to see if the ncpa services are running:
  • [code]systemctl status ncpa_listener[/code] [code]systemctl status ncpa_passive[/code]
  • Are you able to bring up the web console: http://youraddress:5693 or https://youraddress:5693
  • Check ncpa version:
  • [code]/check_ncpa.py -H [your_address] -t '[your_token] -V[/code]
  • Also verbose and debug results
  • [code]./check_ncpa.py -H [your_address] -t 'mytoken' -M 'memory/virtual/used' -u G -v --debug[/code]
Also check to see if you have any security application or firewall blocking:
  • [code]sestatus[/code]
  • Allow port 5693

Thanks,
Perry
Locked