ncpa agent is in active (exited) state

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
preethu.d
Posts: 109
Joined: Wed Nov 25, 2020 11:32 pm

ncpa agent is in active (exited) state

Post by preethu.d »

Hi Team,

I am seeing an issue where NCPA is not running on a linux machine shows status as active(exited).
ncpa listener logs show error as "[Errno 97] Address family not supported by protocol".
Can you help in resolving the issue.

2022-01-13 18:24:54,038 9151 INFO stopped
2022-02-09 09:02:54,137 194622 INFO started
2022-02-09 09:02:55,194 194622 INFO Using SSL version TLSv1_2
2022-02-09 09:02:55,197 194622 ERROR [Errno 97] Address family not supported by protocol
Traceback (most recent call last):
File "ncpa_listener.py", line 108, in run
File "/usr/local/lib/python2.7/site-packages/gevent/baseserver.py", line 360, in serve_forever
File "/usr/local/lib/python2.7/site-packages/gevent/baseserver.py", line 304, in start
File "/usr/local/lib/python2.7/site-packages/gevent/pywsgi.py", line 1450, in init_socket
File "/usr/local/lib/python2.7/site-packages/gevent/server.py", line 127, in init_socket
File "/usr/local/lib/python2.7/site-packages/gevent/server.py", line 138, in get_listener
File "/usr/local/lib/python2.7/site-packages/gevent/server.py", line 225, in _tcp_listener
File "/usr/local/lib/python2.7/site-packages/gevent/_socket2.py", line 107, in __init__
error: [Errno 97] Address family not supported by protocol
2022-02-09 09:02:55,198 194622 INFO stopped


Regards,
Preethu.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: ncpa agent is in active (exited) state

Post by gsmith »

Hi

What version of python is installed? You can find out by running:
python -V

Thanks!
preethu.d
Posts: 109
Joined: Wed Nov 25, 2020 11:32 pm

Re: ncpa agent is in active (exited) state

Post by preethu.d »

Hi,

It is 2.7.18

Regards,
Preethu
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: ncpa agent is in active (exited) state

Post by gsmith »

Hi,

Could you please send me the NCPA listener log?

Thanks!
preethu.d
Posts: 109
Joined: Wed Nov 25, 2020 11:32 pm

Re: ncpa agent is in active (exited) state

Post by preethu.d »

Hi,

I have sent you via PM.

Regards,
Preethu
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: ncpa agent is in active (exited) state

Post by gsmith »

Hi

In your /usr/local/ncpa/etc/ncpa.cfg please change or add
ip = 0.0.0.0

and restart the ncpa_listener service
service ncpa_listener restart

Let me know the result. If you are still having problems please include a fresh copy of ncpa_listener.log as well as
your /usr/local/ncpa/etc/ncpa.cfg file.

Thanks
preethu.d
Posts: 109
Joined: Wed Nov 25, 2020 11:32 pm

Re: ncpa agent is in active (exited) state

Post by preethu.d »

Hi,

Thanks you so much.
It is running now.
You can lock the thread.

Regards,
Preethu
Locked