From 099fc253526c310924cea0afc964366f80a5d445 Mon Sep 17 00:00:00 2001 From: "Daniele Verducci (Slimpenguin)" Date: Thu, 27 Apr 2023 08:10:27 +0200 Subject: [PATCH] Better shutdown on battery low regexp --- healthcheck/healthcheck.cfg.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/healthcheck/healthcheck.cfg.example b/healthcheck/healthcheck.cfg.example index 224d5f4..a331901 100644 --- a/healthcheck/healthcheck.cfg.example +++ b/healthcheck/healthcheck.cfg.example @@ -154,7 +154,7 @@ ALARM_STRING_EQUAL=off-line # To cancel the shutdown, log in and "shutdown -c". DISABLED=True COMMAND=acpi -b -REGEXP=Battery \d: .*, (\d{1,3})% +REGEXP=REGEXP=Battery \d: Discharging, (\d{1,3})% ALARM_VALUE_LESS_THAN=50 ALARM_COMMAND=shutdown +15 "Shutdown in 15 mins due to battery low!"