Based on docker and docker-compose.
- OMD Labs Edition
- include mon site with prometheus monitoring and grafana dashboard
- include dev site with Naemon-core from git clone
You will need docker and docker-compose.
%> git clone git@github.com:sni/naemon-dev-box.git
%> cd naemon-dev-box
%> make clean
%> make prepare
%> make shell
There is a mon site created with the default omdadmin/omd user at:
This site is intented to monitor the dev site.
A site named dev will also be created which runs the Naemon-core with some example checks.
Naemon-core and Naemon-Livestatus will be cloned to /src and the dev OMD site will be prepared to use those files.
Naemon and Naemon-Livestatus need to be build inside the docker container:
[root@naemon-dev ~]# cd /src/naemon-core && ./autogen.sh && ./configure && make
[root@naemon-dev ~]# cd /src/naemon-livestatus && autoreconf -i && PKG_CONFIG_PATH=../naemon-core ./configure && make
The initial provisioning is done by a shell command which installs omd and the repositories. Everything else is provisioned by ansible. You can rerun the provisioning anytime by running this as root:
#> bash /box/devbox/provision/ansible.sh