I had a few SD card failures due to power loss so I installed apcupsd under openhabian and configured it to connect to my UPS master (server).
as described here: How to Use APC UPS with Two or More Computers - apcupsd Master Slave Setup - pontikis.net
I can see the status of the UPS in the logfile and using apcaccess.
How do I configure it to shutdown the rasberry pi once a power failure has occured?
I setup the mintime and other APCUPSD parameters but one I had a power failure (today) it didn’t shutdown the PI and I once again have an SD corruption
Do I need to do anything else to have it shutdown the RPI once a power failure occurs?