fix: CPU temp rule example pins coretemp chip

A bare 'sensors -u | grep -m1 temp1_input' can match a non-CPU chip's
temp1_input first (e.g. acpitz case temp 27.8 vs coretemp 46.0), so the
rule silently never fires. Example in config/event.env and howto now
target coretemp-isa-0000 + 'Package id 0' explicitly; howto notes the
gotcha.
This commit is contained in:
Your Name
2026-08-09 18:14:55 +00:00
parent 2e72ad1a44
commit 06858e34bb
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
# condition clears) via lib/notify.sh — Telegram by default.
#
# Examples:
# "CPU too hot" if sensors -u | grep -m1 temp1_input | awk '{print $2}' > 60c
# "CPU too hot" if sensors -u coretemp-isa-0000 | awk '/Package id 0:/{f=1} f && /temp1_input:/{print $2; exit}' > 60c
# "Disk nearly full" if df -P / | awk 'NR==2{print $5+0}' > 80%
# "Load high" if uptime | sed 's/.*load average: //; s/,.*//' >= 4
#