I have an Eaton 3S 700VA UPS connected to my modem, QNAP TS-412 and an Ubuntu Server. The Eaton's USB connection goes into my Ubuntu Server.
I was wondering what software is the best for managing power interruptions. Specifically, I want to get the Ubuntu Server to tell the QNAP to shut down when there is no power, send an email to my gmail, and shutdown.