Pandora: Pandora Upgrade

From Pandora FMS Wiki
Revision as of 09:13, 9 February 2017 by Steve alvey (talk | contribs)
Jump to: navigation, search

1 Quick guide to upgrade your Pandora FMS ISO version from 5.1 to 6.0

1.1 Introduction

Pandora FMS is made up of three parts.

- Pandora FMS Console

- Database

- Pandora FMS Server

If it were an update to a lower version, which does not need a database update, eg 5.1 SP2 to 5.1 SP3, no action is taken on the database, only the Console and Server packages need to be updated.

1.2 Pre-upgrade

Before updating all components, it's necessary to back up any and all important elements, in this case, the database, the server's configuration file, and the console. In this example all the elements are saved in the /home/artica/Backup directory

[[email protected] ~]# rpm -qa | grep pandora
[[email protected] ~]# mkdir /home/artica/Backup
[[email protected] ~]# mysqldump -uroot -ppandora pandora > /home/artica/Backup/backupsp4.sql
[[email protected] ~]# cp -R /var/www/html/pandora_console/ /home/artica/Backup/
[[email protected] ~]# cp /etc/pandora/pandora_server.conf /home/artica/Backup/

Once the backup is complete, stop the Pandora Server and the Tentacle Server:

[[email protected] ~]# /etc/init.d/pandora_server stop
[[email protected] ~]# /etc/init.d/tentacle_serverd stop

1.3 Upgrading the Console

Template warning.png

To Enterprise users: before proceeding with the update, please request a new version 6 license from the Artica sales department.


To update the console you must first upgrade the rpm packages that have been installed. To do this use the following command:

[[email protected] tmp]# rpm -U --force pandorafms_console-6.0-1.noarch.rpm pandorafms_console_enterprise-6.0-1.noarch.rpm 

If you are using the Open version, only update the pandorafms_console-6.0-1.noarch.rpm package, that can be downloaded from Sourceforge.

For Enterprise users, the Enterprise package can be downloaded from Artica's Support website.

1.4 Upgrading the Database

If it's a major release such as when upgrading from version 5.1 to 6.0, then the database scheme also needs updating. The migration scripts will be added when you install the new Console version.

To perform this task we have to issue the following commands:

To upgrade the Open version:

[[email protected] tmp]# cat /var/www/html/pandora_console/extras/pandoradb_migrate_5.1.x_to_6.0.mysql.sql | mysql -uroot -ppandora -D pandora

To upgrade the Enterprise version:

[[email protected] tmp]# cat /var/www/html/pandora_console/extras/pandoradb_migrate_5.1.x_to_6.0.mysql.sql | mysql -uroot -ppandora -D pandora
[[email protected] tmp]# cat /var/www/html/pandora_console/enterprise/pandoradb_migrate_v5.1.x_to_v6.0.mysql.sql | mysql -uroot -ppandora -D pandora

After executing these migration scripts the database should be successfully updated and it should be ready to work on version 6.0

1.5 Upgrading the Server

Once the console and the database are updated, the last step is to perform the server upgrade.

For the Open version, the update is performed the same as for earlier versions. Just download the appropriate package from Sourceforge and update it with this command:

[[email protected] tmp]# rpm -U --force pandorafms_server-6.0-1.noarch.rpm 

For the Enterprise version, the Enterprise package is installed through binaries.

After updating the Open Package (Sourceforge), install the Enterprise Version (Artica):

[[email protected] tmp]# rpm -U --force pandorafms_server-6.0-1.noarch.rpm 
An existing version of pandora_server.conf is found.
Don't forget to start Tentacle Server daemon if you want to receive
data using tentacle
[[email protected] tmp]# tar -xvzf pandorafms_server_enterprise_6.0_x86.tar.gz 
[[email protected] tmp]# cd pandora_server/
[[email protected] pandora_server]# ./pandora_server_installer --install
Pandora FMS Server Enterprise installer for GENERIC. (c) 2014 Artica ST.

>Installing the Pandora FMS Server Enterprise binary to /usr/bin...
>Installing the pandora_db binary to /usr/bin...
>Installing the pandora_manage binary to /usr/bin...
>Installing the braa binary to /usr/bin...
>Adding pandora_db to the crontab... 

Restart Pandora FMS Server.

The packages are now installed and, at the end of the update, the system will have these:

[[email protected] pandora_server]# rpm -qa | grep pandora

Now restart the services

[[email protected] ~]# /etc/init.d/pandora_server start

Pandora FMS Server 6.0 Build 151020 Copyright (c) 2004-2014 ArticaST
This program is OpenSource, licensed under the terms of GPL License version 2.
You can download latest versions and documentation at  

[*] Backgrounding Pandora FMS Server process.

Pandora Server is now running with PID 8407

[[email protected] ~]# /etc/init.d/tentacle_serverd start

Template warning.png

If the mysql socket is not installed by default, you must modify it in /etc/pandora/pandora_server.conf the dbhost parameter with the ip instead of localhost