What is normal for the time: baselines per hour of the week
Each server's CPU load and memory use get a baseline for every hour of the week (median and robust spread over up to ten weeks, four needed). A clearly high last hour that never dropped back toward normal is a warning; everything else stays quiet. Server History -> Trends draws a usual line and band. Setting under Notifications, on by default. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
232a5661ab
commit
31044b2b64
17 files changed
+619
-10
No files matched your search
@@ -83,7 +83,7 @@ const DIGEST_DAYS: { value: number; label: string }[] = [
|
||||
{ value: 6, label: "Saturday" },
|
||||
{ value: 0, label: "Sunday" },
|
||||
];
|
||||
const DEFAULT_HEALTH_CHECKS: HealthCheckSettings = { serverOfflineMinutes: 60, diskUsagePercent: 90, domainWarnDays: 30, diskForecastDays: 14, backupStaleHours: 48, restoreTestDays: 0, newPortAlerts: true, flapRaises: 3, deviceOfflineMinutes: 10, osSupportWarnDays: 90 };
|
||||
const DEFAULT_HEALTH_CHECKS: HealthCheckSettings = { serverOfflineMinutes: 60, diskUsagePercent: 90, domainWarnDays: 30, diskForecastDays: 14, backupStaleHours: 48, restoreTestDays: 0, newPortAlerts: true, flapRaises: 3, deviceOfflineMinutes: 10, osSupportWarnDays: 90, baselineAlerts: true };
|
||||
const DEFAULT_MONTHLY: MonthlyReportSettings = { enabled: false, day: 1, time: "08:00" };
|
||||
|
||||
type TestResult = { ok: boolean; message: string } | null;
|
||||
@@ -754,6 +754,17 @@ export default function NotificationSettings() {
|
||||
hint="Switches, access points and gateways read from a UniFi controller (Network devices). The controller is read every five minutes, and what a device needs or what needs it is folded under it when it is down."
|
||||
onChange={(v) => setHealthChecks((h) => ({ ...h, deviceOfflineMinutes: v }))}
|
||||
/>
|
||||
<label className="form-check mt-3 mb-0">
|
||||
<input type="checkbox" className="form-check-input" checked={healthChecks.baselineAlerts} onChange={(e) => setHealthChecks((h) => ({ ...h, baselineAlerts: e.target.checked }))} />
|
||||
<span className="form-check-label">
|
||||
Warn when CPU or memory is unusually high for the time
|
||||
<span className="form-hint d-block">
|
||||
Each server’s CPU load and memory use are compared with what is normal for the same hour of the same weekday, from its own history (it needs four weeks of that hour, and uses up to ten; the
|
||||
hours are those of the notification time zone below). It is quiet on purpose: only a <em>high</em> reading, last hour averaging at least 50 % CPU or 70 % memory, far above the usual and never back toward it, is
|
||||
a warning. Sent with the server offline and disk messages.
|
||||
</span>
|
||||
</span>
|
||||
</label>
|
||||
<label className="form-check mt-3 mb-0">
|
||||
<input type="checkbox" className="form-check-input" checked={healthChecks.newPortAlerts} onChange={(e) => setHealthChecks((h) => ({ ...h, newPortAlerts: e.target.checked }))} />
|
||||
<span className="form-check-label">
|
||||
|
||||
Reference in new issue
Block a user