Page 1 of 2

Update in progress message stuck

Posted: Tue Sep 28, 2021 10:07 am
by Psihawk
Hello. I have been able to upgrade Nagios via manual methods.. but via the GUI I always have UPDATE IN PROGRESS message.
How is this cleared? I have followed the information here:
https://support.nagios.com/kb/article/n ... e-851.html

But when running this: mysql -u'nagiosxi' -p'n@gweb' nagiosxi -e "update xi_commands set status_code = '2' where command = '1120';"
(My password is different than above)
I get the message
Error 1045 (28000): Access denied for user 'nagiosxi'@'localhost'

Any thoughts?

Re: Update in progress message stuck

Posted: Tue Sep 28, 2021 2:42 pm
by benjaminsmith
Hi,

Some systems do not seem to have issues with the GUI upgrade but others do. In your case, I would recommend using the manual upgrade.

Regarding the error message, it's either the password or perhaps the database is offloaded. In that same kb article, there are instructions on how to check the passwords on your system. Did you check those settings? Is the dbserver for nagiosxi localhost?

https://support.nagios.com/kb/article/n ... e-851.html

--Benjamin

Re: Update in progress message stuck

Posted: Tue Nov 09, 2021 2:55 pm
by Psihawk
I get the error when following the article you posted that says

ERROR 1045 (28000): Access denied for user 'nagiosxi'@'localhost' (using password: YES)

I am logged in as root and at a # sign. Got password from the config file.

Re: Update in progress message stuck

Posted: Tue Nov 09, 2021 3:02 pm
by Psihawk
Also the DB is not local host but on another linux host

Re: Update in progress message stuck

Posted: Wed Nov 10, 2021 11:39 am
by benjaminsmith
Hi,

Okay, we'll have to update the command to communicate with the offloaded database server. For example:

Code: Select all

mysql -u nagios -p'nagiosP@ssw0rd' -h <IP_ADDRESS_OF_MYSQL_OR_MARIADB_SERVER> -e "update xi_commands set status_code = '2' where command = '1120';"
Alternatively, you could log into the system and run that query on the nagiosxi database if that's easier.

Reference:
Nagios XI Offloading MySQL to Remote Server

Re: Update in progress message stuck

Posted: Thu Nov 11, 2021 2:12 pm
by Psihawk
Running that query via the SSH window on Nagios pointing at IP of DB server we get


[root@prin-mo-0 ~]# mysql -u nagiosxi -p'nagiosxi' -h XXX.XXX.XXX.XXX -e "update xi_commands set status_code = '2' where command
= '1120';"
ERROR 1046 (3D000) at line 1: No database selected
[root@prin-mo-0 ~]#

Re: Update in progress message stuck

Posted: Thu Nov 11, 2021 2:14 pm
by Psihawk
Or running it directly on the server hosting the MYSQL DB

root@prin-mo-1 ~]# mysql -u nagiosxi -p'nagiosxi' -h XXX.XXX.XXX.XXX -e "update xi_commands set status_code = '2' where command = '1120';"
ERROR 1130 (HY000): Host 'prin-mo-1.mistras.local' is not allowed to connect to this MariaDB server
[root@prin-mo-1 ~]#

Re: Update in progress message stuck

Posted: Fri Nov 12, 2021 10:10 am
by ssax
Please use this:

Code: Select all

mysql -u nagiosxi -p'nagiosxi' -h XXX.XXX.XXX.XXX nagiosxi -e "update xi_commands set status_code = '2' where command
= '1120';"

Re: Update in progress message stuck

Posted: Sun Nov 14, 2021 10:40 pm
by Psihawk
Same error

[root@prin-mo-1 ~]# mysql -u nagiosxi -p'nagiosxi' -h xxx.xxx.xxx.xxx nagiosxi -e "update xi_commands set status_code = '2' where command = '1120';"
ERROR 1130 (HY000): Host 'prin-mo-1.mistras.local' is not allowed to connect to this MariaDB server
[root@prin-mo-1 ~]#

Re: Update in progress message stuck

Posted: Sun Nov 14, 2021 10:46 pm
by Psihawk
Nevermind.. ran that command on the SSH terminal from within Nagios and it worked!

Thank you