Updating Nagios XI through GUI hung

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
amunter
Posts: 33
Joined: Wed Aug 01, 2018 1:08 pm

Updating Nagios XI through GUI hung

Post by amunter »

I clicked the "update is available" link in the web GUI to update Nagios since this has worked well in the past. This time it is hung and just says:

Update in progress. Please wait. Update may take a few minutes.

I rebooted the VM, and it continues to say that. I'm using the OVA deployed one.

What can I do to poke it to complete the update?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Updating Nagios XI through GUI hung

Post by cdienger »

To clear out the "update in progress" message one of these should do the trick(assuming the default dbs are used):

Code: Select all

echo "update xi_commands set status_code = '2' where command = '1120';" | mysql -uroot -pnagiosxi nagiosxi
echo "update xi_commands set status_code = '2' where command = '1120';" | psql nagiosxi nagiosxi
After clearing this, try a manual upgrade with:

Code: Select all

cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./upgrade
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
amunter
Posts: 33
Joined: Wed Aug 01, 2018 1:08 pm

Re: Updating Nagios XI through GUI hung

Post by amunter »

Nevermind. I found the support PDF that says how to do it from the command line which worked fine. I'm on 5.6.1 now.
amunter
Posts: 33
Joined: Wed Aug 01, 2018 1:08 pm

Re: Updating Nagios XI through GUI hung

Post by amunter »

cdienger wrote:To clear out the "update in progress" message one of these should do the trick(assuming the default dbs are used):

Code: Select all

echo "update xi_commands set status_code = '2' where command = '1120';" | mysql -uroot -pnagiosxi nagiosxi
echo "update xi_commands set status_code = '2' where command = '1120';" | psql nagiosxi nagiosxi
After clearing this, try a manual upgrade with:

Code: Select all

cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./upgrade
Thanks for this! It will be useful to know how to clear out those codes.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Updating Nagios XI through GUI hung

Post by cdienger »

No problem :)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked