Pulse/pkg
rcourtman 012c25d604 Use /proc/mdstat operation type to gate RAID rebuilding alerts
Distinguish a real rebuild ("recovery" after disk replacement) from
routine maintenance ("check" data scrubs, "resync" after unclean
shutdown) using the in-progress sync action from /proc/mdstat. The
mdadm --detail State field does not reliably surface scrub state on
all kernel/distribution combinations (notably Synology DSM), which is
why scheduled scrubs were firing "RAID array is rebuilding" warnings
every 30 seconds (Fixes #1446).

The mdadm parser now extracts the operation keyword from the
/proc/mdstat progress line and surfaces it as RAIDArray.Operation
alongside the existing speed parse. The alert layer treats "recovery"
and "reshape" as rebuild signals; "check" and "resync" are treated as
maintenance and do not fire an alert. Stringy State matching is kept
as a backstop for arrays without a /proc/mdstat progress line, but
"resync" alone in State no longer counts as a rebuild signal.

Threaded the new field through the host-agent report, the resources
converter, and the monitor's models conversion. Added /proc/mdstat
parser tests covering recovery/check/resync/reshape/idle, and
end-to-end alert tests for recovery (alerts), check (silent scrub),
and resync (silent maintenance).
2026-04-30 10:37:47 +01:00
..
agents Use /proc/mdstat operation type to gate RAID rebuilding alerts 2026-04-30 10:37:47 +01:00
audit Normalize outbound client and update URLs 2026-03-31 09:31:56 +01:00
auth security: add scope checks to AI Patrol and agent profile endpoints 2026-02-03 19:29:56 +00:00
discovery test: expand backend coverage 2026-01-25 21:08:44 +00:00
fsfilters fix(hostmetrics): skip network mounts before usage probe (#1313) 2026-03-03 20:27:41 +00:00
metrics test: stabilize metrics flush visibility 2026-04-09 10:58:04 +01:00
netutil Validate SAML redirects and request URLs 2026-03-31 09:34:31 +01:00
pbs Normalize outbound client and update URLs 2026-03-31 09:31:56 +01:00
pmg Normalize outbound client and update URLs 2026-03-31 09:31:56 +01:00
proxmox Fix Ceph manager standby parsing 2026-04-13 11:57:12 +01:00
reporting Fix stale metrics store reference in reporting engine after monitor reload 2026-02-04 12:34:40 +00:00
server Fix post-release regressions and lock v5 to single-tenant runtime 2026-03-05 23:46:35 +00:00
tlsutil test: Add comprehensive test coverage across packages 2026-01-19 19:26:18 +00:00