Nagios XI update to 5.6.1 - "Update in progress"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
robatwork
Posts: 28
Joined: Fri Feb 02, 2018 5:08 am

Nagios XI update to 5.6.1 - "Update in progress"

Post by robatwork »

This has been an issue in previous versions - upgrade from GUI and the check for updates box never finishes but shows upgrading. This is despite reboots and a manual upgrade.

The published fix is

Code: Select all

grep mysql /usr/local/nagiosxi/html/config.inc.php | wc -l


If the command above outputs the number 3, run this command:


echo "update xi_commands set status_code = '2' where command = '1120';" | mysql -uroot -pnagiosxi


If the command above outputs the number 2, run this command:


echo "update xi_commands set status_code = '2' where command = '1120';" | psql nagiosxi nagiosxi
However the command line isn't quite right if it's a 3. The line should be:

Code: Select all

echo "update xi_commands set status_code = '2' where command = '1120';" | mysql -uroot -pnagiosxi nagiosxi
Hope this helps someone else out
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI update to 5.6.1 - "Update in progress"

Post by lmiltchev »

We have a KB article on the topic here (FYI):

https://support.nagios.com/kb/article/n ... e-851.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
robatwork
Posts: 28
Joined: Fri Feb 02, 2018 5:08 am

Re: Nagios XI update to 5.6.1 - "Update in progress"

Post by robatwork »

That's great thanks, and I hope google will crawl and catch up with it soon so it's a front page hit - it certainly wasn't shown on any searching I did for "update in progress"
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI update to 5.6.1 - "Update in progress"

Post by scottwilkerson »

robatwork wrote:That's great thanks, and I hope google will crawl and catch up with it soon so it's a front page hit - it certainly wasn't shown on any searching I did for "update in progress"
I'm sure it will soon, it is a pretty new article.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scrantic
Posts: 17
Joined: Fri May 18, 2012 12:25 am

Re: Nagios XI update to 5.6.1 - "Update in progress"

Post by scrantic »

I followed the KB attempted to update from the GUI again and same result? Update in progress. Please wait. Update may take a few minutes.

Nothing comes up with regards to notifications or progress. Is there another step I'm missing or do I need to perform a manual upgrade
robatwork
Posts: 28
Joined: Fri Feb 02, 2018 5:08 am

Re: Nagios XI update to 5.6.1 - "Update in progress"

Post by robatwork »

Do it manually and run the last line of my OP
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI update to 5.6.1 - "Update in progress"

Post by scottwilkerson »

scrantic wrote:I followed the KB attempted to update from the GUI again and same result? Update in progress. Please wait. Update may take a few minutes.

Nothing comes up with regards to notifications or progress. Is there another step I'm missing or do I need to perform a manual upgrade
On certain system the manual upgrade is the only process that will work successfully.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Nickjames2006
Posts: 3
Joined: Tue Feb 09, 2016 10:27 am

Re: Nagios XI update to 5.6.1 - "Update in progress"

Post by Nickjames2006 »

Follow the above code in the post to stop the upgrade then run this

wget -O upgrade.sh https://assets.nagios.com/downloads/nagiosxi/upgrade.sh

sh ./upgrade.sh

Verifying Upgrade
Once the upgrade has completed you should see a message like the following:
Nagios XI Upgrade Complete!
------------------------------------
You can access the Nagios XI web interface by visiting:
http://<server_ip_address>/nagiosxi/
You should now login to the Nagios XI interface and verify everything is still working. If you are already logged
in from earlier, log out and back in again. The Nagios XI interface can be accessed using the URL provided in
the upgrade complete message
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI update to 5.6.1 - "Update in progress"

Post by scottwilkerson »

Nickjames2006 wrote:Follow the above code in the post to stop the upgrade then run this

wget -O upgrade.sh https://assets.nagios.com/downloads/nagiosxi/upgrade.sh

sh ./upgrade.sh

Verifying Upgrade
Once the upgrade has completed you should see a message like the following:
Nagios XI Upgrade Complete!
------------------------------------
You can access the Nagios XI web interface by visiting:
http://<server_ip_address>/nagiosxi/
You should now login to the Nagios XI interface and verify everything is still working. If you are already logged
in from earlier, log out and back in again. The Nagios XI interface can be accessed using the URL provided in
the upgrade complete message
thanks @Nickjames2006
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked