Difference between revisions of "Pandora: Pandora Upgrade"

From Pandora FMS Wiki
Jump to: navigation, search
(Upgrading the Console)
(Quick guide to update Pandora FMS ISO version from 5.1 to 6.0)
Line 1: Line 1:
= Quick guide to update Pandora FMS ISO version from 5.1 to 6.0 =
+
= Quick guide to upgrade your Pandora FMS ISO version from 5.1 to 6.0 =
  
 
== Introduction ==
 
== Introduction ==
  
We must know that Pandora FMS consists of three parts.
+
We must understand that Pandora FMS is made of three parts.
  
 
- '''Pandora FMS Console'''
 
- '''Pandora FMS Console'''
Line 11: Line 11:
 
- '''Pandora FMS Server'''
 
- '''Pandora FMS Server'''
  
If it were an update to a lower version, which does not need an update of the database, eg 5.1 SP2 to 5.1 SP3, we should not take any action on the database, so we would only need to update Console and Server packages.
+
If it were an update to a lower version, which does not need a database update, eg 5.1 SP2 to 5.1 SP3, we should not take any action on the database, so we would only need to update the Console and Server packages.
  
 
== Pre-upgrade ==
 
== Pre-upgrade ==
  
Before updating all components, it's necessary backing up all important elements, in this case, the database, the server's configuration file and the console. In this example we will keep all the elements in the /home/artica/Backup directory
+
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 we'll keep all the elements in the /home/artica/Backup directory
  
 
  [[email protected] ~]# rpm -qa | grep pandora
 
  [[email protected] ~]# rpm -qa | grep pandora
Line 27: Line 27:
  
  
Once completed the backup, stop pandora server and tentacle server:
+
Once the backup is complete, stop the Pandora Server and the Tentacle Server:
  
  
Line 35: Line 35:
 
== Upgrading the Console ==
 
== Upgrading the Console ==
  
{{Warning|To Enterprise users, before proceeding with the update, please request a new version 6 license to the sales department of Artica.}}
+
{{Warning|To Enterprise users: before proceeding with the update, please request a new version 6 license to the Artica sales department.}}
  
To update the console must upgrade the rpm packages that have been installed. To do this use the following command:
+
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  
 
  [[email protected] tmp]# rpm -U --force pandorafms_console-6.0-1.noarch.rpm pandorafms_console_enterprise-6.0-1.noarch.rpm  
  
If we are using the Open version, we only update the pandorafms_console-6.0-1.noarch.rpm package, that can be downloaded from [http://sourceforge.net/projects/pandora/files/Pandora%20FMS%205.1/Final/RHEL_CentOS/ Sourceforge].
+
If we are using the Open version, we must only update the pandorafms_console-6.0-1.noarch.rpm package, that can be downloaded from [http://sourceforge.net/projects/pandora/files/Pandora%20FMS%205.1/Final/RHEL_CentOS/ Sourceforge].
  
For Enterprise users, the Enterprise package can be donwloaded from Artica's Support website.
+
For Enterprise users, the Enterprise package can be downloaded from Artica's Support website.
  
 
== Upgrading the Database ==
 
== Upgrading the Database ==
  
  
If it is a major release such as when upgrading from version 5.1 to 6.0, we also need to update the database schema. The migration scripts will be added when you install the new Console version.
+
If it's a major release such as when upgrading from version 5.1 to 6.0, we also need to update the database scheme. The migration scripts will be added when you install the new Console version.
  
To perform this purpose we run the following commands:
+
To perform this task we have to issue the following commands:
  
 
To upgrade the '''Open''' version:
 
To upgrade the '''Open''' version:
Line 62: Line 62:
 
  [[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
 
  [[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, we have updated the database and is ready to work in version 6.0
+
After executing these migration scripts, we should have successfully updated the database and it should be ready to work on version 6.0
  
 
== Upgrading the Server ==
 
== Upgrading the Server ==
Line 68: Line 68:
 
Once we have updated the console and the database, the last step is to perform the server upgrade.
 
Once we have updated the console and the database, the last step is to perform the server upgrade.
  
For the '''Open''' version, the update is performed as earlier versions. Just download the appropriate package from Sourceforge and update it with this execution:
+
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  
 
  [[email protected] tmp]# rpm -U --force pandorafms_server-6.0-1.noarch.rpm  
  
For the '''Enterprise''' version, the Enterprise package is installed with binary.
+
For the '''Enterprise''' version, the Enterprise package is installed through binaries.
  
After updating the Open Package (Sourceforge), install the Enterprise (Artica):
+
After updating the Open Package (Sourceforge), install the Enterprise Version (Artica):
  
 
  [[email protected] tmp]# rpm -U --force pandorafms_server-6.0-1.noarch.rpm  
 
  [[email protected] tmp]# rpm -U --force pandorafms_server-6.0-1.noarch.rpm  
Line 101: Line 101:
 
  Restart Pandora FMS Server.
 
  Restart Pandora FMS Server.
  
The packages are now installed, and at the end of the update in the system will have these:
+
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
 
  [[email protected] pandora_server]# rpm -qa | grep pandora
Line 108: Line 108:
 
  pandorafms_console_enterprise-6.0-1.noarch
 
  pandorafms_console_enterprise-6.0-1.noarch
  
We can restart the services stopped now
+
We can now restart the services stopped before
  
 
  [[email protected] ~]# /etc/init.d/pandora_server start
 
  [[email protected] ~]# /etc/init.d/pandora_server start
Line 123: Line 123:
 
   
 
   
 
<br>
 
<br>
{{Warning|If the mysql socket is not installed by default, you must modify in /etc/pandora/pandora_server.conf the dbhost parameter with the ip 127.0.0.1 instead of localhost }}
+
{{Warning|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 127.0.0.1 instead of localhost }}
  
  
 
[[Category:Pandora FMS]]
 
[[Category:Pandora FMS]]

Revision as of 14:37, 22 February 2016

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

1.1 Introduction

We must understand that Pandora FMS is made 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, we should not take any action on the database, so we would only need to update the Console and Server packages.

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 we'll keep all the elements in the /home/artica/Backup directory

[[email protected] ~]# rpm -qa | grep pandora
pandorafms_console_enterprise-5.1SP3-1.noarch
pandorafms_server-5.1SP3-1.noarch
pandorafms_console-5.1SP3-1.noarch
[[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 to 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 we are using the Open version, we must 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, we also need to update the database scheme. 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, we should have successfully updated the database and it should be ready to work on version 6.0

1.5 Upgrading the Server

Once we have updated the console and the database, 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 
pandora_server/pandora_server
pandora_server/pandora_server_installer
pandora_server/PandoraFMS-Enterprise/bin/braa
pandora_server/PandoraFMS-Enterprise/bin/pandora_db
pandora_server/PandoraFMS-Enterprise/bin/braa
pandora_server/PandoraFMS-Enterprise/bin/pandora_manage
pandora_server/README
[[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
pandorafms_server-6.0-1.noarch
pandorafms_console-6.0-1.noarch
pandorafms_console_enterprise-6.0-1.noarch

We can now restart the services stopped before

[[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 http://www.pandorafms.org  

[*] 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 127.0.0.1 instead of localhost