Skip to content

Instantly share code, notes, and snippets.

@InQuize
Last active April 22, 2024 07:35
Show Gist options
  • Star 30 You must be signed in to star a gist
  • Fork 11 You must be signed in to fork a gist
  • Save InQuize/ab99feb66822dc1a975c to your computer and use it in GitHub Desktop.
Save InQuize/ab99feb66822dc1a975c to your computer and use it in GitHub Desktop.
Proxomox - NUT Client.md

Configuring Proxmox VE node as client for remote NUT server


apt-get install nut
  • Edit /etc/nut/nut.conf:
MODE=netclient
  • Edit /etc/nut/upsmon.conf: MONITOR <system> <powervalue> <username> <password> ("master"|"slave"):
MONITOR ups@10.2.0.2 1 upsmon password slave
  • Start monitoring:
upsmon start
  • To check UPS status: upsc <name> for direct attached units or upsc <name>@<address> for remote
upsc ups@10.2.0.2
@InQuize
Copy link
Author

InQuize commented May 27, 2023

No other scripts in my setup. It is a graceful shutdown including all VMs.
Client performs action based on server configuration.
My server is NUT service inside TrueNAS VM. It is configured to shutdown after N minutes of ONBATT state.

If communication is lost NUT should spam you with e-mails until it is fixed, but there must be a valid account configured for each system's e-mail MTA (e.g. postfix)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment