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:
parent
bb51077a2e
commit
bbc6af2a98
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ case $1 in
|
|||
;;
|
||||
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"
|
||||
else
|
||||
echo "sessions.value U"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue