CentOS - Python 2.6 to 2.7 Upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
michael.link
Posts: 1
Joined: Mon Jan 08, 2018 9:57 am

CentOS - Python 2.6 to 2.7 Upgrade

Post 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?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: CentOS - Python 2.6 to 2.7 Upgrade

Post 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.
Former Nagios employee
https://www.mcapra.com/
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: CentOS - Python 2.6 to 2.7 Upgrade

Post by cdienger »

@michael.link, let us know once you've had a chance to gather data requested by @mcapra.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked