Migration process from 772 to 777
Prerequisites
Pandora FMS version 772 with MySQL 5.7 and PHP 8.0 must be installed.
The final installed versions after following these instructions will be Pandora FMS version 777.3 with MySQL 8 and PHP 8.2.
Migration and upgrade via OUM
Pandora FMS version 772 (MySQL 5.7 and PHP 8.0) to version 777.3 (MySQL 8 and PHP 8.2).
1. The MySQL update to version 8.0 must be performed before proceeding with the environment upgrade.
2. In the menu Management → Settings → System Settings → Historical database, deactivate the connection to the historical database.
3. Upgrade via Offline Console using OUM to version 775.
At this point, the tool will indicate the need to install PHP version 8.2 in order to upgrade to Pandora FMS version 776:
4. Upgrade PHP to version 8.2, depending on the installed operating system:
5. Continue the online installation via the Update manager or with OUM packages, until at least version 777.3 is reached.
6. Update the server tar.gz package to 777.3 by downloading the package from the Support website:
https://support.pandorafms.com/itsm/attachment/downloads/pandorafms_server_enterprise-7.0NG.777.3_x86_64.tar.gz
Install the downloaded package using the following commands:
tar xvzf pandorafms_server_enterprise-7.0NG.777.3_x86_64.tar.gz cd pandora_server ./pandora_server_installer --install
7. Restart service.
systemctl restart pandora_server
8. Reactivate the historical database with the same parameters used before the upgrade.
9. It is recommended to continue with the upgrade process to the latest minor release of the LTS version up to date, 777.XX.
Migration and upgrade via RPM
Pandora FMS version 772 (MySQL 5.7 and PHP 8.0) to version 777.3 (MySQL 8 and PHP 8.2).
1. The MySQL update to version 8.0 must be performed before proceeding with the environment upgrade.
2. Upgrade PHP to version 8.2, depending on the installed operating system:
3. Update the Console via RPM to version 777.3.
First, remove the old RPM registration with the previous installation model. Identify the installed packages with the following command:
rpm -qa | grep pandorafms_console
Uninstall the console package registrations with the following commands:
sudo rpm -e --justdb --nodeps pandorafms_console-7.0NG.772.2-1.noarch sudo rpm -e --justdb --nodeps pandorafms_console_enterprise-7.0NG.772.2-1.noarch
Download and install the update package: You can download it from the Support website, you must select the compatible package with your version, in most cases it will be EL 8 for Rocky Linux or RHEL 8. Run the following commands:
rpm -U pandorafms_console-7.0NG.777.3.el8.x86_64.rpm
The MR files will be applied automatically in this process. However, it is recommended to perform the update manually and check the status with the following command:
php /var/www/html/pandora_console/godmode/um_client/updateMR.php
4. Update the server with the Tarball package to version 777.3. The package, in tar.gz format, can be downloaded from the Support website:
tar xvzf pandorafms_server_enterprise-7.0NG.777.3_x86_64.tar.gz cd pandora_server ./pandora_server_installer --install
5. Restart service:
systemctl restart pandora_server
Migration and upgrade via Tarball
Pandora FMS version 772 (MySQL 5.7 and PHP 8.0) to version 777.3 (MySQL 8 and PHP 8.2).
1. Upgrade PHP to version 8.2:
2. Update the Console via Tarball to version 777.3. The package, in tar.gz format, can be downloaded from the Support website:
tar xzvf pandorafms_console-7.0NG.777.3.tar.gz cp -R pandora_console /var/www/html/ rm -f /var/www/html/pandora_console/install.php
Next, set the necessary permissions in the Console directory depending on the operating system.
For Rocky Linux / RHEL:
chown -R apache:apache /var/www/html/pandora_console
For Ubuntu:
chown -R www-data:www-data /var/www/html/pandora_console
To update the database structure, the recommended option is to use the following script:
php /var/www/html/pandora_console/godmode/um_client/updateMR.php
Alternatively, in case the previous process fails, this can be done manually:
Log in to the database:
mysql -u root -p pandora
Next, apply the necessary MR files (65.sql, 66.sql, 67.sql, 68.sql, and 69.sql):
SOURCE /var/www/html/pandora_console/extras/mr/65.sql; SOURCE /var/www/html/pandora_console/extras/mr/66.sql; SOURCE /var/www/html/pandora_console/extras/mr/67.sql; SOURCE /var/www/html/pandora_console/extras/mr/68.sql; SOURCE /var/www/html/pandora_console/extras/mr/69.sql;
Finally, modify the MR fields:
UPDATE tconfig SET VALUE= 69 WHERE token='MR'; UPDATE tconfig SET VALUE= "777.3" WHERE token=’current_version’; exit;
4. Update the server with the Tarball package to version 777.3. The package, in tar.gz format, can be downloaded from the Support website:
tar xvzf pandorafms_server_enterprise-7.0NG.777.3_x86_64.tar.gz cd pandora_server ./pandora_server_installer --install
5. Restart service:
systemctl restart pandora_server
6. It is recommended to run the following command to avoid errors in the console:
cd /var/www/html/pandora_console/ && cat extras/delete_files/delete_files.txt | xargs rm -fr
Update to the most recent LTS patch version
It is recommended that after updating from version 772 LTS to version 777.3 LTS, continue upgrading to the latest LTS patch version 777.X.


