Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save colmbuckley/5e378c96f5069662a3c59305090746ba to your computer and use it in GitHub Desktop.
Save colmbuckley/5e378c96f5069662a3c59305090746ba to your computer and use it in GitHub Desktop.
# nut.conf
MODE=netserver
# ups.conf
[ipg800]
driver = bcmxcp
port = /dev/ttyUSB0
desc = "Eaton IPG 800"l
# upsd.conf
LISTEN 127.0.0.1 3493
LISTEN 127.0.1.1 3493
LISTEN ::1 3493
LISTEN my.real.ipv4.address 3493
LISTEN my:real:ipv6:address 3493
# upsd.users
[admin]
password = correct.horse.battery.staple
actions = SET
instcmds = ALL
[upsmon]
password = hunter2
upsmon = master
# upsmon.conf
MONITOR ipg800@localhost 1 upsmon hunter2 master
# [... other config options as included; easy enough to understand ...]
# note you need to roll your own NOTIFYCMD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment