Page 1 of 1

NCPA Agent failed - Not starting

Posted: Tue Dec 30, 2025 3:29 pm
by DileepKumar
systemctl status ncpa.service

× ncpa.service - NCPA
Loaded: loaded (/usr/lib/systemd/system/ncpa.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Wed 2025-12-31 01:34:40 IST; 14min ago
Duration: 1.303s
Docs: https://www.nagios.org/ncpa
Process: 903789 ExecStart=/usr/local/ncpa/ncpa -n (code=exited, status=1/FAILURE)
Main PID: 903789 (code=exited, status=1/FAILURE)
CPU: 1.290s

Dec 31 01:34:39 systemd[1]: Started NCPA.
Dec 31 01:34:40 ncpa[903789]: Pidfile /usr/local/ncpa/var/run/ncpa.pid contains a non-integer value
Dec 31 01:34:40 ncpa[903789]: ***** Starting NCPA version: 3.2.2
Dec 31 01:34:40 ncpa[903789]: ***** Starting NCPA version: 3.2.2
Dec 31 01:34:40 systemd[1]: ncpa.service: Main process exited, code=exited, status=1/FAILURE
Dec 31 01:34:40 systemd[1]: ncpa.service: Failed with result 'exit-code'.
Dec 31 01:34:40 systemd[1]: ncpa.service: Consumed 1.290s CPU time.


Above is the error I was facing and when tried journalctl -u ncpa.service, getting the below error


Dec 29 01:35:39 ncpa[1890316]: Exception ignored in: <bound method _ForkHooks.after_fork_in_child of <gevent.threading._ForkHooks object at 0x7f3e0ab4f620>>
Dec 29 01:35:39 ncpa[1890316]: Traceback (most recent call last):
Dec 29 01:35:39 ncpa[1890316]: File "gevent/threading.py", line 397, in after_fork_in_child
Dec 29 01:35:39 ncpa[1890316]: AssertionError:


I have updated the NCPA agent on the same server to ncpa-3.2.2-1 but still facing the same issue

NCPA is completely failed and not running, Any solution

Re: NCPA Agent failed - Not starting

Posted: Tue Dec 30, 2025 6:04 pm
by kg2857
Like the output says check /usr/local/ncpa/var/run/ncpa.pid.
Delete it id ncpa isn't running. Restart.

Re: NCPA Agent failed - Not starting

Posted: Wed Dec 31, 2025 10:40 am
by DileepKumar
Hey , Thank you very much.

Sorry for not noticing such a entry in the output.

For windows, is there a any particular process to make NCPA up and running if it is being failed continuously. Your insights will help us

Re: NCPA Agent failed - Not starting

Posted: Thu Jan 01, 2026 3:57 am
by kg2857