diff --git a/conf/zamba.conf.example b/conf/zamba.conf.example index 73cbbfc..1e20320 100644 --- a/conf/zamba.conf.example +++ b/conf/zamba.conf.example @@ -126,3 +126,16 @@ NEXTCLOUD_DATA="nc_data" # Defines the trusted reverse proxy, which will enable the detection of source ip to fail2ban NEXTCLOUD_REVPROX="192.168.100.254" + +############### Check_MK-Section ############### + +# Define the name of your checkmk instance +CMK_INSTANCE=zmb-rocks + +# Define the password of user 'cmkadmin' +CMK_ADMIN_PW='Ju5t@n0thers3cur3p@ssw0rd' + +# checkmk edition (raw or free) +# raw = completely free +# free = limited version of the enterprise edition (25 hosts, 1 instance) +CMK_EDITION=raw diff --git a/src/checkmk/constants-service.conf b/src/checkmk/constants-service.conf new file mode 100644 index 0000000..d6a75fa --- /dev/null +++ b/src/checkmk/constants-service.conf @@ -0,0 +1,22 @@ +#!/bin/bash + +# Authors: +# (C) 2021 Idea an concept by Christian Zengel +# (C) 2021 Script design and prototype by Markus Helmke +# (C) 2021 Script rework and documentation by Thorsten Spille + +# This file contains the project constants on service level + +# Create sharefs mountpoint +LXC_MP="0" + +# Create unprivileged container +LXC_UNPRIVILEGED="1" + +# enable nesting feature +LXC_NESTING="0" + +# checkmk version +CMK_VERSION=2.0.0p4 +# build number of the debian package (needs to start with underscore) +CMK_BUILD=_0 \ No newline at end of file diff --git a/src/checkmk/install-service.sh b/src/checkmk/install-service.sh new file mode 100644 index 0000000..9fc78e5 --- /dev/null +++ b/src/checkmk/install-service.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Authors: +# (C) 2021 Idea an concept by Christian Zengel +# (C) 2021 Script design and prototype by Markus Helmke +# (C) 2021 Script rework and documentation by Thorsten Spille + +source /root/zamba.conf +source /root/constants-service.conf + +wget https://download.checkmk.com/checkmk/$CMK_VERSION/check-mk-$CMK_EDITION-$CMK_VERSION$CMK_BUILD.buster_amd64.deb +DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt -y -qq install ./check-mk-$CMK_EDITION-$CMK_VERSION$CMK_BUILD.buster_amd64.deb + +omd create --admin-password $CMK_ADMIN_PW $CMK_INSTANCE + +omd start $CMK_INSTANCE