Support Python Versions

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Support Python Versions

Post by dbcummings »

What versions of Python are supported or "best" for the Nagios XI installation?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Support Python Versions

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: Support Python Versions

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Support Python Versions

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: Support Python Versions

Post by dbcummings »

That did not solve the problem.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Support Python Versions

Post by scottwilkerson »

Where is boto3 installing?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: Support Python Versions

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Support Python Versions

Post by scottwilkerson »

Trying to do some digging here and I'd like to try one more thing

Code: Select all

sudo python -m pip install boto3
From:
https://stackoverflow.com/questions/333 ... tall-boto3
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: Support Python Versions

Post by dbcummings »

No dice.
dbcummings
Posts: 130
Joined: Thu Dec 13, 2018 8:37 am

Re: Support Python Versions

Post 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.
Locked