forked from Checkmk/checkmk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Fixed "move to target folders" after CSV import
- Loading branch information
1 parent
c00cede
commit c7f66c2
Showing
3 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
SITE=${SITE:-$(omd sites --bare | head -n 1)} | ||
set -xe | ||
|
||
sed -e "s#@BINDIR@#/omd/sites/$SITE/bin#g" \ | ||
-e "s#@VARDIR@#/omd/sites/$SITE/var/check_mk#g" \ | ||
-e "s#@CHECK_ICMP@#/omd/sites/$SITE/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 /omd/sites/$SITE/etc/nagios/conf.d | ||
sudo omd restart $SITE nagios |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters