Page 1 of 1

UNKNOWN: An error occured connecting to API.

Posted: Sun Aug 01, 2021 2:55 am
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.

Re: UNKNOWN: An error occured connecting to API.

Posted: Mon Aug 02, 2021 11:06 am
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