sudo yum install epel-release
sudo rpm -ivh https://download.bloonix.de/repos/centos/7/noarch/bloonix-release-0.7-1.noarch.rpm
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
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.
sudo postgresql-setup initdb
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
sudo systemctl restart postgresql.service
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'
sudo systemctl start elasticsearch.service
sudo systemctl start nginx.service
sudo /srv/bloonix/webgui/schema/init-elasticsearch localhost:9200
sudo /srv/bloonix/webgui/schema/init-database --postgres
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
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
sudo systemctl start bloonix-webgui.service
sudo systemctl start bloonix-server.service
sudo systemctl start bloonix-srvchk.service
sudo systemctl start bloonix-agent.service
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
Done! :-) Now you can login into the WebGUI. The initial username and password is admin/admin