UNKNOWN: An error occured connecting to API. (Connection error: 'EOF occurred in violation of protocol (_ssl.c:618)')

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
lzdravkov
Posts: 9
Joined: Mon Jul 06, 2020 2:58 am

UNKNOWN: An error occured connecting to API. (Connection error: 'EOF occurred in violation of protocol (_ssl.c:618)')

Post by lzdravkov »

Hello,

Could you please assist me to resolve that issue

When I tried to monitor server 10.10.51.5 I'm gettin error

/usr/local/nagios/libexec/check_ncpa.py -H 10.10.51.5 -t 'Nagiospassw0rd' -P 5693 -M cpu/percent -w '80' -c '90' -q 'aggregate=avg'

UNKNOWN: An error occured connecting to API. (Connection error: 'EOF occurred in violation of protocol (_ssl.c:618)')

I reinstalled the ncpa again on the client but still nothing.

systemctl status ncpa_listener.service
● ncpa_listener.service - LSB: This manages the NCPA Listener service
Loaded: loaded (/etc/rc.d/init.d/ncpa_listener; generated)
Active: active (running) since Fri 2023-11-24 10:14:24 EET; 5h 14min ago
Docs: man:systemd-sysv-generator(8)
Process: 9985 ExecStop=/etc/rc.d/init.d/ncpa_listener stop (code=exited, status=0/SUCCESS)
Process: 9996 ExecStart=/etc/rc.d/init.d/ncpa_listener start (code=exited, status=0/SUCCESS)
Tasks: 2 (limit: 23693)
Memory: 31.0M
CGroup: /system.slice/ncpa_listener.service
└─10009 /usr/local/ncpa/ncpa_listener --start

Тhere is no much info in the logs:

cat ncpa_listener.log
2023-11-24 10:04:29,964 9690 INFO started
2023-11-24 10:04:29,965 9690 INFO Using SSL version TLSv1_2
2023-11-24 10:13:25,067 9690 INFO stopped
User avatar
jmichaelson
Posts: 383
Joined: Wed Aug 23, 2023 1:02 pm

Re: UNKNOWN: An error occured connecting to API. (Connection error: 'EOF occurred in violation of protocol (_ssl.c:618)'

Post by jmichaelson »

Let's try and figure out which end the issue is on. Can you connect to the NCPA server with a browser?

Go to https://10.10.51.5:5693, ignore any certificate error that may present itself and see if you get the NCPA page. Use the community string token for that server as the credentials to log in.
Please let us know if you have any other questions or concerns.

-Jason
Post Reply