No Break

This page it is described how you can set you no break (or ups) to shut down your computer when the batteries are running low.

Install
Based on this how to: http://www.apcupsd.org/manual/

Set the kernel:

Configuration
Configuration file:

Status
Monitoring from a gui: