- Мозаика системного администрирования
- Инструменты пользователя
- Инструменты сайта
- Network UPS Tools (NUT)
- Содержание
- Сервер — upsd
- upsd.conf
- upsd.users
- ups.conf
- upsdrvctl
- Клиент мониторинга — upsmon
- Клиент MS Windows
- WinNUT
- Windows NUT client
- Другие клиенты
- upslog
- upsrw
- upscmd
- Веб мониторинг
- Настройка
- Zabbix
- Welcome
- Download information
- Source code
- Stable tree: 2.7
- Development tree:
- Code repository
- Browse code
- Snapshots
- Related projects
- Graphical desktop clients
- KNutClient
- NUT-Monitor
- walNUT
- Windows NUT client
- WinNUT
- WMNUT
- Network Management Systems (NMS) integration
- collectd
- Xymon (Hobbit) monitor
- MonAMI NUT plugin
- Munin NUT plugin
- Nagios plugin
- Configuration GUIs
- KNutSetting
- Other software projects
- 42ITy™
- Network UPS Tools Services for Windows
- nut-snmpagent
- PyNUT
- RRDtool logging support
- ups_control
- UPS::Nut
- python-nut2
- webNUT
- go.nut
- Hardware projects involving NUT
- Dell PowerVault NX3500
- OpenGear
- Synology
- Alcatel Lucent IPBX
- Netgear ReadyNAS
- Thecus NAS
- Buffalo NAS
- Eaton — Intelligent Power Controller
- Legacy and discontinued projects
- GKrellM NUT
- Eaton — Personal Solution Pac
- UPS Monitor
- Notes
Мозаика системного администрирования
Инструменты пользователя
Инструменты сайта
Network UPS Tools (NUT)
Содержание
Network UPS Tools (NUT) — комплект программ для мониторинга ИБП .
Сервер — upsd
upsd отвечает за передачу данных от драйверов к клиентским программам по сети. Его следует запускать сразу после upsdrvctl в сценариях запуска вашей системы.
По возможности, upsd следует поддерживать в рабочем состоянии, поскольку это единственный источник информации о состоянии для клиентов мониторинга, таких как upsmon.
upsd.conf
upsd.users
ups.conf
Нужно обязательно дать права на файл устройства (порта), иначе будет ошибка:
Для того, чтобы после перезагрузки были правильные права на файл, нужно создать файл:
upsdrvctl
UPS driver controller
Клиент мониторинга — upsmon
upsmon предоставляет важную функцию, которую вы ожидаете найти в ПО для мониторинга ИБП — это безопасное отключение при сбое питания.
В иерархии ПО NUT это клиент. Он отдельно описан в документации, так как он очень важен. Вы настраиваете его, указывая все ИБП, информацию о которых необходимо получать, это делается в файле в upsmon.conf .
В файле nut.conf нужно указать режим:
СИСТЕМА | ИМЯ_ИБП @СЕРВЕР |
PV | Целое число, равное числу блоков питания, которые ИБП питает в этой системе. Большинство обычных компьютеров имеют один блок питания, и ИБП питает его, поэтому это значение будет 1. Если нужно только контролировать ИБП , который на самом деле не подаёт питание на эту систему нужно использовать значение 0. Это полезно, когда вы хотите, чтобы upsmon только оправлял уведомления об изменениях статуса ИБП |
ПОЛЬЗОВАТЕЛЬ | Имя пользователя |
ПАРОЛЬ | Пароль пользователя |
ТИП | Тип: master или slave |
Клиент MS Windows
WinNUT
WinNUT — The Windows Network UPS Tools
WinNUT is currently being replaced by a full port to Windows, part of the official NUT distribution. MSI packages are available too.
Windows NUT client
Графический интерфейс к WinNUT
Windows NUT client is a partial port of KNutClient to Windows using AutoIt scripting language.
Другие клиенты
Клиенты общаются с upsd по сети и делают полезные вещи с данными из драйверов. Существуют инструменты для доступа к командной строке и несколько специальных клиентов, которые можно запускать через ваш веб-сервер как программы CGI.
upsc — это быстрый способ узнать, правильно ли работают ваши драйверы и upsd .
upsc -L | список всех настроенных ИБП |
upsc ИМЯ_ИБП | список всех доступных переменных с их текущими значениями |
upsc ИМЯ_ИБП ИМЯ_ПЕРЕМЕННОЙ | текущее значение переменной |
Для подавления сообщения:
Нужно использовать следующую конструкцию:
upslog
upslog будет записывать информацию о состоянии из upsd в файл через заданные промежутки времени. Вы можете использовать это для создания графиков или отчетов с помощью других программ.
Пример вывода протокола в файл с помощью upslog
upsrw
upsrw требует прав администратора для изменения настроек оборудования. Обратитесь к upsd.users для получения информации об определении пользователей в upsd .
upscmd
upscmd требует прав администратора для запуска мгновенных команд. Чтобы определить пользователей и пароли в upsd , см. upsd.users
Веб мониторинг
Настройка
Zabbix
Мониторинг через Zabbix, работает через Zabbix агент.
Параметр | Имя переменной | Примечания |
---|---|---|
Имя драйвера NUT | driver.name | |
Модель ИБП | ups.model | |
Нагрузка (%) | ups.load | |
Напряжение батарей (В) | battery.voltage | |
Напряжение на входе (В) | input.voltage | |
Напряжение на выходе (В) | output.voltage | |
Номинальная нагрузка (ВА) | ups.power.nominal | |
Производитель ИБП | ups.mfr | |
Расчётное время работы от батарей (Мин.) | battery.runtime | |
Состояние | ups.status | Эта переменная может содержать несколько значений, вот пример: |
для этого введены переменные ups.status-2 … ups.status-5 , если эти переменные не содержат значений то возвращается 0
возвращается 0 , также она может содержать несколько значений, для этого введены переменные ups.alarm-2 … ups.alarm-10
Если переменная не поддерживается, возникает ошибка:
Welcome
The primary goal of the Network UPS Tools (NUT) project is to provide support for Power Devices, such as Uninterruptible Power Supplies, Power Distribution Units, Automatic Transfer Switch, Power Supply Units and Solar Controllers.
NUT provides many control and monitoring features, with a uniform control and management interface. If you are just getting acquainted with NUT, that page also explains the technical design and some possible set-ups.
More than 140 different manufacturers, and several thousands of models are compatible.
This software is the combined effort of many individuals and companies.
March 6, 2021: great thanks to Fosshost Org for providing virtual servers that we can use for diverse build farm!
November 13, 2020: announced handing of maintainership reins from Arnaud Quette to Evgeny «Jim» Klimov
March 9, 2016: NUT 2.7.4 released
April 16, 2015: NUT 2.7.3 released
April 17, 2014: NUT 2.7.2 released
February 18, 2014: new project nut-snmpagent
November 20, 2013: NUT 2.7.1 released
June 21, 2013: new client walNUT released
February 10, 2013: NUT source repository is converted to Git using reposurgeon
August 8, 2012: NUT 2.6.5 released
June 5, 2012: WMNut 0.64 released, and move hosting
May 31, 2012: NUT 2.6.4 released, including CVE-2012-2944 fix
May 10, 2012: WMNut 0.63 released
May 9, 2012: Official publication of Riello communication protocols
Download information
This section presents the different methods to download NUT.
Source code
|
| NUT-Monitor is part of NUT since NUT v2.4.1. It will further evolve toward the NUT Control Center. |
walNUT
A Gnome Shell extension to monitor/manage NUT-controlled devices.
Windows NUT client
Windows NUT client is a partial port of KNutClient to Windows using AUTOIT scripting language.
WinNUT
WinNUT is a partial port of the client side of Network UPS Tools (NUT) to Windows.
| WinNUT is currently being replaced by a full port to Windows, part of the official NUT distribution. MSI packages are available too. |
WMNUT
WMNut is a dockapp program to monitor multiple UPSs statistics through the NUT (Network UPS Tools) framework on Linux and other systems.
Network Management Systems (NMS) integration
There are at least three different scripts that add NUT support to Cacti:
collectd
The collectd system statistics collection daemon features a NUT plugin to collect statistics from UPSes.
Xymon (Hobbit) monitor
A NUT plugin is available.
MonAMI NUT plugin
A plugin to return UPS status to the MonAMI universal sensor framework.
Munin NUT plugin
A NUT plugin is available.
Nagios plugin
The check_ups plugin returns UPS status to the Nagios monitoring system using NUT.
Configuration GUIs
KNutSetting
KNutSetting is a visual KDE tool for configuring NUT — Network UPS Tools.
Other software projects
42ITy™
42ITy™ is a next generation platform for data center service optimization that aims to bridge the gap between the traditional silos of IT and facility management.
42ITy™ promotes an open, community based approach, to ensure broad and vendor agnostic support, while leveraging and giving back to leading open source software components including NUT (Network UPS Tools), ØMQ/Malamute & MariaDB, among others.
Network UPS Tools Services for Windows
Network UPS Tools Services for Windows provides tools and services to run an upsd -compatible server to report the status of UPS devices connected to a system or server in master mode. It allows other Network UPS Tools slave daemons and monitoring clients access to UPS information using standard Windows programing interfaces for easier setup.
nut-snmpagent
nut-snmpagent is an SNMP wrapper to expose the upsc output into Net-SNMP.
PyNUT
PyNUT is an abstraction class written in Python to access NUT (Network UPS Tools) server and execute commands without needing to know the communication protocol.
| PyNUT is part of NUT since NUT v2.4.1. |
RRDtool logging support
This patch adds RRDtool logging support to NUT. (See also [collectd].)
ups_control
A developing Python wrapper to upsc which can generate email and shutdown the machine.
UPS::Nut
A Perl module to talk to an UPS via NUT (Network UPS Tools) upsd.
| UPS::Nut is part of NUT since NUT v2.6.1. |
python-nut2
A fork and complete API overhaul of PyNUT, a Python library to allow communication with Network UPS Tools servers.
webNUT
A simple web interface for Network UPS Tools servers.
go.nut
A Golang library for interacting with NUT.
Hardware projects involving NUT
This is an incomplete list of the hardware known to embed NUT.
Dell PowerVault NX3500
Dell is using NUT to protect the new PowerVault NX3500 storage devices.
OpenGear
Opengear provides an advanced NUT integration into many models. There is also a video presentation of the NUT integration.
For more information on Opengear’s contributions to NUT, have a look at the acknowledgements information.
Synology
Synology has worked closely with Arnaud to integrate UPS support on all its devices.
Alcatel Lucent IPBX
Alcatel has been working for years with us (Patrick Agrain and Arnaud) to improve NUT integration into some of their IPBX.
Netgear ReadyNAS
The RAIDiator firmware for the ReadyNAS product line includes NUT to either monitor a local USB UPS, or to connect as a slave to a NUT server.
Thecus NAS
Thecus NAS firmware includes NUT for UPS support. The following list of devices is known to be supported.
Buffalo NAS
Buffalo TeraStation NAS (Business-class) include NUT for UPS support.
Eaton — Intelligent Power Controller
Eaton Intelligent Power Controller provides easy infrastructure monitoring solution, using the 42ITy™ Open Source data center monitoring software stack, which relies on NUT for power devices monitoring.
Legacy and discontinued projects
GKrellM NUT
Simple UPS monitoring plugin for GKrellM. Uses NUT (Network UPS Tools) for UPS connection.
PHP4 / GD / MySQL / jpgraph package to visualize logged UPS status data.
Eaton — Personal Solution Pac
NUT configuration and monitoring software for Eaton (previously MGE Office Protection Systems) units.
UPS Monitor
Multi-threaded python/GTK2 graphical monitoring application.
Notes
Client authors: send updates on your releases to the NUT users mailing list. We will also put a link to you in the news section of the top page when things change.
If you know of a project which should be listed, please send in the URL.