Nagios upgrade problems - new version not displayed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ppalmer
Posts: 44
Joined: Fri Apr 13, 2018 6:41 am

Nagios upgrade problems - new version not displayed

Post by ppalmer »

Hello,

We ran the offline upgrade on our Nagios XI from version 5.2.7 to 5.6.2 but Nagios still appears to be running version 5.2.7.

We downloaded 5.6.2 and ran the installation as per the instructions. After the upgrade mysqld, ndo2db and npcd service was not running and had to be started. Upon checking Nagios XI it states that it is still running the old version. We have searched the forums and cannot find a fix. We can't get Nagios to fully upgrade to the point where it is running 5.6.2.

When logging in we get this message.

Available Updates

Update Check Problem: Last update check failed.

Latest Available Version:
Installed Version: 5.2.7
Last Update Check: 2019-06-14 10:31:54


When you run an update check you get this

Product Update Check

An Update Is Available!

Your installation of Nagios XI 5.2.7 is outdated and should be upgraded. The latest version of Nagios XI is 5.6.3, which was released on 2019-06-11.


Download Now

Can anyone help please?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios upgrade problems - new version not displayed

Post by ssax »

What is the output of these commands:

Code: Select all

rpm -qa | grep nagiosxi
uname -a
cat /etc/*release
Please send me a copy of your profile, you can download it from Admin > System Profile > Download Profile.

If you're unable to generate the the profile through the web interface, please try generating it from the command line by running these commands as root:

Code: Select all

rm -rf /usr/local/nagiosxi/var/components/profile*​​
/usr/local/nagiosxi/html/includes/components/profile/getprofile.sh SUPPORT
Then send me the resulting /usr/local/nagiosxi/var/components/profile.zip​ file.​

If the profile script fails, please include the ENTIRE output.
ppalmer
Posts: 44
Joined: Fri Apr 13, 2018 6:41 am

Re: Nagios upgrade problems - new version not displayed

Post by ppalmer »

Hi,

Thanks for your response, I have messaged you.

Regards,

Paul
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios upgrade problems - new version not displayed

Post by ssax »

Please do this:

Download this file to your /tmp directory of your XI server:

Code: Select all

https://repo.nagios.com/nagiosxi-offline/nagiosxi-5.6.2-2.el6.x86_64.tar.gz
Then as root, run these commands:

Code: Select all

cd /tmp
rm -rf nagiosxi
tar zxf nagiosxi-5.6.2-2.el6.x86_64.tar.gz
mv nagiosxi nag
cd nag
rpm2cpio nagiosxi-5.6.2-2.el6.x86_64.rpm | cpio -idmv
cd tmp/nagiosxi
./rpmupgrade
Then send us the full output of all the commands.

Thank you!
ppalmer
Posts: 44
Joined: Fri Apr 13, 2018 6:41 am

Re: Nagios upgrade problems - new version not displayed

Post by ppalmer »

Hello, we have run the commands and got this error message.

root@smpnagios-kn-u1 # ./rpmupgrade
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.3.lin
Sourceguardian extension found for PHP version 5.3
Sourceguardian extension already in php.ini
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Checking required prereqs...
Please wait...

connect() timed out!
./rpmupgrade: line 121: subcomponents/nagiosql/mods/schema_01.sql: No such file or directory

He then started ndo2db and npcd service and then try to run rpmupgrade
that time he got different error.

root@smpnagios-kn-u1 # ./rpmupgrade
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.3.lin
Sourceguardian extension found for PHP version 5.3
Sourceguardian extension already in php.ini
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Checking required prereqs...
Please wait...

connect() timed out!
ERROR 1060 (42S21) at line 3: Duplicate column name 'api_key'
root@smpnagios-kn-u1 #

Hopefully that helps.

Regards,

Paul
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios upgrade problems - new version not displayed

Post by ssax »

Please do the same steps but do this before rpmupgrade:

Code: Select all

sed -i -re '114,121d' rpmupgrade
./rpmupgrade
If it fails, send what it fails on so we can continue working through them.
ppalmer
Posts: 44
Joined: Fri Apr 13, 2018 6:41 am

Re: Nagios upgrade problems - new version not displayed

Post by ppalmer »

We tried that and got this.

<p><pre>SQL Error [nagiosxi] : Duplicate entry 'NAGIOS-NOTIFY-MIB' for key 'mib_name'</pre></p>
Copying over new XI directory...
Patching NDOUtils...
NDOUtils already patched at level 103
Updating sequences...
Postgres Database not being used
Fixing config file permissions...
chown: cannot access `/usr/local/nagios/etc/services/*.cfg': No such file or directory
root@smpnagios-kn-u1 #

Regards,

Paul
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios upgrade problems - new version not displayed

Post by ssax »

Sorry, do this instead:
- Download the attached zip file
- Do this process:

Code: Select all

cd /tmp
rm -rf nagiosxi
tar zxf nagiosxi-5.6.2-2.el6.x86_64.tar.gz
mv nagiosxi nag
cd nag
rpm2cpio nagiosxi-5.6.2-2.el6.x86_64.rpm | cpio -idmv
cd tmp/nagiosxi
Then before you run the next command, replace the rpmupgrade file with the one attached and it should hopefully be resolved and complete properly:

Code: Select all

./rpmupgrade
Let us know the results.
You do not have the required permissions to view the files attached to this post.
ppalmer
Posts: 44
Joined: Fri Apr 13, 2018 6:41 am

Re: Nagios upgrade problems - new version not displayed

Post by ppalmer »

Hello,

We tried that and it failed again.

root@smpnagios-kn-u1 # ./rpmupgrade
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.3.lin
Sourceguardian extension found for PHP version 5.3
Sourceguardian extension already in php.ini
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Checking required prereqs...
Please wait...

connect() timed out!
Copying over new XI directory...
Patching NDOUtils...
NDOUtils already patched at level 103
Updating sequences...
Postgres Database not being used
Fixing config file permissions...
chown: cannot access `/usr/local/nagios/etc/services/*.cfg': No such file or directory
root@smpnagios-kn-u1 #

It's still not happy with something.

Regards,

Paul
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios upgrade problems - new version not displayed

Post by ssax »

Please create a ticket for this and include a link back to this forum thread so we can get a remote session setup:

https://support.nagios.com/tickets/
Locked