monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ACPI


From: Artyom Aleksandrov
Subject: Re: ACPI
Date: Mon, 31 Oct 2011 17:11:11 +0300

Hi, easyest way is write simple bash script to check "acpi -V"
And configure monit like this:

check program myscript with path "/usr/local/bin/acpi_check.sh"
       if status != 0 then alert

Best regards, Artyom


On Mon, Oct 31, 2011 at 5:43 PM, Andrew Holt <address@hidden> wrote:

Hi,

Is it possible to use monit to periodically check the status, as reported by acpi e.g:

acpi -V
Battery 0: Full, 100%, rate information unavailable
Battery 0: design capacity 5200 mAh, last full capacity 5200 mAh = 100%
Adapter 0: on-line
Thermal 0: ok, 50.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 90.0 degrees C
Cooling 0: Processor 0 of 7

So send an alert if power off-line and battery <=50% or Temperature > 80 deg C

Thanks.

Andrew






--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general


reply via email to

[Prev in Thread] Current Thread [Next in Thread]