It is a challenge for most people running BigBlueButton to tell the number of current sessions that are running. There a number of reasons why you may need to know the Active Sessions, this could be because the service is slow and you may need to restart the server. Run the bash script below to check

!/bin/bash

APICallName=”getMeetings”
APIQueryString=””

X=$( bbb-conf –secret | fgrep URL: )
APIEndPoint=${X##* }
Y=$( bbb-conf –secret | fgrep Secret: )
Secret=${Y##* }
S=$APICallName$APIQueryString$Secret
Checksum=$( echo -n $S | sha1sum | cut -f 1 -d ‘ ‘ )
if [[ “$APIQueryString” == “” ]]
then
URL=”${APIEndPoint}api/$APICallName?checksum=$Checksum”
else
URL=”${APIEndPoint}api/$APICallName?$APIQueryString&checksum=$Checksum”
fi
wget -q -O – “$URL” | grep -o ” | wc -w

Share this post