-
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.
Refactor - same container globally each reports failing services for …
…its own host
- Loading branch information
Showing
8 changed files
with
168 additions
and
175 deletions.
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
dockerize | ||
data | ||
__pycache__ | ||
.venv |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,26 @@ | ||
export SCRIPT_NAME=${0##*/} | ||
SCRIPT_NAME=${0##*/} | ||
|
||
export LOOP_SLEEP=${LOOP_SLEEP:-10} | ||
export ALERTER_URL=${ALERTER_URL:-http://alerter:80} | ||
export SWARM_NAME=${SWARM_NAME:-Swarm} | ||
export LOGGER_USE_TS=1 | ||
export LOGGER_USE_SYSLOG=0 | ||
|
||
export DATA_DIR=${DATA_DIR:-$script_dir/data} | ||
mkdir -p $DATA_DIR | ||
|
||
if [[ ! -S /var/run/docker.sock ]]; then | ||
log_error "Mount to /var/run/docker.sock missing?" | ||
exit 1 | ||
fi | ||
|
||
if [[ -z $ALERT_SCRIPT ]]; then | ||
log_error "Alert script not defined!" | ||
export ALERT_SCRIPT="jq ." | ||
fi | ||
|
||
if [[ ! -f $ALERT_SCRIPT ]]; then | ||
|| ! -f $ALERT_SCRIPT ]]; then | ||
log_error "Alert script not accessible on $ALERT_SCRIPT path!" | ||
export ALERT_SCRIPT="jq ." | ||
fi |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.