Настройка NUT 2.4.3 с UPS Eaton ENV400, ENV600, ENV800, ENV1000, ENV1400, ENV2000 в RHEL/CentOS 6
Для настройки NUT 2.4.3 для мониторинга и управления источниками бесперебойного питания UPS Eaton ENV400, ENV600, ENV800, ENV1000, ENV1400, ENV2000 в RHEL/CentOS 6 выполните следующие действия:
1. Подключите UPS к хосту при помощи USB-кабеля:
# lsusb Bus 005 Device 002: ID 0665:5161 Cypress Semiconductor USB to Serial
2. Подключите репозиторий EPEL;
3. Установите nut rpm и nut-client rpm:
# yum install nut nut-client
4. Настройте udev:
# cp /lib/udev/rules.d/62-nut-usbups.rules /etc/udev/rules.d/
5. Перезагрузите хост:
# reboot
6. Измените /etc/ups/nut.conf:
MODE = standalone
7. Измените /etc/ups/ups.conf (см вывод lsusb):
[myups]
driver = blazer_usb
desc = "Eaton NV 1400H"
bus = "005"
port = "002"
vendorid = 0665
productid = 5161
8. Измените /etc/ups/upsd.conf:
LISTEN 127.0.0.1 3493
9. Измените /etc/ups/upsd.users:
[monuser] password = monpassword actions = SET instcmds = ALL upsmon master
10. Измените /etc/ups/upsmon.conf:
MONITOR myups@localhost 1 monuser monpassword master MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h +0" POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/killpower RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 0
11. Запустите службу ups:
# service ups start
12. Добавьте службу ups в автозагрузку:
# chkconfig --level 35 ups on
13. Просмотр состония UPS Eaton:
# upsc myups@localhost battery.voltage: 26.00 battery.voltage.nominal: 24.0 beeper.status: enabled device.type: ups driver.name: blazer_usb driver.parameter.bus: 005 driver.parameter.pollinterval: 2 driver.parameter.port: 002 driver.parameter.productid: 5161 driver.parameter.vendorid: 0665 driver.version: 2.4.3 driver.version.internal: 0.03 input.current.nominal: 6.0 input.frequency: 49.9 input.frequency.nominal: 50 input.voltage: 237.2 input.voltage.fault: 237.2 input.voltage.nominal: 230 output.voltage: 234.0 ups.delay.shutdown: 30 ups.delay.start: 180 ups.load: 9 ups.productid: 5161 ups.status: OL ups.temperature: 25.0 ups.type: offline / line interactive ups.vendorid: 0665
14. Ошибка Can't claim USB device [0665:5161]: could not detach kernel driver from interface 0: Operation not permitted
Причина – не настроен udev.


