Page 1 of 1

CentOS - Python 2.6 to 2.7 Upgrade

Posted: Wed Aug 22, 2018 1:10 am
by michael.link
Hi all,

I am looking for some help in regards to completing a Python upgrade on the instance.

We are running CentOS 6.9/10 and we want to get the Dell EMC OpenManage plug-in working, which requires 2.7.4 or above Python.

I have ran through the guides online to make an alternative install and if you run Python -V on the server you get the below:

# python -V
Python 2.7.10

But when in the Nagios plug-in you still get this:

Prerequisite Checks

Python version (2.7.5 / 3.6.3) or above is not installed.

Is there anything I need to do, to point the plug-in or Nagios to that specific instance installed on the server?

Re: CentOS - Python 2.6 to 2.7 Upgrade

Posted: Wed Aug 22, 2018 8:45 am
by mcapra
Can you provide a direct link to the plugin you are attempting to use? It removes a lot of guess-work. I'll assume you're using this one:
https://exchange.nagios.org/directory/P ... re/details

Which is, according to the README:

Code: Select all

Version: 3.0 
Release Date: April 2018
Are you attempting to install this plugin using the provided install.sh script? If so, can you share the output of the following commands (run individually) executed from the CLI of your Nagios XI machine:

Code: Select all

python --version 2>&1 | awk '{print $2}'

python_version=$(python --version 2>&1 | awk '{print $2}');IFS=. read major minor extra <<< "$python_version";echo $major;echo $minor;echo $extra;

/bin/bash -c python_version=$(python --version 2>&1 | awk '{print $2}');IFS=. read major minor extra <<< "$python_version";echo $major;echo $minor;echo $extra;
In case you weren't aware, yum uses Python for a lot of it's internals so fiddling with the Python environment provided by the Base repository should be done with care.

Re: CentOS - Python 2.6 to 2.7 Upgrade

Posted: Wed Aug 22, 2018 1:57 pm
by cdienger
@michael.link, let us know once you've had a chance to gather data requested by @mcapra.