Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 16 lines (12 sloc) 486 Bytes
#!/bin/bash
set -e
SITE=${SITE:-$(cat .site 2>/dev/null || true)}
SITE=${SITE:-$(omd sites --bare | head -n 1)}
ROOT=/omd/sites/$SITE
sed -e "s#@BINDIR@#$ROOT/bin#g" \
-e "s#@VARDIR@#$ROOT/var/check_mk#g" \
-e "s#@CHECK_ICMP@#$ROOT/lib/nagios/plugins/check_icmp#g" \
-e "s#@PNPURL@#/$SITE/pnp4nagios/#g" \
-e "s#@CGIURL@#/$SITE/nagios/cgi-bin#g" \
< check_mk_templates.cfg > /tmp/check_mk_templates.cfg
sudo mv /tmp/check_mk_templates.cfg $ROOT/etc/nagios/conf.d
You can’t perform that action at this time.