Tested on Debian Bullseye 11 and Ubuntu 20.04
Please review NUT Server Config before proceeding with this document
The NUT client processes power events that are broadcast from the NUT server and shuts down the host where it is installed. It may also issue commands to the NUT server (depending on permissions granted in /etc/nut/upsd.users on the server). The client does not require SNMP drivers.
├── bin
│ ├── upsc
│ ├── upscmd
│ ├── upslog
│ ├── upsrw
│ └── upssched-cmd
├── dep
│ └── libupsclient.so.6.0.0
├── lib
│ └── upsmon
└── sbin
└── upssched
Should contain MODE=netclient
- Define which UPS(es) you will be monitoring here
MINSUPPLIES
will probably be 1- You can use a
SHUTDOWNCMD
similar toSHUTDOWNCMD "/usr/bin/logger fake shutdown command"
to speed up your testing process - Define the
NOTIFYCMD
andNOTIFYFLAG
s that will be used (varies by driver / UPS capabilities).
Determines what occurs at specific UPS events. Sets the shutdown timer that will be used to shut off the host and complement processes.
Be sure to uncomment the CMDSCRIPT
and PIPEFN
parameters and set appropriate paths
The timer you configure here determines when the client will shutdown. It's important to ensure that your shutdowns are synchronized!