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
<[email protected]>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
>
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general