Page 1 of 1

Troubleshooting NSS error -5961 (PR_CONNECT_RESET_ERROR)

Posted: Mon Aug 10, 2020 3:48 pm
by meganwilliford
I am having trouble connecting to a remote host via NCPA. Below is the output when I run the test connect command. Nagios XI can reach the agent but then the connection gets reset. Any ideas on what the issue may be?

[root@<nagios xi> ~]# curl -k "https://<remote host>:5693/testconnect/?token=<token>" -v
* About to connect() to <remote host> port 5693 (#0)
* Trying <remote IP>...
* Connected to <remote host> (<remote IP>) port 5693 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* NSS error -5961 (PR_CONNECT_RESET_ERROR)
* TCP connection reset by peer
* Closing connection 0
curl: (35) TCP connection reset by peer

Re: Troubleshooting NSS error -5961 (PR_CONNECT_RESET_ERROR)

Posted: Tue Aug 11, 2020 3:43 pm
by jbrunkow
This kind of issue is commonly caused by a timeout. You can try adjusting the time limit for your curl request with the --connect-timeout option.

Can you otherwise ping or scan this host from XI? That could help determine if network speed is contributing to the issue.