mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Clarify the non-declared env variables
Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
This commit is contained in:
parent
44d57dcb7f
commit
e541294f9f
2 changed files with 8 additions and 0 deletions
|
@ -31,6 +31,9 @@ Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
|
||||||
MIT
|
MIT
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
|
syncthing_relaysrv_host=${syncthing_relaysrv_host:-}
|
||||||
|
syncthing_relaysrv_port=${syncthing_relaysrv_port:-}
|
||||||
|
|
||||||
getstatus() {
|
getstatus() {
|
||||||
"$CURL" -s "http://$syncthing_relaysrv_host:$syncthing_relaysrv_port/status"
|
"$CURL" -s "http://$syncthing_relaysrv_host:$syncthing_relaysrv_port/status"
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,11 @@ Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
|
||||||
MIT
|
MIT
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
|
syncthing_apikey=${syncthing_apikey:-}
|
||||||
|
syncthing_proto=${syncthing_proto:-}
|
||||||
|
syncthing_host=${syncthing_host:-}
|
||||||
|
syncthing_port=${syncthing_port:-}
|
||||||
|
|
||||||
getstatus() {
|
getstatus() {
|
||||||
"$CURL" -s -X GET -H "X-API-Key: $syncthing_apikey" "$syncthing_proto://$syncthing_host:$syncthing_port/rest/system/status"
|
"$CURL" -s -X GET -H "X-API-Key: $syncthing_apikey" "$syncthing_proto://$syncthing_host:$syncthing_port/rest/system/status"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue