Nagiosxi update - Return code of 127 is out of bounds
Posted: Fri Oct 27, 2023 11:06 am
hi,
We are running nagiosxi 5.11.1 on RHEL 8, using python 3.6.8. The system is running - we have the GUI and command line checks also work. We installed nagiosxi thru the repo.
We have tried to run the nagiosxi update thru the web interface separate from the OS updates and we have also tried running yum update to handle both OS and nagiosxi - we end up with the same issue either way we run updates
# python --version
Python 3.6.8
#which python3
/usr/bin/python3
what is listed in /usr/bin for python
# ls -l /usr/bin/pyt*
lrwxrwxrwx. 1 root root 25 Feb 28 2020 /usr/bin/python3 -> /etc/alternatives/python3
lrwxrwxrwx. 1 root root 31 Aug 11 2021 /usr/bin/python3.6 -> /usr/libexec/platform-python3.6
lrwxrwxrwx. 1 root root 32 Aug 11 2021 /usr/bin/python3.6m -> /usr/libexec/platform-python3.6m
We can run the updates and there are no errors, but once we restart - in the GUI the clients get the error: Return code of 127 is out of bounds. Check if plugin exists.
When using the CLI:
#/usr/local/nagios/libexec/check_ncpa.py -t "passwd" -H 10.x.x.x -M memory/virtual -w 90 -c 95 -u G
/usr/bin/env: ‘python’: No such file or directory
1. How do I resolve this ?
2. If the system is running before the update without 'python' - why does it need it after the update ?
We are running nagiosxi 5.11.1 on RHEL 8, using python 3.6.8. The system is running - we have the GUI and command line checks also work. We installed nagiosxi thru the repo.
We have tried to run the nagiosxi update thru the web interface separate from the OS updates and we have also tried running yum update to handle both OS and nagiosxi - we end up with the same issue either way we run updates
# python --version
Python 3.6.8
#which python3
/usr/bin/python3
what is listed in /usr/bin for python
# ls -l /usr/bin/pyt*
lrwxrwxrwx. 1 root root 25 Feb 28 2020 /usr/bin/python3 -> /etc/alternatives/python3
lrwxrwxrwx. 1 root root 31 Aug 11 2021 /usr/bin/python3.6 -> /usr/libexec/platform-python3.6
lrwxrwxrwx. 1 root root 32 Aug 11 2021 /usr/bin/python3.6m -> /usr/libexec/platform-python3.6m
We can run the updates and there are no errors, but once we restart - in the GUI the clients get the error: Return code of 127 is out of bounds. Check if plugin exists.
When using the CLI:
#/usr/local/nagios/libexec/check_ncpa.py -t "passwd" -H 10.x.x.x -M memory/virtual -w 90 -c 95 -u G
/usr/bin/env: ‘python’: No such file or directory
1. How do I resolve this ?
2. If the system is running before the update without 'python' - why does it need it after the update ?