I did the upgrade of Ngaios from version 5.6.12 to 5.7.3 and faced an issue during upgrade:
I followed the linkShared module ndo.so installed
/usr/local/nagios/etc/nagios.cfg configured to use NDO
UPGRADE: POST-UPGRADE: NDO post upgrade started...
2.0.1
Removing depricated failure_prediction_enabled from NagiosQL
copying updated mysql-upgrade-2.0.0.sql
Current database version: 2.0.1
** DB upgrade required for 2.1.0
Using mysql-upgrade-2.1.0.sql for upgrade...
https://support.nagios.com/kb/article.php?id=139
then redo the upgrade again and it stuck again before i restarted mariadb and it continue "successfully":
Shared module ndo.so installed
/usr/local/nagios/etc/nagios.cfg configured to use NDO
UPGRADE: POST-UPGRADE: NDO post upgrade started...
Performing upgrade...
> Upgrading from version 2.1.3 (/tmp/nagiosxi/subcomponents/ndo/ndo-3.0.3/db/upgrade-from-2.1.3.sql)
ERROR 1053 (08S01) at line 135: Server shutdown in progress
> Upgrading from version 3.0.0 (/tmp/nagiosxi/subcomponents/ndo/ndo-3.0.3/db/upgrade-from-3.0.0.sql)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
> Upgrading from version 3.0.1 (/tmp/nagiosxi/subcomponents/ndo/ndo-3.0.3/db/upgrade-from-3.0.1.sql)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
> Updating dbversion table
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Database upgrade is complete!
UPGRADE: POST-UPGRADE: NDO post upgraded OK.
UPGRADE: NDO upgraded OK.
UPGRADE: Nagios Plugins is being upgraded...
The problem now is the last check is not updated any more since the time of upgrade.
your quick support is appreciated (Prod ENV)
Thanks.