From d43862ac62dd827433eb7d12ac66e38a94c6bb02 Mon Sep 17 00:00:00 2001 From: Sebastian L Date: Wed, 14 Apr 2021 09:33:15 +0200 Subject: [PATCH] jitsi_videobridge: Small typo fixes and max time for curl --- plugins/jitsi/jitsi_videobridge | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/jitsi/jitsi_videobridge b/plugins/jitsi/jitsi_videobridge index c66cce76..044859db 100755 --- a/plugins/jitsi/jitsi_videobridge +++ b/plugins/jitsi/jitsi_videobridge @@ -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