Page 1 of 1

Upgrading python version on nagios XI server

Posted: Tue Mar 13, 2018 4:55 pm
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.

Re: Upgrading python version on nagios XI server

Posted: Tue Mar 13, 2018 10:24 pm
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/

Re: Upgrading python version on nagios XI server

Posted: Wed Mar 14, 2018 5:52 am
by lrnnetops
Thank you tacolover101 for your help.

@nagios team can you help me on this asap.

Re: Upgrading python version on nagios XI server

Posted: Wed Mar 14, 2018 10:31 am
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.

Re: Upgrading python version on nagios XI server

Posted: Wed Mar 14, 2018 10:38 am
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.

Re: Upgrading python version on nagios XI server

Posted: Wed Apr 18, 2018 11:30 am
by lrnnetops
Hi Team,

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

Please close this thread.

Re: Upgrading python version on nagios XI server

Posted: Wed Apr 18, 2018 12:26 pm
by npolovenko
@lrnnetops, Thanks for the update. Closing the ticket.