Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sni/naemon-dev-box


https://github.com/sni/naemon-dev-box

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Naemon Dev Box

Based on docker and docker-compose.

## Content

- OMD Labs Edition
- include mon site with prometheus monitoring and grafana dashboard
- include dev site with Naemon-core from git clone

## Usage

You will need `docker` and `docker-compose`.

%> git clone [email protected]:sni/naemon-dev-box.git
%> cd naemon-dev-box
%> make clean
%> make prepare
%> make shell

### OMD

There is a mon site created with the default omdadmin/omd user at:

https://192.168.99.99/mon/

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.

### Development

Naemon-core and Naemon-Livestatus will be cloned to /src and the dev
OMD site will be prepared to use those files.

#### Build
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

## Provisioning

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