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