Upgrading python version on nagios XI server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lrnnetops
Posts: 102
Joined: Thu May 18, 2017 5:31 am

Upgrading python version on nagios XI server

Post by lrnnetops »

Hi Team,

We running nagios XI server with below details.

Nagios XI Version - 5.4.2
OS - CentOS release 6.8 - 64bit

Currently we are running with "Python 2.6.6" we wanted to upgrade it to version "2.7.6".

Please let us know will the upgrade of python version affect our current nagios xi monitoring setup. if yes please guide us how can we upgrade python version to "2.7.6" without affecting our current monitoring.

Purpose of upgrade = use custom python plugins to monitor our infra which requires newer version of python.
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: Upgrading python version on nagios XI server

Post by tacolover101 »

i don't think this will affect anything, but the nagios folks would know best.

you could always compile python locally, and call to that upgraded version in your checks. eg. /opt/python276/

this link explains further - http://thelazylog.com/install-python-as ... -on-linux/
lrnnetops
Posts: 102
Joined: Thu May 18, 2017 5:31 am

Re: Upgrading python version on nagios XI server

Post by lrnnetops »

Thank you tacolover101 for your help.

@nagios team can you help me on this asap.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Upgrading python version on nagios XI server

Post by cdienger »

We can't foresee any problems with upgrading the python version and my CentOS 7 machine actually runs 2.7.5 which is a good sign, but we haven't actually tested this since CentOS 6 doesn't have a 2.7.6 package. Take the usual upgrade precautions of making backups of the system just in case and try it on a dev sever first if possible. Failing that, @tacolover101's suggestion of installing a second version of python and calling that when needed is a good one that has been recommended before on these boards.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Upgrading python version on nagios XI server

Post by npolovenko »

@lrnnetops, We only support the stock python versions that come with the OS. With that disclaimer mentioned, the key Nagios components do not really depend on python. My only concern is plugins compatibility. A lot of our plugins were written in python and if Python 2.7.6 has some different syntax rules the old plugin might not work. That is if you even use python plugins.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
lrnnetops
Posts: 102
Joined: Thu May 18, 2017 5:31 am

Re: Upgrading python version on nagios XI server

Post by lrnnetops »

Hi Team,

We have upgraded python to 2.7 on test environment by alternate installation & it worked.

Please close this thread.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Upgrading python version on nagios XI server

Post by npolovenko »

@lrnnetops, Thanks for the update. Closing the ticket.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked