UPGRADE: POST-UPGRADE: NDO post upgrade started...
Performing upgrade...
with a message:
Your dbversion is 1.5.2, and our minimum supported upgrade version is
Upgrade your version of NDOUtils to 2.0.1 before attempting this upgrade
However we allready are running NDOutils 2.1.3
Code: Select all
/usr/local/nagios/bin/ndo2db --version
NDO2DB 2.1.3
Copyright (c) 2009 Nagios Core Development Team and Community Contributors
Copyright (c) 2005-2008 Ethan Galstad
Last Modified: 2017-04-13
License: GPL v2Code: Select all
MariaDB [nagios]> select * from nagios_dbversion;
+----------+---------+
| name | version |
+----------+---------+
| ndoutils | 1.5.2 |
+----------+---------+
1 row in set (0.00 sec)
In our test environment we succeeded the upgrade of the database by
running the upgradedb script in the ndoutils-2.1.3/db directory and fixing the following problems by hand:
removing the `minimum_importance` from the `nagios_contacts` table
and adjusting the values of `entry_time_usec` in the `nagios_logentries` table so we didn't have duplicate
This gave us an 2.1.3 database. after wich we could run the Nagiosxi upgrade successfully.
However during starting of the Nagios we got errors in the nagios.log telling
[1591796460] NDO-3: Unable to prepare statement for query (27): Unknown column 'check_options' in 'field list'
[1591796460] NDO-3: Unable to prepare statement for query (28): Unknown column 'check_options' in 'field list'
It seemed the database upgrade to 3.0.0 wasn't successful these columns weren't in the database
We manualy ran the upgrade-from-2.1.3.sql script to the database, Now it looks like Nagios is running again.
however we do get NDO-3 errors in the nagios.log::
[1591799013] NDO-3: ndo_get_object_id_name1() - name1 is null
[1591799013] NDO-3: ndo_get_object_id_name1() - name1 is null
[1591799013] NDO-3: ndo_get_object_id_name1() - name1 is null
[1591799013] NDO-3: ndo_get_object_id_name1() - name1 is null
[1591799013] NDO-3: ndo_get_object_id_name1() - name1 is null
This upgrade procedure is not what we want to run in production.
also we want this last error to be fixed.
can you please develop a correct upgrade procedure?
how can we fix these last database errors?
Kind regards,
Joris Weijters