mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +00:00
Fix 2 forgotten backslashes
Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
This commit is contained in:
parent
e527db57a5
commit
44d57dcb7f
1 changed files with 2 additions and 2 deletions
|
@ -137,8 +137,8 @@ EOM
|
||||||
CONNECTIONS=$("$CURL" -s -X GET -H "X-API-Key: $syncthing_apikey" "$syncthing_proto://$syncthing_host:$syncthing_port/rest/system/connections")
|
CONNECTIONS=$("$CURL" -s -X GET -H "X-API-Key: $syncthing_apikey" "$syncthing_proto://$syncthing_host:$syncthing_port/rest/system/connections")
|
||||||
IBT=$(echo "$CONNECTIONS" | "$JQ" '.total | .inBytesTotal')
|
IBT=$(echo "$CONNECTIONS" | "$JQ" '.total | .inBytesTotal')
|
||||||
OBT=$(echo "$CONNECTIONS" | "$JQ" '.total | .outBytesTotal')
|
OBT=$(echo "$CONNECTIONS" | "$JQ" '.total | .outBytesTotal')
|
||||||
printf "syncthing_transfer_up.value %s\\n" "$IBT"
|
printf "syncthing_transfer_up.value %s\n" "$IBT"
|
||||||
printf "syncthing_transfer_down.value %s\\n" "$OBT"
|
printf "syncthing_transfer_down.value %s\n" "$OBT"
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue