Nagios xi upgrade from 5.8.5 to 5.8.7 fails

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
ndaniello@vccs.edu
Posts: 3
Joined: Tue May 04, 2021 8:17 am

Nagios xi upgrade from 5.8.5 to 5.8.7 fails

Post by ndaniello@vccs.edu »

After confirming successfully backups and snapshot, I attempted Nagios xi upgrae from 5.8.5 to 5.8.7 and it failed to complete with the last message stating:

INSTALL: POST-INSTALL: MRTG post install is running...
./post_install: line 20: python: command not found

When searching for post_install from command line, I see the following file / permissions:

[root@pv02948 ~]# ls -ld /usr/local/nagiosxi/tmp/nagiosxi/subcomponents/mrtg/post_install
-rwxr-xr-x 1 root root 1087 Nov 1 11:36 /usr/local/nagiosxi/tmp/nagiosxi/subcomponents/mrtg/post_install

Can you please help to advise why this is failing and how to best proceed.

Thank you.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios xi upgrade from 5.8.5 to 5.8.7 fails

Post by tgriep »

The post_install script uses python for the MRTG configuration file updates and it cannot find the python application on the server.

The python application is a link to either Python 2 or 3 depending on what version is installed on the server.

To create the link for Python 2, you would run this as root.

Code: Select all

ln -s /usr/bin/python2 /usr/bin/python
For Python 3, run this.

Code: Select all

ln -s /usr/bin/python3 /usr/bin/python
After creating the link, re-run the xi upgrade to see if it finishes.

Thank you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ndaniello@vccs.edu
Posts: 3
Joined: Tue May 04, 2021 8:17 am

Re: Nagios xi upgrade from 5.8.5 to 5.8.7 fails

Post by ndaniello@vccs.edu »

Thank you for the quick feedback. Your recommendations worked, and our upgrade on the Nonprod Nagios xi instance was successful. We will move forward with updating our Prod system next week. Thank you for your support.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios xi upgrade from 5.8.5 to 5.8.7 fails

Post by tgriep »

Your welcome, glad it worked. Let us know if you have any further questions or issues.
Be sure to check out our Knowledgebase for helpful articles and solutions!