1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

Update plugins/jellyfin/jellyfin_sessions

Co-authored-by: Kenyon Ralph <kenyon@kenyonralph.com>
This commit is contained in:
brknkfr 2025-01-27 05:52:13 +00:00 committed by GitHub
parent bb51077a2e
commit bbc6af2a98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -78,7 +78,7 @@ case $1 in
;; ;;
esac esac
if active_sessions=$(curl -s -f -m "$max_time" -H "Authorization: MediaBrowser Token=$api_key" -X GET "$url_sessions"?activeWithinSeconds="$interval" | jq '. | length') | grep -E "[0-9]*"; then if active_sessions=$(curl -s -f -m "$max_time" -H "Authorization: MediaBrowser Token=$api_key" -X GET "$url_sessions"?activeWithinSeconds="$interval" | jq '. | length') | grep -E "[0-9]+"; then
echo "sessions.value $active_sessions" echo "sessions.value $active_sessions"
else else
echo "sessions.value U" echo "sessions.value U"