mirror of
https://github.com/ergosteur/ergo-proxmox-scripts.git
synced 2026-10-28 13:00:37 -04:00
Documents the target state for a host that owns a USB UPS and serves it to a Synology, for hand-configuring a machine where running setup-nut-synology.sh is not wanted. Verified byte-identical to what that script generates, so the two cannot drift. The [admin] password is the only real secret and ships as CHANGEME in both files that must agree, upsd.users and the MONITOR line of upsmon.conf. monuser/secret is committed literally. DSM hardcodes both and cannot be configured otherwise, so they are published constants rather than credentials, and the upsmon secondary role only permits reading status and receiving shutdown notifications. The example UPS serial is a placeholder rather than the real unit's. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
19 lines
672 B
Plaintext
19 lines
672 B
Plaintext
# Install as /etc/nut/upsd.users (root:nut, 0640).
|
|
#
|
|
# admin: used by this machine's own upsmon, which owns the UPS.
|
|
# Replace CHANGEME, and use the same value in the MONITOR line of upsmon.conf.
|
|
# openssl rand -base64 18 | tr -d '/+=' | cut -c1-20
|
|
[admin]
|
|
password = CHANGEME
|
|
upsmon primary
|
|
actions = SET
|
|
instcmds = ALL
|
|
|
|
# monuser: for Synology DSM, which hardcodes both the username and the password
|
|
# and cannot be configured to use anything else. These are published constants
|
|
# rather than credentials. The secondary role only permits reading status and
|
|
# receiving shutdown notifications, not commanding the UPS.
|
|
[monuser]
|
|
password = secret
|
|
upsmon secondary
|