Migrating Nagios 5.8.5 to RHEL8
Posted: Thu Aug 05, 2021 3:07 pm
I've been tasked with getting our NagiosXI setup running on RHEL8 and I'm having all sorts of problems.
I started with a fresh RHEL8 install and Installed NagiosXI as you would on a new server. After the installation was completed, I copied over the most recent backup from the RHEL7 machine and used the restore_xi script as detailed here: https://support.nagios.com/kb/article/m ... r-892.html
After migrating our data to the rhel8 server, I've noticed a lot of problems: I can't force immediate checks on services anymore, they give me the timeout warning, "Your request was not processed in a timely manner. It may still execute, as the server may be temporarily busy."
I also can't Apply Changes in the core config manager, it says "SQL Error [nagiosxi] : Incorrect datetime value: '0000-00-00 00:00:00' for column 'processing_time' at row 1"
When I make changes in the CCM, I click apply, but the changes aren't applied. Instead, I try manually applying the changes from Config File Management and when I try to Verify Files, it complains that there are no hosts attached to the service that I changed (so the new hosts I added don't get applied). "Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/LDAPS.cfg', starting on line 16)"
My database administration skills could definitely use improvement, but before I was forced to disable mysql binlogs we were getting about 13GB of error log files per day filling up 100% of the available space in /var
I've tried running the "/usr/local/nagiosxi/scripts/repair_databases.sh" script, but that doesn't seem to fix any of these errors. At this point I've run out of straws to grasp at and I'm facing having to wipe the server and start over; losing us about a week of work and landing us way behind schedule. If there is any other way to address these issues, I'd like to give it a try before I wipe the thing. I'm fairly certain that issues with the database are causing 95% or more of the problems I'm having.
Any help would be much appreciated!
I started with a fresh RHEL8 install and Installed NagiosXI as you would on a new server. After the installation was completed, I copied over the most recent backup from the RHEL7 machine and used the restore_xi script as detailed here: https://support.nagios.com/kb/article/m ... r-892.html
After migrating our data to the rhel8 server, I've noticed a lot of problems: I can't force immediate checks on services anymore, they give me the timeout warning, "Your request was not processed in a timely manner. It may still execute, as the server may be temporarily busy."
I also can't Apply Changes in the core config manager, it says "SQL Error [nagiosxi] : Incorrect datetime value: '0000-00-00 00:00:00' for column 'processing_time' at row 1"
When I make changes in the CCM, I click apply, but the changes aren't applied. Instead, I try manually applying the changes from Config File Management and when I try to Verify Files, it complains that there are no hosts attached to the service that I changed (so the new hosts I added don't get applied). "Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/LDAPS.cfg', starting on line 16)"
My database administration skills could definitely use improvement, but before I was forced to disable mysql binlogs we were getting about 13GB of error log files per day filling up 100% of the available space in /var
I've tried running the "/usr/local/nagiosxi/scripts/repair_databases.sh" script, but that doesn't seem to fix any of these errors. At this point I've run out of straws to grasp at and I'm facing having to wipe the server and start over; losing us about a week of work and landing us way behind schedule. If there is any other way to address these issues, I'd like to give it a try before I wipe the thing. I'm fairly certain that issues with the database are causing 95% or more of the problems I'm having.
Any help would be much appreciated!