EN | DE

Quick installation guide on CentOS 7 with PostgreSQL

Install at first the EPEL repository

sudo yum install epel-release

Install the Bloonix repository

sudo rpm -ivh https://download.bloonix.de/repos/centos/7/noarch/bloonix-release-0.7-1.noarch.rpm

Install the Elasticsearch repository

sudo rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch
sudo vim /etc/yum.repos.d/elasticsearch.repo

Insert:

[elasticsearch-2.x]
name=Elasticsearch repository for 2.x packages
baseurl=https://packages.elastic.co/elasticsearch/2.x/centos
gpgcheck=1
gpgkey=https://packages.elastic.co/GPG-KEY-elasticsearch
enabled=1

For security reasons the parameter network.bind_host should be changed in /etc/elasticsearch/elasticsearch.yml, so that Elasticsearch doesn't listen on all IP addresses. Example:

network.bind_host: 127.0.0.1

Package installation

sudo yum install \
    nginx \
    postgresql-server \
    elasticsearch \
    java-1.7.0-openjdk \
    bloonix-webgui \
    bloonix-server \
    bloonix-agent \
    bloonix-plugins-basic \
    bloonix-plugins-linux

In addition please install a MTA like Postfix, Exim or Sendmail please.

Init PostgreSQL

sudo postgresql-setup initdb

Configure PostgreSQL

Edit /var/lib/pgsql/data/postgresql.conf and configure PostgreSQL to listen on localhost:

sudo vim /var/lib/pgsql/data/postgresql.conf

Set the following parameter:

listen_addresses = 'localhost'

or execute the following command:

sudo sed -i 's/^#listen_addresses /listen_addresses/' /var/lib/pgsql/data/postgresql.conf

Edit /var/lib/pgsql/data/pg_hba.conf and configure PostgreSQL to allow to connect with username and password:

sudo vim /var/lib/pgsql/data/pg_hba.conf

Replace the following lines:

host    all             all             127.0.0.1/32            ident
host    all             all             ::1/128                ident
host    all             all             127.0.0.1/32            md5
host    all             all             ::1/128                md5

or execute the following commands:

sudo sed -i 's/\(host  *all  *all  *127.0.0.1\/32  *\)ident/\1md5/' /var/lib/pgsql/data/pg_hba.conf
sudo sed -i 's/\(host  *all  *all  *::1\/128  *\)ident/\1md5/' /var/lib/pgsql/data/pg_hba.conf

Restart PostgreSQL

sudo systemctl restart postgresql.service

Nginx

Create the configuration file /etc/nginx/conf.d/001_bloonix.conf with the following content:

include /etc/bloonix/webgui/nginx.conf;

or just execute the following command:

sudo bash -c 'echo "include /etc/bloonix/webgui/nginx.conf;" >/etc/nginx/conf.d/001_bloonix.conf'

Start Elasticsearch and Nginx

sudo systemctl start elasticsearch.service
sudo systemctl start nginx.service

Init Bloonix template for Elasticsearch

sudo /srv/bloonix/webgui/schema/init-elasticsearch localhost:9200

Init Bloonix schema for PostgreSQL

sudo /srv/bloonix/webgui/schema/init-database --postgres

Plugin meta data

After the database were successfully initiated and is running, you can install the package bloonix__plugin_config that imports the plugin meta data into the database:

sudo yum install bloonix-plugin-config

Configure the agent

Edit the configuration of the Bloonix Agent and configure the section server:

sudo vim /etc/bloonix/agent/main.conf

Set in section server{}:

# Bloonix-Server hostname (demo.bloonix.org is just an example)
host demo.bloonix.org

# If you use a self signed certificate, then you have
# to turn off certificate validation
ssl_verify_mode none

Start all Bloonix services

sudo systemctl start bloonix-webgui.service
sudo systemctl start bloonix-server.service
sudo systemctl start bloonix-srvchk.service
sudo systemctl start bloonix-agent.service

Start all services automatically at system boot

sudo systemctl enable bloonix-webgui.service
sudo systemctl enable bloonix-server.service
sudo systemctl enable bloonix-srvchk.service
sudo systemctl enable bloonix-agent.service
sudo systemctl enable postgresql
sudo systemctl enable nginx

Ready to rumble

Done! :-) Now you can login into the WebGUI. The initial username and password is admin/admin

About Bloonix - About Bloonix | About Bloonix - License | About Bloonix - How does Bloonix work | About Bloonix - Plugins | About Bloonix - Feature Liste | Installation - Important information in advance | Installation - Repositories | Installation - Elasticsearch | Installation - PostgreSQL | Installation - MySQL/MariaDB | Installation - Nginx | Installation - Bloonix-WebGUI | Installation - Bloonix-Server | Installation - Bloonix-Plugins | Installation - Bloonix-Agent | Installation - Manual installation | Installation - Quick Guide for CentOS 7 and PostgreSQL | Installation - Quick Guide for CentOS 7 and MariaDB | Installation - Quick Guide for Debian 8 and MariaDB | Configuration - In progress | HowTos - In progress | WebGUI - In progress