Page 1 of 1

NCPA 2.x to 3.

Posted: Mon Aug 04, 2025 1:54 pm
by kbauma01
I just installed (upgraded) NCPA from 2.x to 3.1.4 and I am getting this error when I try to start the service. Red Hat 7.9 client. Any help is appreciated.

# /etc/init.d/ncpa restart
Restarting ncpa (via systemctl): [ OK ]

# ps -ef | grep ncpa
root 20522 20134 0 14:26 pts/0 00:00:00 grep --color=auto ncpa

# /etc/init.d/ncpa status
Traceback (most recent call last):
File "__startup__.py", line 121, in run
File "console.py", line 25, in run
File "ncpa.py", line 19, in <module>
File "gevent/__init__.py", line 72, in <module>
File "gevent/_hub_local.py", line 150, in <module>
File "gevent/_util.py", line 148, in import_c_accel
File "importlib/__init__.py", line 88, in import_module
File "src/gevent/_hub_local.py", line 1, in init gevent._gevent_c_hub_local
File "greenlet/__init__.py", line 29, in <module>
ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/ncpa/lib/greenlet._greenlet.cpython-313-x86_64-linux-gnu.so)

Re: NCPA 2.x to 3.

Posted: Mon Aug 04, 2025 2:04 pm
by kbauma01
I can run some command line checks. Run from /usr/local/nagios/libexec

./check_uptime
Uptime OK: 0 day(s) 0 hour(s) 9 minute(s) | uptime=9.000000;;;

# ./check_disk -w 20 -c 99 /
DISK OK - free space: / 3437 MB (72% inode=99%);| /=1320MB;4738;4659;0;4758

Re: NCPA 2.x to 3.

Posted: Tue Aug 05, 2025 10:04 am
by bbahn
Hello @kbauma01,

Unfortunately due to Python and OpenSSL incompatibility, NCPA has not been able to support EL7 distros since 3.1.1. You will need to either downgrade to 3.1.0 or use another tool such as NRPE.

Re: NCPA 2.x to 3.

Posted: Fri Aug 08, 2025 9:47 am
by kbauma01
Thanks, I'll download that and give that a try.

Re: NCPA 2.x to 3.

Posted: Sat Aug 09, 2025 1:19 am
by ryansmith11
Yeah, that error usually pops up because NCPA 3.1.4 needs a newer libstdc++ (and newer Python/OpenSSL) than what RHEL 7.9 ships with. The CXXABI_1.3.9 not found bit basically means your system’s C++ library is too old for this version.
Easiest fix: roll back to NCPA 3.1.0 — that’s the last version that works fine on EL7.
Other option (a bit more work) is to install a newer GCC/libstdc++ from Red Hat’s devtoolset and run NCPA in that environment, but honestly, if you just want it working quickly, downgrading is way faster.

Re: NCPA 2.x to 3.

Posted: Mon Aug 11, 2025 4:12 am
by ryansmith11
Got it, thanks for clarifying. I’ll downgrade to 3.1.0 on this RHEL 7.9 box and test again. Just to confirm — is 3.1.0 the last version that works on EL7, or is there any patch planned to make newer versions compatible?

Re: NCPA 2.x to 3.

Posted: Mon Aug 11, 2025 4:58 pm
by bbahn
There are no plans to make newer versions compatible as that would make them inherently insecure as the changes that would allow NCPA to run on old OSs would render it insecure as it would repeal all the security updates along the way.