Repository navigation
fix-medium: send API v2 alarms to the monitor's own server - #56
Merged
Merged
Conversation
In a multi-server setup, forcing or cancelling an alarm on a camera that another server records always went to the server the client logs in to. ZoneMinder runs zmu there, which can't reach that camera's capture daemon, so the alarm failed (zmu exit 255) and no event was recorded. Streams and PTZ already go to each camera's own server; alarms now go to that server's API too, from the PathToApi the servers list gives. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Impact: fix-medium (alarms on cameras recorded by another server failed in multi-server setups)
TL;DR
trigger_alarm/cancel_alarmfor a camera on another server go to the client's own host, where zmu can't reach it)PathToApi); alarms go there, as streams and PTZ already go to the monitor's server; 2 files, +55/-9test_alarms_go_to_the_monitors_own_serverfails before, passes after; ruff, ruff format, mypy and the full unit suite pass; two-server lab probe before/after: see API v2: alarms on a camera recorded by another server fail in a multi-server setup #55.Fixes #55
🤖 Generated with Claude Code