As you may know, CentOS 7 EOL will be on June 30, 2024, so we will need to upgrade our actual Nagios xi instances.
I already read the forums, and basically, an upgrade is not recommended and/or supported, so the better way of doing it is creating a new server.
And that's the point where I'm at.
I already created a new server using a Nagios xi OVA (nagiosxi-2024R1.0.1-64.ova), and then I followed the instructions in Nagios KB, that is:
https://assets.nagios.com/downloads/nag ... ios-xi.pdf
The backup was completed successfully, but the import in the new server is failing every time.
1)
Code: Select all
/usr/local/nagiosxi/scripts/restore_xi.sh /tmp/1707214089.tar.gz
Code: Select all
ERROR: Could not connect to localhost:3306 with root password supplied.
Please enter the MySQL root password:
4) The next error message is:
Code: Select all
ERROR 2013 (HY000) at line 2244: Lost connection to MySQL server during query
Error restoring MySQL database 'nagios'
I tried adding the following to the MySQL config with no luck:
Code: Select all
[mysqld]
connect_timeout=300
net_read_timeout=7200
net_write_timeout=7200
max_allowed_packet=512M
Code: Select all
cat /tmp/nagios.sql | mysql -u nagios -p'nagiosxi' -h "localhost" nagios
Code: Select all
ERROR 2013 (HY000) at line 494: Lost connection to MySQL server during query
Thank you!