Nagios upgrade problems - new version not displayed
Nagios upgrade problems - new version not displayed
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?
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?
Re: Nagios upgrade problems - new version not displayed
What is the output of these commands:
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:
Then send me the resulting /usr/local/nagiosxi/var/components/profile.zip file.
If the profile script fails, please include the ENTIRE output.
Code: Select all
rpm -qa | grep nagiosxi
uname -a
cat /etc/*release
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
If the profile script fails, please include the ENTIRE output.
Re: Nagios upgrade problems - new version not displayed
Hi,
Thanks for your response, I have messaged you.
Regards,
Paul
Thanks for your response, I have messaged you.
Regards,
Paul
Re: Nagios upgrade problems - new version not displayed
Please do this:
Download this file to your /tmp directory of your XI server:
Then as root, run these commands:
Then send us the full output of all the commands.
Thank you!
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
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
Thank you!
Re: Nagios upgrade problems - new version not displayed
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
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
Re: Nagios upgrade problems - new version not displayed
Please do the same steps but do this before rpmupgrade:
If it fails, send what it fails on so we can continue working through them.
Code: Select all
sed -i -re '114,121d' rpmupgrade
./rpmupgrade
Re: Nagios upgrade problems - new version not displayed
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
<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
Re: Nagios upgrade problems - new version not displayed
Sorry, do this instead:
- Download the attached zip file
- Do this process:
Then before you run the next command, replace the rpmupgrade file with the one attached and it should hopefully be resolved and complete properly:
Let us know the results.
- 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
Code: Select all
./rpmupgrade
You do not have the required permissions to view the files attached to this post.
Re: Nagios upgrade problems - new version not displayed
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
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
Re: Nagios upgrade problems - new version not displayed
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/
https://support.nagios.com/tickets/