Agent diagnostics ("what the agent couldn't collect") and services to ignore per server
- Agents (Linux 6, Windows 5) note each check they couldn't make and why; the server page turns that into tips and fixes, including when the agent is behind - Linux --prepare leaves its notes for the report; a missing prepare step is itself noted - Services to ignore are set per server from the Host health card (names or * patterns), applied on the server so alerts and /metrics drop them at once; saving alert limits keeps the list Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b5384c1e03
commit
c3bc6bbf72
26 files changed
+4118
-45
No files matched your search
@@ -13,7 +13,7 @@ const FIELDS: { key: Field; label: string; unit: string; min: number; max: numbe
|
||||
{ key: "backupStaleHours", label: "Its backup is too old after", unit: "hours", min: 0, max: 2160, hint: "For the Proxmox guest this server is. 0 means it is never called stale.", onlyForGuests: true },
|
||||
];
|
||||
|
||||
const has = (t: Thresholds | null) => !!t && (Object.keys(t).some((k) => k !== "mounts") || Object.keys(t.mounts ?? {}).length > 0);
|
||||
const has = (t: Thresholds | null) => !!t && (Object.keys(t).some((k) => k !== "mounts" && k !== "ignoreServices") || Object.keys(t.mounts ?? {}).length > 0);
|
||||
|
||||
/**
|
||||
* This server's own alert limits. Anything left empty follows Settings → Notifications, so changing the global limit still reaches every
|
||||
@@ -53,6 +53,8 @@ export default function ServerThresholds({ server, defaults, disks, canEdit, onC
|
||||
if (rule.percent !== undefined || rule.ignore) rules[m] = rule;
|
||||
}
|
||||
if (Object.keys(rules).length > 0) out.mounts = rules;
|
||||
// The services to ignore are edited on the health card; saving limits here must not lose them.
|
||||
if (own?.ignoreServices?.length) out.ignoreServices = own.ignoreServices;
|
||||
return Object.keys(out).length > 0 ? out : null;
|
||||
}
|
||||
|
||||
@@ -195,7 +197,7 @@ export default function ServerThresholds({ server, defaults, disks, canEdit, onC
|
||||
{busy ? "Saving…" : "Save"}
|
||||
</button>
|
||||
{has(own) && (
|
||||
<button type="button" className="btn" disabled={busy} onClick={() => void save(null)}>
|
||||
<button type="button" className="btn" disabled={busy} onClick={() => void save(own?.ignoreServices?.length ? { ignoreServices: own.ignoreServices } : null)}>
|
||||
Follow Settings again
|
||||
</button>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user