Add UPS email notifications and automatic UPS shutdown

- Add email notifications via PVE::Notify for all UPS events:
  - ONBATT: when UPS switches to battery
  - ONLINE: when power is restored
  - LOWBATT: critical battery level
  - SHUTDOWN_START/NODE/PRIMARY: during cluster shutdown
  - COMMBAD: communication lost with UPS

- Add automatic UPS shutdown command after cluster shutdown
  (protects against power surge when power returns)

- Update upssched.conf with ONLINE handler and immediate ONBATT notification

- Add notification templates for HTML and text emails

- Update documentation with new features and timer configuration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Marius
2026-01-13 20:11:30 +02:00
parent e0f84298e9
commit ab6ac77d50
8 changed files with 619 additions and 84 deletions

View File

@@ -0,0 +1 @@
[{{ hostname }}] UPS {{ event_type }} - {{ event_title }}