NCPA new install not working on RHEL 6.9 server
Posted: Tue Oct 22, 2019 11:47 am
Hi,
I have installed NCPA 2.1.9 on RHEL 6.9 box using the below command , the installation went good, but the ncpa_listener and ncpa_passive services are not working.
rpm -Uvh https://assets.nagios.com/downloads/ncp ... x86_64.rpm
The ncpa_listener service immediately stops running after restarting it.. I have configured the ncpa.cfg under "/usr/local/ncpa/etc" as per the documentation and also done with nrdp.cfg located under /usr/local/ncpa/etc/ncpa.cfg.d.
[root@uitlblg16:/root]
# service ncpa_listener start
Starting NCPA Listener: [ OK ]
[root@uitlblg16:/root]
# service ncpa_listener status
NCPA Listener: Service is not running.
Here is the error message i see in the ncpa_listener.log:
2019-10-22 12:30:56,411 2988 INFO started
2019-10-22 12:30:56,413 2988 INFO Using SSL version TLSv1_2
2019-10-22 12:30:56,415 2988 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
2019-10-22 12:30:56,416 2988 INFO stopped
ncpa_passive.log:
NoSectionError: No section: 'passive checks'
2019-10-22 12:43:44,562 32680 ERROR No section: 'passive checks'
Traceback (most recent call last):
File "ncpa_passive.py", line 51, in run_all_handlers
File "/root/ncpa/agent/passive/nrdp.py", line 112, in run
File "/root/ncpa/agent/passive/nagioshandler.py", line 78, in run
File "/root/ncpa/agent/passive/nagioshandler.py", line 35, in get_commands_from_config
File "/usr/local/lib/python2.7/ConfigParser.py", line 642, in items
Thanks,
Ram.
I have installed NCPA 2.1.9 on RHEL 6.9 box using the below command , the installation went good, but the ncpa_listener and ncpa_passive services are not working.
rpm -Uvh https://assets.nagios.com/downloads/ncp ... x86_64.rpm
The ncpa_listener service immediately stops running after restarting it.. I have configured the ncpa.cfg under "/usr/local/ncpa/etc" as per the documentation and also done with nrdp.cfg located under /usr/local/ncpa/etc/ncpa.cfg.d.
[root@uitlblg16:/root]
# service ncpa_listener start
Starting NCPA Listener: [ OK ]
[root@uitlblg16:/root]
# service ncpa_listener status
NCPA Listener: Service is not running.
Here is the error message i see in the ncpa_listener.log:
2019-10-22 12:30:56,411 2988 INFO started
2019-10-22 12:30:56,413 2988 INFO Using SSL version TLSv1_2
2019-10-22 12:30:56,415 2988 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
2019-10-22 12:30:56,416 2988 INFO stopped
ncpa_passive.log:
NoSectionError: No section: 'passive checks'
2019-10-22 12:43:44,562 32680 ERROR No section: 'passive checks'
Traceback (most recent call last):
File "ncpa_passive.py", line 51, in run_all_handlers
File "/root/ncpa/agent/passive/nrdp.py", line 112, in run
File "/root/ncpa/agent/passive/nagioshandler.py", line 78, in run
File "/root/ncpa/agent/passive/nagioshandler.py", line 35, in get_commands_from_config
File "/usr/local/lib/python2.7/ConfigParser.py", line 642, in items
Thanks,
Ram.