Jellyfin: reads checked against a live server

Inspect on a real Jellyfin showed system info, sessions, scheduled tasks, item counts and the activity log answer as the reader expects. The operating system is blank on this version and a stream or failed sign-in was not seen with data. Docs and the adapter's header say so; no code change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-17 19:49:50 +01:00
1 parent 6052595dea
commit d58fe2027b
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -402,7 +402,7 @@ osTicket's API cannot close a ticket, so this is the one place in the app that *
A **patch plan** that comes to that server while people are streaming **waits for them, up to two hours**, then goes ahead and says so in its message; the server's row in the run reads *Waiting: 2 people are streaming from Cinema (Ann: Dune, …)*. Only a reading from the last ten minutes counts: if Jellyfin cannot be read, nobody is assumed to be watching. A **patch plan** that comes to that server while people are streaming **waits for them, up to two hours**, then goes ahead and says so in its message; the server's row in the run reads *Waiting: 2 people are streaming from Cinema (Ann: Dune, …)*. Only a reading from the last ten minutes counts: if Jellyfin cannot be read, nobody is assumed to be watching.
- If Jellyfin cannot be read for ten minutes its alerts are neither raised nor cleared, the Alerts page says it could not check, and the integration is raised as failing like any other. - If Jellyfin cannot be read for ten minutes its alerts are neither raised nor cleared, the Alerts page says it could not check, and the integration is raised as failing like any other.
- `/metrics` has `homelab_jellyfin_streams`, `homelab_jellyfin_transcodes` and `homelab_jellyfin_pending_restart` for each Jellyfin that was read lately. - `/metrics` has `homelab_jellyfin_streams`, `homelab_jellyfin_transcodes` and `homelab_jellyfin_pending_restart` for each Jellyfin that was read lately.
- **Not verified against a live Jellyfin** — the endpoints (`/System/Info`, `/Sessions`, `/ScheduledTasks`, `/Items/Counts`, `/System/ActivityLog/Entries`) and their fields are as Jellyfin publishes them and the reader is tried against a pretend server. Every field is read defensively, and a part that cannot be read (older versions - **Checked against a live Jellyfin** (Inspect): `/System/Info`, `/Sessions`, `/ScheduledTasks` (19 tasks, with their last result), `/Items/Counts` and `/System/ActivityLog/Entries` all answered as the reader expects. Two things are empty there and right to be: the operating system (this Jellyfin leaves `OperatingSystemDisplayName` and `OperatingSystem` blank, as newer versions do, so the page shows no OS) and the failed-task message (no task had failed). **Not yet seen with something in them:** a playing stream (there were no active sessions) and failed sign-ins in the activity log (there were none); those are as Jellyfin publishes them and tried against a pretend server. Every field is read defensively, and a part that cannot be read (older versions
differ) is left out without failing the rest; the **Diagnostic Log** has what was asked and answered. differ) is left out without failing the rest; the **Diagnostic Log** has what was asked and answered.
### Immich ### Immich
+2 -2
View File
@@ -4,8 +4,8 @@
* Reading only: the server's own information (version, whether it wants a restart or an update), who is streaming right now and whether it is being transcoded, the scheduled tasks * Reading only: the server's own information (version, whether it wants a restart or an update), who is streaming right now and whether it is being transcoded, the scheduled tasks
* (a library scan that failed), how many items there are and how many sign-ins failed lately. Nothing is sent to Jellyfin but requests for these. * (a library scan that failed), how many items there are and how many sign-ins failed lately. Nothing is sent to Jellyfin but requests for these.
* *
* Endpoints and field names are from Jellyfin's published API (`/System/Info`, `/Sessions`, `/ScheduledTasks`, `/Items/Counts`, `/System/ActivityLog/Entries`) and have not * Endpoints and field names are from Jellyfin's published API (`/System/Info`, `/Sessions`, `/ScheduledTasks`, `/Items/Counts`, `/System/ActivityLog/Entries`) and were
* been checked against a live server here; every field is read defensively, and one that is missing is just left out. * checked against a live server (no stream was playing and no sign-in had failed, so those parts were seen empty); every field is read defensively, and one that is missing is just left out.
*/ */
import { requestJson } from "../httpJson.js"; import { requestJson } from "../httpJson.js";
import { withDiagLogging } from "../../services/diagLog.js"; import { withDiagLogging } from "../../services/diagLog.js";