NagiosEnterprises / ncpa

Nagios Cross-Platform Agent
Other
182 stars 94 forks source link

Solaris 11.4 around SRU 66 and latest Python 2.7 already removed and replaced to python3.[7-11] #1190

Open ongsunglau opened 3 months ago

ongsunglau commented 3 months ago

Hi all,

we noticed the python replaced to 3.9 and the ncpa still finding on python 2.7, anyway to redirect it to /usr/lib/python*?

root@server # find / -print | grep -i python
/usr/lib/python3.9
/usr/lib/python3.9/selectors.py
/usr/lib/python3.9/warnings.py
/usr/lib/python3.9/nntplib.py
/usr/lib/python3.9/reprlib.py
/usr/lib/python3.9/curses
/usr/lib/python3.9/curses/__init__.py
/usr/lib/python3.9/curses/__pycache__
/usr/lib/python3.9/curses/__pycache__/has_key.cpython-39.pyc
/usr/lib/python3.9/curses/__pycache__/panel.cpython-39.pyc
/usr/lib/python3.9/curses/__pycache__/textpad.cpython-39.pyc
/usr/lib/python3.9/curses/__pycache__/ascii.cpython-39.pyc
/usr/lib/python3.9/curses/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/curses/panel.py
/usr/lib/python3.9/curses/textpad.py
/usr/lib/python3.9/curses/ascii.py

root@server # /usr/lib/python3.
python3.11/ python3.7/  python3.9/

root@server # uname -a
SunOS server 5.11 11.4.70.170.1 sun4v sparc sun4v logical-domain
ne-bbahn commented 3 months ago

Which version of NCPA are you using? NCPA 2 uses Python 2 and NCPA 3 uses Python 3. Unfortunately these are not interchangeable.

There will be an effort to get NCPA 3 working on Solaris, but it will likely be a few months before we get to start working on that.