Bachelor Tech
  • Home
  • Tutorials
  • Tips
  • Portfolio
  • About Jan
  • Contact Jan

6. Run a UPS drain test!

by Jan Bachelor October 28, 2025

It would not be a real tutorial if we did not actually test what we prepared for our disaster recovery situation 😉

  • Back up / snapshot any critical VMs and containers just in case
  • Ensure that anything important is not plugged into the UPS ports that are not actually backed up (some UPS units have more electrical plugs that are not battery-covered).
  • On the RPi, watch the log – tail -f /var/log/ups_manager.log to watch for any changes in real time.
  • Unplug your UPS unit and wait a little. Within a minut, you should receive a notification from Uptime Kuma.
Verify that you receive notifications on power outage - this one is from Uptime Kuma
Uptime Kuma warning on Discord during a power outage test
  • And within another minute, an email alert:
Example of an email notification sent to my Gmail during a power outage test.
Email notification on power loss – example
  • Lastly, check the output from the log available in /var/log/ups-manager.log .
Output from the ups-manager.log file that demonstrates that our script is working and that the same hosts are not being repeatedly sent for shutdown.
Evidence that the script is working and triggers every 2 minutes.

You can see that once one host is sent a request for a shutdown, the flag is raised and thus the script does not attempt to shut it down again and again.

5. Bonus: Add UPS monitoring to Uptime Kuma
7. Add Wake-on-LAN to automatically wake up your hosts!
Go back to course overview: Automate Graceful Shutdown & Wake on LAN for Proxmox with RPi (APC)

Leave a Comment Cancel Reply

Save my name, email, and website in this browser for the next time I comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 FacebookWhatsappEmail

Course Steps

  1. 1. Automated Proxmox UPS Shutdown Process - Goals & Installation
  2. 2. Configure apcupsd, SSH keys and SMTP
  3. 3. Prepare a Script of Scripts for automated shutdown of Proxmox hosts
  4. 4. Prepare onbaterry and offbatery APC scripts
  5. 5. Bonus: Add UPS monitoring to Uptime Kuma
  6. 6. Run a UPS drain test!
  7. 7. Add Wake-on-LAN to automatically wake up your hosts!
  8. 8. GitOps - manage your shutdown scripts with Gitea

Other courses

Create an automated Gravity workflow that will allow...

January 19, 2024

Dynamically Populate Gravity Forms from Google Sheets (GSheets...

March 16, 2021

Concur Alternative: Import Employees’ Credit Card Expenses to...

January 19, 2024

Turn your Raspberry Pi into a Proxmox Backup...

July 13, 2025

Install iRedMail Mail Server As Proxmox VM With...

October 31, 2024

Recent Posts

  • How to get LXC containers for Proxmox outside of ready-made templates

  • How to join two Proxmox nodes into a cluster (PVE 8.x)

  • How to Rename a Proxmox Node

Facebook Twitter Instagram Pinterest Linkedin Youtube

All Rights Reserved. The theme was customized from Soledad, see PenciDesign

Bachelor Tech
  • Home
  • Tutorials
  • Tips
  • Portfolio
  • About Jan
  • Contact Jan