02.12.2015 Views

Network UPS Tools User Manual

Network UPS Tools User Manual

Network UPS Tools User Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Network</strong> <strong>UPS</strong> <strong>Tools</strong> <strong>User</strong> <strong>Manual</strong> 71 / 84<br />

--with-lib (default: no)<br />

Build and install the upsclient library and header files.<br />

--with-all (no default)<br />

Build and install all of the above (the serial, USB, SNMP, XML/HTTP and PowerMan drivers, the CGI programs and HTML<br />

files, and the upsclient library).<br />

--with-ssl (default: auto-detect)<br />

--with-nss (default: auto-detect)<br />

--with-openssl (default: auto-detect)<br />

Enable SSL support, using either Mozilla NSS or OpenSSL. If both are present, and nothing was specified, OpenSSL support<br />

will be preferred. Read docs/security.txt for instructions on SSL support.<br />

--with-wrap (default: auto-detect)<br />

Enable libwrap (tcp-wrappers) support. Refer to upsd man page for more information.<br />

--with-ipv6 (default: auto-detect)<br />

Enable IPv6 support.<br />

--with-avahi (default: auto-detect)<br />

Build and install Avahi support, to publish NUT server availability using mDNS protocol. This requires Avahi development files<br />

for the Core and Client parts.<br />

--with-libltdl (default: auto-detect)<br />

Enable libltdl (Libtool dlopen abstraction) support. This is required to build nut-scanner.<br />

H.3 Other configuration options<br />

--with-port=PORT<br />

Change the TCP port used by the network code. Default is 3493.<br />

Ancient versions of upsd used port 3305. NUT 2.0 and up use a substantially different network protocol and are not able to<br />

communicate with anything older than the 1.4 series.<br />

If you have to monitor a mixed environment, use the last 1.4 version, as it contains compatibility code for both the old "REQ"<br />

and the new "GET" versions of the protocol.<br />

--with-user=<br />

--with-group=<br />

Programs started as root will setuid() to for somewhat safer operation. You can override this with -u in several<br />

programs, including upsdrvctl (and all drivers by extension), upsd, and upsmon. The "user" directive in ups.conf overrides this<br />

at run time for the drivers.<br />

Note<br />

upsmon does not totally drop root because it may need to initiate a shutdown. There is always at least a stub process remaining<br />

with root powers. The network code runs in another (separate) process as the new user.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!