Page 1 of 1

ncpa_listener having exited status

Posted: Thu Oct 28, 2021 1:47 pm
by titien104
● ncpa_listener.service - LSB: This manages the NCPA Listener service
Loaded: loaded (/etc/rc.d/init.d/ncpa_listener; bad; vendor preset: disabled)
Active: active (exited) since Thu 2021-10-28 14:15:15 EDT; 26min ago
Docs: man:systemd-sysv-generator(8)
Process: 55636 ExecStop=/etc/rc.d/init.d/ncpa_listener stop (code=exited, status=0/SUCCESS)
Process: 58583 ExecReload=/etc/rc.d/init.d/ncpa_listener reload (code=exited, status=0/SUCCESS)
Process: 55650 ExecStart=/etc/rc.d/init.d/ncpa_listener start (code=exited, status=0/SUCCESS)

Oct 28 14:15:14 638567-tlc01j01.rsp.medecision.com systemd[1]: Starting LSB: This manages the NCPA Listener service...
Oct 28 14:15:15 638567-tlc01j01.rsp.medecision.com ncpa_listener[55650]: Starting NCPA Listener: another instance seems to be running (pid 1787), exiting
Oct 28 14:15:15 638567-tlc01j01.rsp.medecision.com ncpa_listener[55650]: [FAILED]
Oct 28 14:15:15 638567-tlc01j01.rsp.medecision.com systemd[1]: Started LSB: This manages the NCPA Listener service.
Oct 28 14:41:00 638567-tlc01j01.rsp.medecision.com systemd[1]: Reloading LSB: This manages the NCPA Listener service.
Oct 28 14:41:03 638567-tlc01j01.rsp.medecision.com ncpa_listener[58583]: Stopping NCPA Listener: pid 1787 did not die
Oct 28 14:41:03 638567-tlc01j01.rsp.medecision.com ncpa_listener[58583]: [FAILED]
Oct 28 14:41:03 638567-tlc01j01.rsp.medecision.com ncpa_listener[58583]: Starting NCPA Listener: another instance seems to be running (pid 1787), exiting
Oct 28 14:41:03 638567-tlc01j01.rsp.medecision.com ncpa_listener[58583]: [FAILED]
Oct 28 14:41:03 638567-tlc01j01.rsp.medecision.com systemd[1]: Reloaded LSB: This manages the NCPA Listener service.
[root@638567-tlc01j01 log]# ps -ef | grep 1787
root 1787 2 0 Oct26 ? 00:00:48 [kcs-created]
root 58704 46041 0 14:42 pts/0 00:00:00 grep --color=auto 1787
[root@638567-tlc01j01 log]# grep ncpa /var/log/messages
Oct 26 15:39:53 638567-tlc01j01 ncpa_listener: Starting NCPA Listener: another instance seems to be running (pid 1787), exiting
Oct 26 15:39:53 638567-tlc01j01 ncpa_passive: Starting NCPA Passive: [ OK ]
Oct 26 15:39:54 638567-tlc01j01 ncpa_listener: [FAILED]
Oct 28 12:59:43 638567-tlc01j01 ncpa_listener: Stopping NCPA Listener: pid 1787 did not die
Oct 28 12:59:43 638567-tlc01j01 ncpa_listener: [FAILED]
Oct 28 12:59:43 638567-tlc01j01 ncpa_listener: Starting NCPA Listener: another instance seems to be running (pid 1787), exiting
Oct 28 12:59:43 638567-tlc01j01 ncpa_listener: [FAILED]
Oct 28 12:59:49 638567-tlc01j01 ncpa_passive: Stopping NCPA Passive: [ OK ]
Oct 28 12:59:50 638567-tlc01j01 ncpa_passive: Starting NCPA Passive: [ OK ]
Oct 28 13:02:34 638567-tlc01j01 ncpa_listener: Stopping NCPA Listener: pid 1787 did not die
Oct 28 13:02:34 638567-tlc01j01 ncpa_listener: [FAILED]
Oct 28 13:02:35 638567-tlc01j01 ncpa_listener: Starting NCPA Listener: another instance seems to be running (pid 1787), exiting
Oct 28 13:02:35 638567-tlc01j01 ncpa_listener: [FAILED]
Oct 28 13:05:55 638567-tlc01j01 ncpa_listener: Stopping NCPA Listener: pid 1787 did not die
Oct 28 13:05:55 638567-tlc01j01 ncpa_listener: [FAILED]
Oct 28 13:05:56 638567-tlc01j01 ncpa_listener: Starting NCPA Listener: another instance seems to be running (pid 1787), exiting
Oct 28 13:05:56 638567-tlc01j01 ncpa_listener: [FAILED]
Oct 28 13:10:10 638567-tlc01j01 ncpa_listener: Stopping NCPA Listener: pid 1787 did not die
Oct 28 13:10:10 638567-tlc01j01 ncpa_listener: [FAILED]
Hi Team,
I can not start up ncpa_listener even after remove and install ncpa back. Thanks,
Oct 28 13:10:10 638567-tlc01j01 ncpa_passive: Stopping NCPA Passive: [ OK ]
Oct 28 13:10:10 638567-tlc01j01 yum[48056]: Erased: ncpa-2.3.1-1.el7.x86_64
Oct 28 13:11:24 638567-tlc01j01 ncpa_listener: Starting NCPA Listener: another instance seems to be running (pid 1787), exiting
Oct 28 13:11:24 638567-tlc01j01 ncpa_listener: [FAILED]
Oct 28 13:11:24 638567-tlc01j01 ncpa_passive: Starting NCPA Passive: [ OK ]
Oct 28 13:11:24 638567-tlc01j01 yum[48325]: Installed: ncpa-2.3.1-1.el7.x86_64
Oct 28 14:15:14 638567-tlc01j01 ncpa_listener: Stopping NCPA Listener: pid 1787 did not die
Oct 28 14:15:14 638567-tlc01j01 ncpa_listener: [FAILED]
Oct 28 14:15:15 638567-tlc01j01 ncpa_listener: Starting NCPA Listener: another instance seems to be running (pid 1787), exiting
Oct 28 14:15:15 638567-tlc01j01 ncpa_listener: [FAILED]
Oct 28 14:41:03 638567-tlc01j01 ncpa_listener: Stopping NCPA Listener: pid 1787 did not die
Oct 28 14:41:03 638567-tlc01j01 ncpa_listener: [FAILED]
Oct 28 14:41:03 638567-tlc01j01 ncpa_listener: Starting NCPA Listener: another instance seems to be running (pid 1787), exiting
Oct 28 14:41:03 638567-tlc01j01 ncpa_listener: [FAILED]
[root@638567-tlc01j01 log]# cat /usr/local/ncpa/var/log/ncpa_listener.log

Re: ncpa_listener having exited status

Posted: Fri Oct 29, 2021 10:11 am
by dchurch
What is the output from

Code: Select all

ps -A x -f |grep ncpa

Re: ncpa_listener having exited status

Posted: Wed Nov 03, 2021 9:14 am
by titien104
Hi dchurch,
Here is the output for ps command:
nagios 48423 1 0 Oct28 ? S 1:54 /usr/local/ncpa/ncpa_passive --start

Re: ncpa_listener having exited status

Posted: Wed Nov 03, 2021 5:02 pm
by pbroste
Hello @titien104

Thanks for following up, want to find out it there is any security application enabled like selinux.

Code: Select all

sestatus
Verify services:

Code: Select all

systemctl status ncpa_listener

Code: Select all

systemctl status ncpa_passive
Please gather the following and send '/tmp/ncpainfo.tar.gz' via Private Message:

Code: Select all

grep -Eir 'ncpa' /var/log/*  -A 4 -B 2 > /tmp/ncpalist.txt && tar -czvf /tmp/ncpainfo.tar.gz /tmp/ncpalist.txt /usr/local/ncpa/var/log/ /usr/local/ncpa/etc/ncpa.cfg
Let me know if you see NCPA listening on port 5693 (ss -t -p -a | grep '5693|ncpa' or netstat -an | grep -Ei 'ncpa|5693')

Thanks,
Perry

Re: ncpa_listener having exited status

Posted: Tue Nov 16, 2021 2:52 pm
by pbroste
Hello @titien104

Thanks for following up and sending over the info to my pm inbox.

Let's go ahead and specify the ncpa IP address by replacing:
# ip =
with
ip = 0.0.0.0

Code: Select all

sed -i 's/# ip =/ip = 0.0.0.0/' /usr/local/ncpa/etc/ncpa.cfg
Then go ahead and restart the ncpa_listener service:

Code: Select all

systemctl restart ncpa_listener
Let us know how that looks,
Perry

Re: ncpa_listener having exited status

Posted: Tue Nov 16, 2021 3:08 pm
by titien104
[root@638567-tlc01j01 ~]# systemctl status ncpa_listener.service
● ncpa_listener.service - LSB: This manages the NCPA Listener service
Loaded: loaded (/etc/rc.d/init.d/ncpa_listener; bad; vendor preset: disabled)
Active: active (running) since Tue 2021-11-16 14:57:00 EST; 13s ago
Docs: man:systemd-sysv-generator(8)
Process: 32678 ExecStop=/etc/rc.d/init.d/ncpa_listener stop (code=exited, status=0/SUCCESS)
Process: 32689 ExecStart=/etc/rc.d/init.d/ncpa_listener start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/ncpa_listener.service
└─32700 /usr/local/ncpa/ncpa_listener --start

Nov 16 14:57:00 638567-tlc01j01.rsp.medecision.com systemd[1]: Stopped LSB: This manages the NCPA Listener service.
Nov 16 14:57:00 638567-tlc01j01.rsp.medecision.com systemd[1]: Starting LSB: This manages the NCPA Listener service...
Nov 16 14:57:00 638567-tlc01j01.rsp.medecision.com systemd[1]: Started LSB: This manages the NCPA Listener service.
Nov 16 14:57:00 638567-tlc01j01.rsp.medecision.com ncpa_listener[32689]: Starting NCPA Listener: [ OK ]

Re: ncpa_listener having exited status

Posted: Tue Nov 16, 2021 5:25 pm
by pbroste
Hello @titien104

Thanks, that looks good and verify:

Please post the output of this command from your XI server:

Code: Select all

nmap -p 5693 localhost
and

Code: Select all

sudo ss -tulpn | grep -Ei '5693'
or netstat -an | grep -Ei '5693'

Thanks,
Perry