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:
+1
-1
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user