mirror of
https://github.com/samply/bridgehead.git
synced 2025-07-03 04:50:21 +02:00
Fixed monitoring
This commit is contained in:
@ -33,7 +33,7 @@ function hc_send(){
|
|||||||
UPTIME=$(echo "$UPTIME" | tr '\n' '|' || echo "Unable to get docker statistics")
|
UPTIME=$(echo "$UPTIME" | tr '\n' '|' || echo "Unable to get docker statistics")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$MSG" ]; then
|
if [ -n "$2" ]; then
|
||||||
MSG="$2\n\nDocker stats: $UPTIME"
|
MSG="$2\n\nDocker stats: $UPTIME"
|
||||||
echo -e "$MSG" | curl -s -o /dev/null -X POST --data-binary @- "$HCURL"/"$1" || log WARN "Monitoring failed: Unable to send data to $HCURL/$1"
|
echo -e "$MSG" | curl -s -o /dev/null -X POST --data-binary @- "$HCURL"/"$1" || log WARN "Monitoring failed: Unable to send data to $HCURL/$1"
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user