Page 1 of 1

Connection reset by peer RHEL

Posted: Tue Nov 09, 2021 9:52 pm
by enderson_rhb
Hi,

From nagiosXI it showing connection reset by peer when I check in the logs showing this error message, have no idea to check what's the problem

Code: Select all

[root@serverlog]# cat ncpa_listener.log
2021-11-10 01:34:12,182 4087067 INFO started
2021-11-10 01:34:12,182 4087067 ERROR attempt to write a readonly database
Traceback (most recent call last):
  File "/root/ncpa/agent/listener/database.py", line 54, in run_db_maintenance
OperationalError: attempt to write a readonly database
2021-11-10 01:34:12,183 4087067 INFO Using SSL version TLSv1_2
2021-11-10 10:48:46,687 4087067 INFO stopped
2021-11-10 10:48:50,327 185951 INFO started
2021-11-10 10:48:50,328 185951 ERROR attempt to write a readonly database
Traceback (most recent call last):
  File "/root/ncpa/agent/listener/database.py", line 54, in run_db_maintenance
OperationalError: attempt to write a readonly database
2021-11-10 10:48:50,328 185951 INFO Using SSL version TLSv1_2

[root@serverlog]# rpm -qa| grep ncpa
ncpa-2.3.1-1.el8.x86_64

Re: Connection reset by peer RHEL

Posted: Wed Nov 10, 2021 4:45 pm
by pbroste
Hello @enderson_rhb

Thanks for reaching out, want to take a look at 'ncpa.cfg' and get the logs as well so we can see what is going on.

Let's also start the 'ncpa_listener' as a process to see how that looks:

Code: Select all

/usr/local/ncpa/ncpa_listener -c /usr/local/ncpa/etc/ncpa.cfg -n &

Code: Select all

tar -czvf /tmp/ncpa_config.tar.gz /usr/local/ncpa/etc/ncpa.cfg /usr/local/ncpa/var/
Please send the compressed /tmp/ncpa_config.tar.gz.

Thanks,
Perry