File tree 3 files changed +21
-2
lines changed
3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 54
54
samba-client
55
55
56
56
ADD bootstrap.sh /opt/
57
+ ADD redirector.sh /opt/
57
58
EXPOSE 5000/tcp
58
59
59
60
# VOLUME /opt/omd
@@ -66,10 +67,11 @@ RUN rpm -ivh https://mathias-kettner.de/support/${CMK_VERSION}/check-mk-raw-${CM
66
67
RUN omd create ${CMK_SITE} || \
67
68
omd config ${CMK_SITE} set DEFAULT_GUI check_mk && \
68
69
omd config ${CMK_SITE} set TMPFS off && \
69
- omd config ${CMK_SITE} set CRONTAB off && \
70
+ omd config ${CMK_SITE} set CRONTAB on && \
70
71
omd config ${CMK_SITE} set APACHE_TCP_ADDR 0.0.0.0 && \
71
72
omd config ${CMK_SITE} set APACHE_TCP_PORT 5000 && \
72
- ln -s "/omd/sites/${CMK_SITE}/var/log/nagios.log" /var/log/nagios.log
73
+ ln -s "/omd/sites/${CMK_SITE}/var/log/nagios.log" /var/log/nagios.log && \
74
+ /opt/redirector.sh ${CMK_SITE} > /omd/sites/${CMK_SITE}/var/www/index.html
73
75
74
76
75
77
WORKDIR /omd
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ chmod 640 $CFGFILE
13
13
chown root:mail $CFGFILE
14
14
15
15
16
+ # Start cron daemon
17
+ /usr/sbin/crond
18
+
16
19
# Start check_mk
17
20
omd start && tail -f /var/log/nagios.log
18
21
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ sed " s/__DIR__/$1 /g" << !!!
4
+ <html>
5
+ <head>
6
+ <title>Redirect</title>
7
+ <meta http-equiv="Refresh" content="0; url=/__DIR__/check_mk/" />
8
+ </head>
9
+ <body>
10
+ <p>Please start here: <a href="/__DIR__/check_mk/">/__DIR__/check_mk/</a></p>
11
+ </body>
12
+ </html>
13
+ !!!
14
+
You can’t perform that action at this time.
0 commit comments