Brandawg93 / PeaNUT

A tiny dashboard for Network UPS Tools
Apache License 2.0
355 stars 8 forks source link

[Feature Request]: NUT Client to shutdown hosts #89

Open jmiller0 opened 1 day ago

jmiller0 commented 1 day ago

Enhancement of issue

Installing a nutclient can be troublesome on every host. If PeaNut could interrupt low UPS levels it could send signals to shut down other hosts. This way each host in a homelab wouldn't need to install and configure nut client.

Solution

  1. peanut monitors for low ups levels
  2. peanut keeps a list of hosts that need to shutdown on low battery levels
  3. peanut will ssh to hosts running shutdown

Alternatives

unknown

Additional Context

Would require authentication to be setup beforehand, no way to remote powercycle universally.

Brandawg93 commented 1 day ago

That would be a good future feature. For now with the latest version, you can use Grafana to set up alerts that will run scripts when certain data hits a specified threshold. Check out the example for more info.