upsd.conf
Configuration for Network UPS Tools upsd data server
- Provided by: nut-server (Version: 2.8.4+really-2)
- Source: nut
- Report a bug
Configuration for Network UPS Tools upsd data server
upsd(8) uses this file to control access to the server and set some other miscellaneous configuration values. This file contains details on access controls, so keep it secure. Ideally, only the upsd process should be able to read it.
MAXAGE seconds
Most users should leave this at the default value.
TRACKINGDELAY seconds
ALLOW_NO_DEVICE Boolean
Boolean values true, yes, on and 1 mean that the server would not refuse to start with zero device sections found in ups.conf.
Boolean values false, no, off and 0 mean that the server should refuse to start if zero device sections were found in ups.conf. This is the default, unless the calling environment sets a same-named variable to enforce a value for the current run. One way this can happen is somebody un-commenting it in the nut.conf file used by init-scripts and service unit method scripts.
ALLOW_NOT_ALL_LISTENERS Boolean
Boolean values true, yes, on and 1 mean that the server would not refuse to start if it can listen on at least one interface.
Boolean values false, no, off and 0 mean that the server should refuse to start if it can not LISTEN on each and every (non-localhost) interface found in upsd.conf. This is the default, unless the calling environment sets a same-named variable to enforce a value for the current run. One way this can happen is somebody un-commenting it in the nut.conf file used by init-scripts and service unit method scripts.
STATEPATH path
Note that the drivers must use the same path, so upsd would prefer the same-named setting from ups.conf global section, if present, over its own.
Environment variable NUT_STATEPATH set by caller (e.g. init script or service method) can override this setting.
LISTEN interface port
Optionally listen on TCP port port instead of the default value which was compiled into the code. This overrides any value you may have set with configure --with-port. If you don’t change it with configure or this value, upsd will listen on port 3493 for this interface.
Multiple LISTEN addresses may be specified. The default is to bind to 127.0.0.1 if no LISTEN addresses are specified (and also ::1 if IPv6 support is compiled in).
To listen on all available interfaces and configured IP addresses of your system, you may also use :: for IPv6 and 0.0.0.0 for IPv4, respectively. As a special case, a single LISTEN * <port> directive (with an asterisk) will try to listen on both IPv6 (::0) and IPv4 (0.0.0.0) wild-card IP addresses, subject to upsd command-line arguments or system configuration. Note that if the system supports IPv4-mapped IPv6 addressing per RFC-3493, and does not allow to disable this mode, then there may be one listening socket to handle both address families.
LISTEN 127.0.0.1 LISTEN 192.168.50.1 LISTEN myhostname.mydomain LISTEN ::1 LISTEN 2001:0db8:1234:08d3:1319:8a2e:0370:7344
This parameter will only be read at startup. You’ll need to restart (rather than merely reload) upsd to apply any changes made here.
Please note that older NUT releases could have been using the IPv4-mapped IPv6 addressing (sometimes also known as "dual-stack") mode, if provided by the system. Current versions (since NUT v2.8.1 release) explicitly try to restrict their listening sockets to only support one address family on each socket, and so avoid IPv4-mapped mode where possible.
MAXCONN connections
CERTFILE certificate file
The certificates must be in PEM format and must be sorted starting with the subject’s certificate (server certificate), followed by intermediate CA certificates (if applicable) and the highest level (root) CA. It should end with the server key. See docs/security.txt in NUT sources, or the Security chapter of NUT user manual, for more information on the SSL support in NUT.
CERTPATH certificate database
Certificates are stored in a dedicated database (data split in 3 files). Specify the path of the database directory.
CERTIDENT certificate name database password
CERTREQUEST certificate request level
Possible values are:
DISABLE_WEAK_SSL BOOLEAN
Unless you have really ancient clients, you probably want to enable this. Currently disabled by default to ensure compatibility with existing setups.
DEBUG_MIN INTEGER
upsd(8), nutupsdrv(8), upsd.users(5)
The NUT (Network UPS Tools) home page: https://www.networkupstools.org/historic/v2.8.4/