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, but forked to downgrade to 13.10

  2. Just installed omd from this repo:

  3. Created an OMD site called master

The scripts executed are:

# Install the OMD from the repository
gpg --keyserver --recv-keys F8C1CA08A57B9ED7
gpg --armor --export F8C1CA08A57B9ED7 | apt-key add -
echo 'deb 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
dpkg -i check-mk-agent_1.2.4p5-2_all.deb

# some tooling
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
/etc/init.d/apache2 start
/etc/init.d/xinetd start
cat >  /etc/my_init.d/20_startup_omd_master <<EOF
omd start master
chmod +x /etc/my_init.d/10_startup_base_services /etc/my_init.d/20_startup_omd_master
Docker Pull Command

Comments (1)
2 years ago

Thank you for this dock,
I've got the error "stdin: is not a tty"