diff --git a/docker-host/src/bin/send b/docker-host/src/bin/send index f8b99de..ba99268 100755 --- a/docker-host/src/bin/send +++ b/docker-host/src/bin/send @@ -39,6 +39,7 @@ for var in SERVER LOGIN PASSWORD; do fi done +IP_HOST=$(hostname -I | cut -d' ' -f1) exname=${0##*/} channels=() @@ -125,6 +126,7 @@ curl_opts=( title="[$(hostname)] $title" title="${title%%+([[:space:]])}" curl_opts+=(-H "Title: $title") +curl_opts+=(-H "Tags: $IP_HOST") declare -A sent_topic=() @@ -163,4 +165,4 @@ for channel in "${channels[@]}"; do done done < <(printf "%s" "$topics" | yq e -0 '.[]') done < <(printf "%s" "$content" | yq e -0 'to_entries | .[] | [.key, .value] |.[]') -done \ No newline at end of file +done