Page 2 of 2

Re: Return code of 127 is out of bounds. Check if plugin exi

Posted: Tue Jun 15, 2021 3:36 pm
by gsmith
Once in awhile we run into issues if a plugin is written for Python2 and someone is running Python3
but we are able to deal with it on a case by case basis.

on the nagiosxi server run:

Code: Select all

which python
If it comes back with a filepath then:

Code: Select all

ls -l <filepath>
we may have to create a symbolic link from one of your installs to /usr/bin/python

Re: Return code of 127 is out of bounds. Check if plugin exi

Posted: Tue Jun 15, 2021 3:45 pm
by scpeterson
which python
/usr/bin/which: no python in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)

Looks like I need to add a link to one of the versions of python then?

Re: Return code of 127 is out of bounds. Check if plugin exi

Posted: Tue Jun 15, 2021 5:01 pm
by gsmith
Exactly.

Do a:

Code: Select all

ln -s /blah/blah/blah/python  /usr/bin/python
Use the python2 version please.

Thanks

Re: Return code of 127 is out of bounds. Check if plugin exi

Posted: Wed Jun 16, 2021 9:09 am
by scpeterson
That fixed my issue. I ran the command

Code: Select all

ln -s /usr/bin/python2.7 /usr/bin/python
as root, and everything started working again.
Thanks much for your help.