From 1e7aa17d3dbb75ddc8f1b6f72b1daa46b692762b Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Thu, 5 Mar 2026 21:31:29 -0800 Subject: [PATCH] Log DIMM temperatures on each check run --- common/ntfy/dimm-temp.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/ntfy/dimm-temp.nix b/common/ntfy/dimm-temp.nix index dd61d11..2b276e6 100644 --- a/common/ntfy/dimm-temp.nix +++ b/common/ntfy/dimm-temp.nix @@ -9,6 +9,7 @@ let threshold=55 hot="" + summary="" while IFS= read -r line; do case "$line" in @@ -18,6 +19,7 @@ let *temp1_input:*) temp="''${line##*: }" whole="''${temp%%.*}" + summary="''${summary:+$summary, }$chip: ''${temp}°C" if [ "$whole" -ge "$threshold" ]; then hot="$hot"$'\n'" $chip: ''${temp}°C" fi @@ -25,6 +27,8 @@ let esac done < <(sensors -u 'spd5118-*' 2>/dev/null) + echo "$summary" + if [ -n "$hot" ]; then message="DIMM temperature above ''${threshold}°C on ${config.networking.hostName}:$hot"