Page 1 of 2
Support Python Versions
Posted: Fri Aug 30, 2019 8:11 am
by dbcummings
What versions of Python are supported or "best" for the Nagios XI installation?
Re: Support Python Versions
Posted: Fri Aug 30, 2019 11:53 am
by benjaminsmith
Hi
@dcummings,
You'll need to python 2.x. The python plugins installed by Nagios XI in
/usr/local/nagios/libexec as well as most of the plugins in Nagios Exchange are written in 2.x
Let us know if you have any other questions.
Re: Support Python Versions
Posted: Fri Aug 30, 2019 1:57 pm
by dbcummings
Our servers have 2.7.5 installed by default. If I install 2.7.9 for pip, it is deposited in an alternate directory. The fullinstall script has an error on boto3 because of this. I have installed an alternate python to install boto3 using pip. However, Nagios XI doesn't "see" boto3 after the install. Thoughts?
Re: Support Python Versions
Posted: Fri Aug 30, 2019 2:13 pm
by scottwilkerson
I think boto3 us just getting installed in the local users path instead of the global
try the following:
Code: Select all
sudo su
cd ~
umask 022
pip install boto3
Re: Support Python Versions
Posted: Wed Sep 04, 2019 8:36 am
by dbcummings
That did not solve the problem.
Re: Support Python Versions
Posted: Wed Sep 04, 2019 8:39 am
by scottwilkerson
Where is boto3 installing?
Re: Support Python Versions
Posted: Wed Sep 04, 2019 9:46 am
by dbcummings
/opt/rh/python27/root/usr/lib/python2.7/site-packages
I have attempted symlinks and copy the directories to /usr/lib/python2.7 and changing permissions but no dice.
Re: Support Python Versions
Posted: Wed Sep 04, 2019 10:21 am
by scottwilkerson
Trying to do some digging here and I'd like to try one more thing
From:
https://stackoverflow.com/questions/333 ... tall-boto3
Re: Support Python Versions
Posted: Wed Sep 04, 2019 10:35 am
by dbcummings
No dice.
Re: Support Python Versions
Posted: Wed Sep 04, 2019 10:51 am
by dbcummings
Boto3 gets deployed into /usr/lib/python2.7/site-packages and I can do an import boto3 in python, but the Nagios XI config wizards are still asking for me to install boto3.