Public Repository

Last pushed: 2 years ago
Short Description
Basic OMD installation on Ubuntu 13.10, with a site called master and localhost being monitored.
Full Description

This is a simple docker image running a basic OMD installation.

Quick start:

docker run -p 2222:22 -p 8888:80 --rm -t -i springerplatformengineering/basic-omd-test:manual-0.1 /sbin/my_init -- bash -l

And go to: http://localhost:8888

Setup info

TODO: Properly, with dockerfiles and that stuff

For the time being I just created it manually (YEAH, YEAH, I will do the dockerfile ASAP, I was just hacking)

  1. Based on https://github.com/phusion/baseimage-docker, but forked to downgrade to 13.10
    https://github.com/keymon/baseimage-docker-ubuntu-13.10

  2. Just installed omd from this repo: http://labs.consol.de/repo/stable

  3. Created an OMD site called master

The scripts executed are:

# Install the OMD from the repository http://labs.consol.de/repo/stable
gpg --keyserver keys.gnupg.net --recv-keys F8C1CA08A57B9ED7
gpg --armor --export F8C1CA08A57B9ED7 | apt-key add -
echo 'deb http://labs.consol.de/repo/stable/ubuntu trusty main' >> /etc/apt/sources.list
apt-get update
apt-get install omd


# Start apache server
/etc/init.d/apache2 start 
/etc/init.d/xinetd start 

# Create master. It will fail due tmpfs that is not possible with standard docker
omd create master || true

# Disable the TMPFS... I don't know how to fix this before the create!
sed "s/CONFIG_TMPFS='on'/CONFIG_TMPFS='off'/" -i /omd/sites/master/etc/omd/site.conf 

# Something naughty with crontab, master user must be in crontab group... Bug??
adduser master crontab # Avoid error merging crontabs
omd start master

# Install the agent for localhost
cd /tmp
wget http://mathias-kettner.de/download/check-mk-agent_1.2.4p5-2_all.deb
dpkg -i check-mk-agent_1.2.4p5-2_all.deb

# some tooling
a
apt-get install net-tools
apt-get install netcat

nc localhost 6556

# Add hooks to start the services in my_init:
cat > /etc/my_init.d/10_startup_base_services <<EOF
#!/bin/sh
/etc/init.d/apache2 start
/etc/init.d/xinetd start
EOF
cat >  /etc/my_init.d/20_startup_omd_master <<EOF
#!/bin/sh
omd start master
EOF
chmod +x /etc/my_init.d/10_startup_base_services /etc/my_init.d/20_startup_omd_master
Docker Pull Command
Owner
springerplatformengineering