Commit cc3bb7db authored by Mathias Ettinger's avatar Mathias Ettinger

Added Kibana as dependency

parent 00041559
......@@ -28,6 +28,11 @@ configure(){
db_input high opensand-collector/influxdb/port || true
db_endblock
;;
5)
db_beginblock
db_input high opensand-collector/kibana/port || true
db_endblock
;;
*)
# The default case catches when $STATE is greater than the
# last implemented state, and breaks out of the loop. This
......
......@@ -16,7 +16,8 @@ Depends: ${misc:Depends}, python (>= 2.7), python (<<3.0),
python-avahi, avahi-daemon,
rsyslog, logrotate, curl,
elasticsearch (= 6.2.4), influxdb (= 1.7.1-1),
openjdk-8-jdk, logstash (= 1:6.2.4-1)
openjdk-8-jdk, logstash (= 1:6.2.4-1),
kibana (= 6.2.4)
Provides: opensand-env-plane
Conflicts: opensand-env-plane
Replaces: opensand-env-plane
......
......@@ -42,6 +42,18 @@ create_influxdb_conf(){
sed -i "/bind-address = \":8086\"/c\ bind-address = \"${INFLUXDB_PORT}\"" "${CONFIG_FILE}"
}
create_kibana_conf(){
db_get opensand-collector/kibana/port
KIBANA_PORT="${RET}"
db_get opensand-collector/elasticsearch/port
ELASTICSEARCH_PORT="${RET}"
CONFIG_FILE="/etc/kibana/kibana.yml"
sed -i "/^#\?server\.port/c\server.port: ${KIBANA_PORT}" "${CONFIG_FILE}"
sed -i "/^#\?server\.host/c\server.host: \"0.0.0.0\"" "${CONFIG_FILE}"
sed -i "/^#\?elasticsearch.url/c\elasticsearch.url: \"http://localhost:${ELASTICSEARCH_PORT}\"" "${CONFIG_FILE}"
}
create_elasticsearch_conf(){
db_get opensand-collector/elasticsearch/port
ELASTICSEARCH_PORT="${RET}"
......@@ -156,9 +168,11 @@ restart_services(){
systemctl enable elasticsearch.service
systemctl enable influxdb.service
systemctl enable logstash.service
systemctl enable kibana.service
systemctl restart elasticsearch.service
systemctl restart influxdb.service
systemctl restart logstash.service
systemctl restart kibana.service
}
case "$1" in
......@@ -166,6 +180,7 @@ case "$1" in
chown -R elasticsearch:elasticsearch /usr/share/elasticsearch
create_influxdb_conf
create_elasticsearch_conf
create_kibana_conf
create_logstash_conf
install_logstash_plugin
restart_services
......
......@@ -32,9 +32,11 @@ stop_services(){
systemctl disable elasticsearch.service
systemctl disable influxdb.service
systemctl disable logstash.service
systemctl disable kibana.service
systemctl stop elasticsearch.service
systemctl stop influxdb.service
systemctl stop logstash.service
systemctl stop kibana.service
}
case "$1" in
......
......@@ -25,3 +25,9 @@ Default: 8086
Description: InfluxDB Port
Port that InfluxDB will use to listen to incomming
statistics from Logstash.
Template: opensand-collector/kibana/port
Type: string
Default: 5601
Description: Kibana HTTP Port
Port that Kibana will use to publish its HTTP service.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment