Tables missing after upgrade to Nagios XI 5.9.2
Posted: Tue Jan 02, 2024 4:56 am
Hello.
I just upgraded to Nagios XI 5.9.2 and immediately noticed that Last Check for services weren't updating in the UI and Nagvis map objects all were blue had this error message:
Problem (Backend: nagiosxi): NDO claims that Nagios did no status update for more than "180" seconds. Make sure that Nagios and NDO daemons are running. (Backend-ID: nagiosxi)
I looked around a bit and found this in nagios.log:
[1704188370] NDO-3: query(TRUNCATE TABLE nagios_timeperiod_exceptions) failed with rc (1), mysql (1146: Table 'nagios.nagios_timeperiod_exceptions' doesn't exist)
[1704188370] NDO-3: query(TRUNCATE TABLE nagios_timeperiod_exception_timeranges) failed with rc (1), mysql (1146: Table 'nagios.nagios_timeperiod_exception_timeranges' doesn't exist)
[1704188370] NDO-3: query(TRUNCATE TABLE nagios_timeperiod_exclusions) failed with rc (1), mysql (1146: Table 'nagios.nagios_timeperiod_exclusions' doesn't exist)
So, apparently, for whatever reason, these three tables are not present in my MySQL database:
Tables in question:
I just upgraded to Nagios XI 5.9.2 and immediately noticed that Last Check for services weren't updating in the UI and Nagvis map objects all were blue had this error message:
Problem (Backend: nagiosxi): NDO claims that Nagios did no status update for more than "180" seconds. Make sure that Nagios and NDO daemons are running. (Backend-ID: nagiosxi)
I looked around a bit and found this in nagios.log:
[1704188370] NDO-3: query(TRUNCATE TABLE nagios_timeperiod_exceptions) failed with rc (1), mysql (1146: Table 'nagios.nagios_timeperiod_exceptions' doesn't exist)
[1704188370] NDO-3: query(TRUNCATE TABLE nagios_timeperiod_exception_timeranges) failed with rc (1), mysql (1146: Table 'nagios.nagios_timeperiod_exception_timeranges' doesn't exist)
[1704188370] NDO-3: query(TRUNCATE TABLE nagios_timeperiod_exclusions) failed with rc (1), mysql (1146: Table 'nagios.nagios_timeperiod_exclusions' doesn't exist)
So, apparently, for whatever reason, these three tables are not present in my MySQL database:
Code: Select all
mysql> SHOW TABLES LIKE "nagios_timeperiod%";
+---------------------------------------+
| Tables_in_nagios (nagios_timeperiod%) |
+---------------------------------------+
| nagios_timeperiod_timeranges |
| nagios_timeperiods |
+---------------------------------------+
2 rows in set (0.00 sec)
- nagios.nagios_timeperiod_exceptions
- nagios.nagios_timeperiod_exception_timeranges
- nagios.nagios_timeperiod_exclusions