This application stack is a out of the box running demo system of OpenNMS Horizon and different other components. For more details see here.
In the current state this applications stack is tested with Ubuntu only. Clone this repository and initialize the configuration modules.
git clone https://github.com/opennms-forge/demo.opennms.org.git
cd demo.opennms.org
In the repositories root folder you will need some environment files. Especially for setting the passwords in the system.
.opennms.env
TZ=Europe/Berlin
OPENNMS_DBNAME=opennms
OPENNMS_DBUSER=opennms
OPENNMS_DBPASS=opennms
OPENNMS_GRAFANA=grafana
.grafana.env
GF_SECURITY_ADMIN_PASSWORD=grafana-admin
.postgres.env
TZ=Europe/Berlin
POSTGRES_HOST=database
POSTGRES_PORT=5432
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
The vm.max_map_count
kernel setting needs to be set to at least 262144 for production use.
$ grep vm.max_map_count /etc/sysctl.conf
vm.max_map_count=262144
To apply the setting on a live system type: sysctl -w vm.max_map_count=262144
The deploy script will do it automatically!
The process contains a full redeploy, so the current system (if it is running) will deleted completely. All rrd archives and Postgresql database will be lost!
Run as root
:
cd setup
./init.sh
OpenNMS: http://localhost:8980/opennms
Grafana: http://localhost:3000
These user accounts work out of the box and are defined in users.xml
.
-
Administrator:
admin:admin
-
Demo User:
demo:demo
-
Grafana User:
grafana:grafana
-
Minion User:
minion:minion
There are some script which are used to setup the application stack. They can be found in the setup
folder and are described here.
Local configuration changes in etc-overlay
can be reloaded with:
docker-compose down && docker-compose up -d