nut-debian/docs/features.txt

259 lines
9.7 KiB
Plaintext
Raw Permalink Normal View History

2011-01-26 11:35:08 +02:00
Features
========
NUT provides many features, and is always improving.
Thus this list may lag behind the current code.
Features frequently appear during the development cycles, so be sure to look at
the link:http://www.networkupstools.org/download.html[release notes and change logs]
to see the latest additions.
////////////////////////////////////////////////////////////////////////////////
*FIXME* statement that NUT is *the* de facto standard on Opensource system.
all Linux distributors have standardized the Power Devices support using NUT.
More and more appliances manufacturers are bundling NUT...
=> add an Appendix NUT Device Integration in the User Manual
////////////////////////////////////////////////////////////////////////////////
Multiple manufacturer and device support
----------------------------------------
2016-07-18 03:11:41 +03:00
- Monitors many UPS, PDU, ATS, PSU and SCD models from more than 140
2022-07-10 10:23:45 +03:00
manufacturers with a unified interface
2016-07-18 03:11:41 +03:00
(link:stable-hcl.html[Hardware Compatibility List]).
2011-01-26 11:35:08 +02:00
2016-07-18 03:11:41 +03:00
- Various communication types and many protocols are supported with the same
common interface:
2011-01-26 11:35:08 +02:00
* serial,
* USB,
* network (SNMP, Eaton / MGE XML/HTTP).
Multiple architecture support
-----------------------------
2022-07-10 10:23:45 +03:00
- Cross-platform -- different flavors of Unix can be managed together with a
2011-01-26 11:35:08 +02:00
common set of tools, even crossing architectures.
2022-07-10 10:23:45 +03:00
- This software has been reported to run on Linux distributions, the BSDs,
Apple's OS X, commercial Solaris and open-source illumos distros, IRIX,
HP/UX, Tru64 Unix, and AIX.
2011-01-26 11:35:08 +02:00
- Windows users may be able to build it directly with Cygwin.
There is also a port of the client-side monitoring to Windows called WinNUT.
- Your system will probably run it too. You just need a good C compiler and
possibly some more packages to gain access to the serial ports.
Other features, such as USB / SNMP / whatever, will also need extra software
installed.
Layered and modular design with multiple processes
--------------------------------------------------
- Three layers: drivers, server, clients.
- Drivers run on the same host as the server, and clients communicate with the
server over the network.
- This means clients can monitor any UPS anywhere as long as there is a network
path between them.
WARNING: Be sure to plug your network's physical hardware (switches, hubs,
routers, bridges, ...) into the UPS!
2022-07-10 10:23:45 +03:00
Redundancy support -- Hot swap/high availability power supplies
---------------------------------------------------------------
2011-01-26 11:35:08 +02:00
- upsmon can handle high-end servers which receive power from multiple UPSes
simultaneously.
- upsmon won't initiate a shutdown until the total power situation across all
source UPSes becomes critical (on battery and low battery).
- You can lose a UPS completely as long as you still have at least the minimum
2022-07-10 10:23:45 +03:00
number of sources available. The minimum value is configurable.
2011-01-26 11:35:08 +02:00
Security and access control
---------------------------
- Manager functions are granted with per-user granularity. The admin can have
2022-07-10 10:23:45 +03:00
full powers, while the admin's helper can only do specific non-destructive
tasks such as a battery test (beware that with a worn-out battery whose
replacement is a few years overdue, a "capacity/remaining runtime" test can
still be destructive by powering off the load abruptly -- and also such a
test can cause hosts to hide into graceful shutdowns when the battery state
does get critical as part of the test).
2011-01-26 11:35:08 +02:00
- The drivers, server, and monitoring client (upsmon) can all run as separate
user IDs if this is desired for privilege separation.
- Only one tiny part of one program has root powers.
upsmon starts as root and forks an unprivileged process which does the actual
monitoring over the network.
They remain connected over a pipe. When a shutdown is necessary, a single
character is sent to the privileged process. It then calls the predefined
shutdown command. In any other case, the privileged process exits.
This was inspired by the auth mechanism in Solar Designer's excellent popa3d.
- The drivers and network server may be run in a chroot jail for further
2022-07-10 10:23:45 +03:00
security benefits. This is supported directly since version 1.4 and beyond
with the 'chroot=' configuration directive.
2011-01-26 11:35:08 +02:00
- IP-based access control relies on the local firewall and
link:http://en.wikipedia.org/wiki/TCP_Wrapper[TCP Wrapper].
- SSL is available as a build option ("--with-ssl").
It encrypts sessions with upsd and can also be used to authenticate servers.
Web-based monitoring
--------------------
- Comes stock with CGI-based web interface tools for UPS monitoring and
management, including graphical status displays.
2022-07-10 10:23:45 +03:00
- Custom status web pages may be generated with the CGI programs, since they
use templates to create the pages. This allows you to have status pages which
fit the look and feel of the rest of your site.
2011-01-26 11:35:08 +02:00
Free software
-------------
- That's free beer and free speech. Licensed under the GNU General Public
License version 2 or later.
2022-07-10 10:23:45 +03:00
- Know your systems -- all source code is available for inspection, so there are
no mysteries or secrets in your critical monitoring tools.
2011-01-26 11:35:08 +02:00
UPS management and control
--------------------------
2022-07-10 10:23:45 +03:00
- Writable variables may be edited on higher end equipment for local
customization
2011-01-26 11:35:08 +02:00
2022-07-10 10:23:45 +03:00
- Status monitoring can generate notifications (email/pager/SMS/...) on alert
conditions
2011-01-26 11:35:08 +02:00
2022-07-10 10:23:45 +03:00
- Alert notices may be dampened to only trigger after a condition persists.
This avoids the usual pager meltdown when something happens and no delay
is used.
2011-01-26 11:35:08 +02:00
- Maintenance actions such as battery runtime calibration are available where
supported by the UPS hardware.
2022-07-10 10:23:45 +03:00
- Power statistics can be logged in custom formats for later retrieval and
analysis
2011-01-26 11:35:08 +02:00
2022-07-10 10:23:45 +03:00
- All drivers are started and stopped with one common program. Starting one
is as easy as starting ten: `upsdrvctl start`.
- For operating systems with a supported service management framework, you can
manage the NUT drivers wrapped into independent service instances using the
'upsdrvsvcctl' instead, and gain the benefits of automated restart as well as
possibility to define further dependencies between your OS components.
2011-01-26 11:35:08 +02:00
- Shutdowns and other procedures may be tested without stressing actual UPS
2022-07-10 10:23:45 +03:00
hardware by simulating status values with the dummy-ups pseudo-driver.
Anything that can happen in a driver can be replicated with dummy-ups.
2011-01-26 11:35:08 +02:00
Monitoring diagrams
-------------------
2022-07-10 10:23:45 +03:00
These are the most common situations for monitoring UPS hardware. Other ways
are possible, but they are mostly variations of these four.
2011-01-26 11:35:08 +02:00
2022-07-10 10:23:45 +03:00
NOTE: these examples show serial communications for simplicity, but USB or
SNMP or any other monitoring is also possible.
2011-01-26 11:35:08 +02:00
"Simple" configuration
~~~~~~~~~~~~~~~~~~~~~~
image:images/simple.png[]
One UPS, one computer. This is also known as "Standalone" configuration.
2022-07-10 10:23:45 +03:00
This is the configuration that most users will use. You need at least a
driver, `upsd`, and `upsmon` running.
2011-01-26 11:35:08 +02:00
"Advanced" configuration
~~~~~~~~~~~~~~~~~~~~~~~~
image:images/advanced.png[]
One UPS, multiple computers. Only one of them can actually talk to the UPS
2022-07-10 10:23:45 +03:00
directly. That's where the network comes in:
2011-01-26 11:35:08 +02:00
2022-07-10 10:23:45 +03:00
- The Primary system runs the relevant driver, `upsd`, and `upsmon` in
"primary" mode.
2011-01-26 11:35:08 +02:00
2022-07-10 10:23:45 +03:00
- The Secondary systems only run `upsmon` in "secondary" mode which all
connect to `upsd` on Primary.
This is useful when you have a very large UPS that's capable of running
multiple systems simultaneously. There is no longer the need to buy a bunch
of individual UPSes or "sharing" hardware, since this software will handle
the sharing for you.
//////////////////////////////////////////////////////////////////////////////
2011-01-26 11:35:08 +02:00
*FIXME* remainder
=== One UPS, many clients ===
2022-07-10 10:23:45 +03:00
- Multiple systems may monitor a single UPS using only their network
connections -- no special "UPS sharing" hardware is required.
2011-01-26 11:35:08 +02:00
2022-07-10 10:23:45 +03:00
- "Secondaries and a primary" monitoring design synchronizes shutdowns so that
secondary systems can bring down their operating systems cleanly before
the primary tells the UPS to switch off the power.
2011-01-26 11:35:08 +02:00
=== Many UPSes, many clients ===
2022-07-10 10:23:45 +03:00
- Each `upsd` process can serve status data for multiple UPSes to many clients.
Multiple NUT drivers need to be configured and running locally on the system
with `upsd` then, and have appropriate media connections to the power devices.
2011-01-26 11:35:08 +02:00
2022-07-10 10:23:45 +03:00
- Each `upsmon` process can monitor multiple UPSes, possibly from multiple
`upsd` hosts, for status data.
2011-01-26 11:35:08 +02:00
2022-07-10 10:23:45 +03:00
//////////////////////////////////////////////////////////////////////////////
2011-01-26 11:35:08 +02:00
"Big Box" configuration
~~~~~~~~~~~~~~~~~~~~~~~
image:images/bigbox.png[]
2022-07-10 10:23:45 +03:00
Some systems have multiple power supplies and cords. You typically find
this on high-end servers that allow hot-swap and other fun features.
In this case, you run multiple drivers (one per UPS), a single `upsd`,
and a single `upsmon` (as a primary for both UPS 1 and UPS 2)
This software understands that some of these servers can also run with
some of the supplies gone. For this reason, every UPS is assigned a
"power value" -- the quantity of power supplies that it feeds on this
system.
The total available "power value" is compared to the minimum that is
required for that hardware. For example, if you have 3 power supplies
and 3 UPSes, but only 2 supplies must be running at any given moment,
the minimum would be 2.
2011-01-26 11:35:08 +02:00
2022-07-10 10:23:45 +03:00
This means that you can safely lose any one UPS and the software will
handle it properly by remaining online and not causing a shut down.
2011-01-26 11:35:08 +02:00
"Bizarre" configuration
~~~~~~~~~~~~~~~~~~~~~~~
image:images/bizarre.png[]
2022-07-10 10:23:45 +03:00
You can even have a UPS that has the serial port connected to a system that
it's not feeding. Sometimes a PC will be close to a UPS that needs to be
monitored, so it's drafted to supply a serial port for the purpose.
This PC may in fact be getting its own power from some other UPS. This is
not a problem for the set-up.
2011-01-26 11:35:08 +02:00
2022-07-10 10:23:45 +03:00
The first system ("mixed") is a Primary for UPS 1, but is only monitoring
UPS 2. The other systems are Secondaries of UPS 2.
2011-01-26 11:35:08 +02:00
Image credits
-------------
2011-06-01 23:31:49 +03:00
Thanks to Eaton for providing shiny modern graphics.