How to Install Pandora FMS Monitoring Tool in Ubuntu 18.04 | 16.04

This brief tutorial shows students and new users how to install and configure Pandora FMS system monitoring platform on Ubuntu 18.04 | 16.04.

Pandora FMS (Flexible Monitoring System) is a free and open source monitoring software that you can use to monitor your IT infrastructure. It supports Windows, Linux and other systems’ applications.

Pandora FMS comes with huge amount of features that makes it a next-gen enterprise grade and most complete open source systems monitoring platform available today.

For  more about Pandora FMS, please visit its homepage.

To get started with installing Pandora FMS on Ubuntu, follow the steps below:

Step 1: Install Apache2 HTTP Server

Apache2 HTTP Server is the most popular web server in use. so install it since Pandora FMS needs it.

To install Apache2 HTTP on Ubuntu server, run the commands below.

sudo apt update
sudo apt install apache2

After installing Apache2, the commands below can be used to stop, start and enable Apache2 service to always start up with the server boots.

sudo systemctl stop apache2.service
sudo systemctl start apache2.service
sudo systemctl enable apache2.service

To find out if Apache2 HTTP server is installed, simply open your web browser and type in the server’s IP or hostname.

When you see the page similar to the one below, then Apache2 is installed and working.

apache2 ubuntu install

Step 2: Install MariaDB Database Server

Pandora FMS also needs a database server to store its content. and MariaDB database server is a great place to start when looking at open source database servers to use with Pandora FMS.

To install MariaDB run the commands below.

sudo apt install mariadb-server mariadb-client

After installing MariaDB, the commands below can be used to stop, start and enable MariaDB service to always start up when the server boots.

Run these on Ubuntu

sudo systemctl stop mariadb.service
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service

After that, run the commands below to secure MariaDB server by creating a root password and disallowing remote root access.

sudo mysql_secure_installation

When prompted, answer the questions below by following the guide.

  • Enter current password for root (enter for none): Just press the Enter
  • Set root password? [Y/n]: Y
  • New password: Enter password
  • Re-enter new password: Repeat password
  • Remove anonymous users? [Y/n]: Y
  • Disallow root login remotely? [Y/n]: Y
  • Remove test database and access to it? [Y/n]:  Y
  • Reload privilege tables now? [Y/n]:  Y

Restart MariaDB server

To test if MariaDB is installed, type the commands below to logon to MariaDB server

sudo systemctl status mariadb.service

You should see similar messages as below:

mariadb.service - MariaDB 10.1.44 database server
   Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-03-05 12:14:17 CST; 1min 15s ago
     Docs: man:mysqld(8)
 Main PID: 16048 (mysqld)
   Status: "Taking your SQL requests now."
    Tasks: 27 (limit: 4666)
   CGroup: /system.slice/mariadb.service
           └─16048 /usr/sbin/mysqld

Mar 05 12:14:17 ubuntu1804 /etc/mysql/debian-start[16081]: information_schema
Mar 05 12:14:17 ubuntu1804 /etc/mysql/debian-start[16081]: mysql
Mar 05 12:14:17 ubuntu1804 /etc/mysql/debian-start[16081]: performance_schema

That’s how to install MariaDB on Ubuntu.

By default on Ubuntu, MariaDB is configured to use the UNIX auth_socket plugin. You’ll want to run the SQL commands below for the root user to use mysql_native_password.

You’ll need MariaDB root account to setup Pandora FMS.

sudo mysql -u root -p
USE mysql; 
UPDATE user SET plugin='mysql_native_password' WHERE User='root';

Finally, save your changes and exit.


That’s should do it

Step 3: Install PHP 7.2-FPM and Related Modules

PHP 7.2-FPM may not be available in Ubuntu default repositories. in order to install it, you will have to get it from third-party repositories.

Run the commands below to add the below third party repository to upgrade to PHP 7.2-FPM

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php

Then update and upgrade to PHP 7.2-FPM

sudo apt update

Next, run the commands below to install PHP 7.2-FPM and related modules.

sudo apt install php7.2 php7.2-common php7.2-gmp php7.2-curl php7.2-mbstring php7.2-xmlrpc php7.2-mysql php7.2-gd php7.2-bcmath php7.2-xml php7.2-cli php7.2-zip php-php-gettext php-pear php7.2-zip php7.2-sqlite3 php7.2-snmp php-db graphviz php7.2-curl php7.2-ldap dbconfig-common

After installing PHP 7.2, run the commands below to open PHP default config file for Apache2.

sudo nano /etc/php/7.2/apache2/php.ini

Then make the changes on the following lines below in the file and save. The value below are great settings to apply in your environments.

file_uploads = On
allow_url_fopen = On
short_open_tag = On
memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 360
max_input_vars = 1500
date.timezone = America/Chicago

After making the change above, save the file and close out.

Step 4: Install Perl and Supported Packages

Pandora FMS uses Perl and will need Perl packages installed.

Run the commands below to install SNMP and Perl packages to support Pandora FMS.

sudo apt install snmp snmpd libnet-telnet-perl libgeo-ip-perl geoip-database-extra libtime-format-perl libxml-simple-perl libxml-twig-perl libdbi-perl libnetaddr-ip-perl libhtml-parser-perl xprobe2 nmap libmail-sendmail-perl traceroute libio-socket-inet6-perl libhtml-tree-perl libsnmp-perl snmp-mibs-downloader libio-socket-multicast-perl libsnmp-perl libjson-perl

Step 5: Install FMS with Console

Now that all required packages are installed, run the commands below to download Pandora FMS packages and install from the link below:

Or use the commands below to download via the command line terminal and install.

cd /tmp

After downloading above, run the commands below to install to install and force install additional packages.

sudo dpkg -i pandorafms.console_7.0NG.743.deb pandorafms.server_7.0NG.743.deb
sudo apt-get -f install

After installing, you should see a message with configuration settings for FMS services.

Please, now, point your browser to http://your_IP_address/pandora_console/install.php and follow all the steps described on it.
Setting up pandorafms-server (7.0NG.743) .
Linking pandora_exec.
Creating common Pandora FMS directories
Giving proper permission to /var/spool/pandora
Creating setup directory in /etc/pandora
Enabling start-up pandora & tentacle server daemons
Synchronizing state of pandora_server.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable pandora_server
Synchronizing state of tentacle_serverd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable tentacle_serverd
Create the Cron script to run hourly Pandora DB tool
Please, now, edit the /etc/pandora/pandora_server.conf and launch the Pandora Server with /etc/init.d/Pandora .
Setting up php (1:7.2+60ubuntu1) .

After installing, open your web browser and browse to the server hostname or IP address followed by /pandora_console as shown below:


After the page loads, read and follow the wizard

Pandora FMS Ubuntu

Next, verify that all requirements and dependencies are installed and continue.

Pandora FMS Ubuntu

After that, type in the root password you created above. The Wizard should create a database called pandora. Click Next to continue.

Pandora FMS Ubuntu

After that, the installation should complete.

Run the commands below to remove the installer script. Or you can select the option to rename the file and continue.

sudo rm /var/www/html/pandora_console/install.php

Then login with the username and password below:

username: admin
password: pandora

Pandora FMS UbuntuBefore you Pandora FMS can start monitoring, make sure to edit the server’s configuration file at /etc/pandora/pandora_server.conf.

Run the commands below to open the configuration file.

sudo nano /etc/pandora/pandora_server.conf

Then edit the highlighted line to match Pandora FMS portal database credential. The same root login used during the installation wizard.

# This must be the same credentials used by your Pandora FMS Console
# but could be different if your console is not running in the same
# host than the server. Check your console setup in /include/config.php

# dbname: Database name (pandora by default)
dbname pandora
# dbuser:  Database user name (pandora by default)
dbuser root
# dbpass: Database password
dbpass root_password

# dbhost: Database hostname or IP address
# dbport: Database port number
# Default value depends on the dbengine (mysql: 3306)
#dbport 3306

Save the file and exit

After run the commands below to restart Pandora FMS service.

sudo systemctl restart pandora_server.service

Next, check Pandora FMS status by running the commands below:

sudo systemctl status pandora_server.service>

You should see similar lines as shown below:

● pandora_server.service - Pandora FMS server daemon
   Loaded: loaded (/lib/systemd/system/pandora_server.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-03-06 13:56:10 CST; 3s ago
  Process: 10151 ExecStart=/usr/bin/pandora_server /etc/pandora/pandora_server.conf -D (code=exited, status=0/SUCCESS)
 Main PID: 10155 (pandora_server)
    Tasks: 14 (limit: 4666)
   CGroup: /system.slice/pandora_server.service
           └─10155 /usr/bin/perl /usr/bin/pandora_server /etc/pandora/pandora_server.conf -D

Mar 06 13:56:09 ubuntu1804 systemd[1]: Starting Pandora FMS server daemon.
Mar 06 13:56:10 ubuntu1804 pandora_server[10151]: Pandora FMS Server 7.0NG.743 Build 200129 Copyright (c) 2004-2020 Artica ST
Mar 06 13:56:10 ubuntu1804 pandora_server[10151]: This program is OpenSource, licensed under the terms of GPL License version 2.
Mar 06 13:56:10 ubuntu1804 pandora_server[10151]: You can download latest versions and documentation at official web page.
Mar 06 13:56:10 ubuntu1804 pandora_server[10151]:  [*] Backgrounding Pandora FMS Server process.
Mar 06 13:56:10 ubuntu1804 systemd[1]: Started Pandora FMS server daemon.

That should do it!

You can begin using Pandora FMS to monitor your network.


This post showed you how to install and configure to monitor your network and systems. If you find any error above, please use the comment form below to report it.


You may also like the post below:


    1. That because generated password for db has changed pandora_console files. It dosent change pandora_server files. So that you have to change “/etc/pandora/pandora_server.conf” files db password as same as the “/var/www/html/pandora_console/include/config.php” files db password.
      Do these change and restart pandora server by “sudo /etc/init.d/pandora_server restart”.
      Thats it .

  1. Hi, thanks for the instructions

    I try to install and generete one error when populate the database in the step Environment and database setup i have the correct data to user root, but generate this error.

    Creating database and default configuration file

    INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`, `id_plugin`, `plugin_user`, `plugin_pass`, `plugin_parameter`, `max_timeout`, `history_data`, `min_warning`, `max_warning`, `str_warning`, `min_critical`, `max_critical`, `str_critical`, `min_ff_event`, `custom_string_1`, `custom_string_2`, `custom_string_3`, `custom_integer_1`, `custom_integer_2`, `post_process`, `wizard_level`, `critical_instructions`, `warning_instructions`, `unknown_instructions`, `tags`, `disabled_types_event`, `module_macros`) VALUES (1,’OS Total process’,’Total process in Operating System (UNIX MIB)’,13,15,0,0,300,0,”,”,’public’,’HOST-RESOURCES-MIB::hrSystemProcesses.0 ‘,4,2,0,NULL,NULL,NULL,0,1,0.00,0.00,NULL,0.00,0.00,NULL,0,NULL,NULL,NULL,0,0,0.0000000000000,’basic’,”,”,”,”,”,”);
    Connection with Database
    Creating database ‘pandora’
    Opening database ‘pandora’
    Creating schema
    Populating database
    Established privileges for user pandora. A new random password has been generated: hfwasdsj
    Please write it down, you will need to setup your Pandora FMS server, editing the /etc/pandora/pandora_server.conf file
    Write permissions to save config file in ‘./include’
    Created new config file at ‘include/config.php’
    There were some problems. Installation was not completed.

    Please correct failures before trying again. All database schemes created in this step have been dropped.


    I check the databse an the pandora DB is droped.

    In the mariadb log on the final lines have this

    INSERT INTO `tnews` (`id_news`, `author`, `subject`, `text`, `timestamp`) VALUES (1,’admin’,’Welcome to Pandora FMS Console’, ‘<p style="text-align: center; font-size: 13px;">Hello, congratulations, if you've arrived here you already have an operational monitoring console. Remember that our forums and online documentation are available 24×7 to get you out of any trouble. You can replace this message with a personalized one at Admin ▒b_▒|PuTTY▒▒_▒*▒zamp;gt; Site news.</p> ’,NOW())no▒▒▒_▒z
    ▒bnp▒▒_▒*▒{NSERT INTO tmodule VALUES (1,’Agent module’)▒▒▒▒▒▒__{
    ▒b”▒▒▒_▒*L|NSERT INTO tmodule VALUES (2,’Network module’)▒av▒▒▒_”|
    ▒b▒▒▒▒▒_▒*}NSERT INTO tmodule VALUES (4,’Plugin module’)▒I▒▒_▒|
    ▒b▒▒a▒▒_▒*▒}SERT INTO tmodule VALUES (5,’Prediction module’)▒▒s8▒▒_▒}
    ▒b▒7▒▒▒_▒*▒~SERT INTO tmodule VALUES (6,’WMI module’);▒D▒▒▒_i~
    ▒▒wF▒▒_w ▒b▒▒&▒▒_▒* INSERT INTO tmodule VALUES (7, ‘Web module’)▒&)▒▒_
    ▒b▒)▒▒▒_▒*▒NSERT INTO tmodule VALUES (8, ‘Wux module’)▒P}▒▒▒_
    X* Tstd▒▒_▒d▒▒*ր INTO tmodule VALUES (9, ‘Wizard module’)▒WI▒▒▒_▒▒ ▒b)▒/▒oot localhostpandoraGRANT ALL PRIVILEGES ON `pandora`.* to pandora@localhost▒▒k▒▒_▒*▒▒ ▒b)C7H)▒▒_[i▒USH PRIVILEGES▒▒▒▒_▒*▒
    X TpandoraDROP DATABASE pandora▒S▒H

  2. I have this error in mysql log

    ERROR 1364 (HY000): Field ‘protocol’ doesn’t have a default value
    when try to execute the insert INSERT INTO `tnetwork_component` (` …..etc.

Leave a Comment

Your email address will not be published.