From ff35f0c87f4dc9ea75b2e911d9cb397ab2c120f7 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 24 Oct 2023 16:26:14 +0200 Subject: check-health: reverse logic for RAM (free -> utilization)... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... to bring it in sync with CPU utilization. Also make the output more verbose, at least for the warning. ---- ✂️ ---- 🗃️📈️ Health warning: RAM utilization The RAM utilization on MikroTik is at 81%! total: 64 MiB used: 52 MiB free: 11 MiB ---- ✂️ ---- 🗃️📉️ Health recovery: RAM utilization The RAM utilization on MikroTik decreased to 65%. ---- ✂️ ---- --- doc/check-health.d/notification-03-free-ram-low.avif | Bin 6457 -> 0 bytes .../notification-03-ram-utilization-high.avif | Bin 0 -> 7527 bytes doc/check-health.d/notification-04-free-ram-ok.avif | Bin 6772 -> 0 bytes .../notification-04-ram-utilization-ok.avif | Bin 0 -> 6637 bytes doc/check-health.md | 14 +++++++------- 5 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 doc/check-health.d/notification-03-free-ram-low.avif create mode 100644 doc/check-health.d/notification-03-ram-utilization-high.avif delete mode 100644 doc/check-health.d/notification-04-free-ram-ok.avif create mode 100644 doc/check-health.d/notification-04-ram-utilization-ok.avif (limited to 'doc') diff --git a/doc/check-health.d/notification-03-free-ram-low.avif b/doc/check-health.d/notification-03-free-ram-low.avif deleted file mode 100644 index effc87c..0000000 Binary files a/doc/check-health.d/notification-03-free-ram-low.avif and /dev/null differ diff --git a/doc/check-health.d/notification-03-ram-utilization-high.avif b/doc/check-health.d/notification-03-ram-utilization-high.avif new file mode 100644 index 0000000..59155c5 Binary files /dev/null and b/doc/check-health.d/notification-03-ram-utilization-high.avif differ diff --git a/doc/check-health.d/notification-04-free-ram-ok.avif b/doc/check-health.d/notification-04-free-ram-ok.avif deleted file mode 100644 index cadb1d0..0000000 Binary files a/doc/check-health.d/notification-04-free-ram-ok.avif and /dev/null differ diff --git a/doc/check-health.d/notification-04-ram-utilization-ok.avif b/doc/check-health.d/notification-04-ram-utilization-ok.avif new file mode 100644 index 0000000..d995b9a Binary files /dev/null and b/doc/check-health.d/notification-04-ram-utilization-ok.avif differ diff --git a/doc/check-health.md b/doc/check-health.md index 34b5faf..3bde4e9 100644 --- a/doc/check-health.md +++ b/doc/check-health.md @@ -13,7 +13,7 @@ This script is run from scheduler periodically, sending notification on health related events: * high CPU utilization -* low available free RAM +* high RAM utilization (low available RAM) * voltage jumps up or down more than configured threshold * voltage drops below hard lower limit * power supply failed or recovered @@ -21,9 +21,9 @@ health related events: Note that bad initial state will not trigger an event. -Monitoring CPU utilization and available free RAM works on all devices. -Other than that only sensors available in hardware can be checked. See what -your hardware supports: +Monitoring CPU and RAM utilization (available processing and memory +resources) works on all devices. Other than that only sensors available +in hardware can be checked. See what your hardware supports: /system/health/print; @@ -34,10 +34,10 @@ your hardware supports: ![check-health notification cpu utilization high](check-health.d/notification-01-cpu-utilization-high.avif) ![check-health notification cpu utilization ok](check-health.d/notification-02-cpu-utilization-ok.avif) -#### Available free RAM +#### RAM utilization (low available RAM) -![check-health notification free ram low](check-health.d/notification-03-free-ram-low.avif) -![check-health notification free ram ok](check-health.d/notification-04-free-ram-ok.avif) +![check-health notification ram utilization high](check-health.d/notification-03-ram-utilization-high.avif) +![check-health notification ram utilization ok](check-health.d/notification-04-ram-utilization-ok.avif) #### Voltage -- cgit v1.2.3-70-g09d2