jitsi_videobridge: Small typo fixes and max time for curl

This commit is contained in:
Sebastian L 2021-04-14 09:33:15 +02:00 committed by Lars Kruse
parent 3886b9e42d
commit d43862ac62
1 changed files with 4 additions and 3 deletions

View File

@ -19,8 +19,8 @@ installed jq, a command-line json processor.
You may specify the URL where to get the statistics.
sites - URL of colibri stats
max_time - Timeout curl - defaults to 3 seconds
url - URL of colibri stats
max_time - Timeout curl - defaults to 3 seconds
[jitsi_videobridge]
env.url http://127.0.0.1:8080/colibri/stats
@ -47,6 +47,7 @@ GPLv2
. "$MUNIN_LIBDIR/plugins/plugin.sh"
COLIBRI_URL=${url:-"http://127.0.0.1:8080/colibri/stats"}
max_time=${max_time:-3}
case $1 in
@ -111,7 +112,7 @@ case $1 in
esac
JSONSTATS=$(curl -s -f -m 2 "$COLIBRI_URL")
JSONSTATS=$(curl -s -f -m "$max_time" "$COLIBRI_URL")
echo "multigraph jitsi_videobridge_sessions"
for KEY in videochannels audiochannels conferences participants; do