Skip to content

Commit

Permalink
add option to set HOST_ID for shared monitoring
Browse files Browse the repository at this point in the history
It should woirk with '-1' but leaving an option just in case...

Signed-off-by: Anton Todorov <[email protected]>
  • Loading branch information
atodorov-storpool committed Nov 9, 2021
1 parent f25d5f3 commit bb599e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tm/storpool/monitor
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ if [ -d "$(readlink -f $BASE_PATH)" ]; then
ruby -e "require 'zlib'; puts Zlib::Deflate.deflate(STDIN.read)" | \
base64 -w 0)"
TIMESTAMP=0
HOST_ID=-1
HOST_ID=${MONITOR_HOST_ID:--1}
echo "MONITOR_VM SUCCESS ${HOST_ID:-0} $TIMESTAMP $monitor_b64" | nc -u -w${NC_WAIT_TIME:-1} ${MONITOR_ADDRESS:-127.0.0.1} ${MONITOR_PORT:-4124}
ret=$?
if boolTrue "DDEBUG_TM_MONITOR"; then
Expand Down

0 comments on commit bb599e1

Please sign in to comment.