meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:sw:nut:eaton_ellipse_650 [2024/12/16 21:31] – created niziak | linux:sw:nut:eaton_ellipse_650 [2024/12/17 09:23] (current) – niziak | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| </ | </ | ||
| + | <code bash> | ||
| + | apt install nut-server nut-cgi | ||
| + | </ | ||
| + | |||
| + | [[https:// | ||
| + | > SUPPORTED HARDWARE | ||
| + | > | ||
| + | > usbhid-ups brings USB/HID UPS monitoring to NUT on all platforms supporting USB through libusb. It should detect any UPS that uses the HID Power Device Class, but the amount of data will vary depending on the manufacturer and model. | ||
| + | > | ||
| + | > At the present time, usbhid-ups supports: | ||
| + | > the newer Eaton USB models, | ||
| + | > all MGE USB models, | ||
| + | |||
| + | ===== port= is ignored ===== | ||
| + | |||
| + | > This could be a device filesystem path like ''/ | ||
| + | |||
| + | ===== unpriv. LXC with Proxmox ===== | ||
| + | |||
| + | Bind USB BUS 1. Cannot bind single device because device number is floating. | ||
| + | Allow to access only UPS character device '' | ||
| + | |||
| + | ==== on PVE host ==== | ||
| + | |||
| + | <file ini / | ||
| + | lxc.cgroup2.devices.allow: | ||
| + | lxc.mount.entry: | ||
| + | </ | ||
| + | |||
| + | <file ini / | ||
| + | SUBSYSTEMS==" | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | udevadm control --reload-rules && udevadm trigger --attr-match=subsystem=usb | ||
| + | </ | ||
| + | |||
| + | Verify if permission are changed: | ||
| + | <code bash> | ||
| + | # ls -l / | ||
| + | total 0 | ||
| + | crw-rw-r-- 1 root | ||
| + | crw-rw-r-- 1 root | ||
| + | crw-rw-r-- 1 root | ||
| + | crw-rw-r-- 1 100000 111003 189, 10 Dec 17 08:03 011 | ||
| + | </ | ||
| + | |||
| + | ==== ON NUT's LXC ==== | ||
| + | |||
| + | Inside LXC NUT container: | ||
| + | |||
| + | <code bash> | ||
| + | groupadd -g 11003 lxc_usb_nut_shares | ||
| + | usermod -aG lxc_usb_nut_shares root | ||
| + | </ | ||
| + | |||
| + | |||
| + | To prevent error: | ||
| + | |||
| + | > libusb1: Could not open any HID devices: insufficient permissions on everything | ||
| + | |||
| + | give NUT access to USB device: | ||
| + | |||
| + | <code bash> | ||
| + | usermod -aG lxc_usb_nut_shares nut | ||
| + | </ | ||
| + | |||
| + | NOTE: ''/ | ||
| + | |||
| + | |||
| + | ===== usbhid-ups ===== | ||
| + | |||
| + | Test: | ||
| + | <code bash> | ||
| + | # nut-scanner | ||
| + | |||
| + | Scanning USB bus. | ||
| + | No start IP, skipping NUT bus (old connect method) | ||
| + | [nutdev1] | ||
| + | driver = " | ||
| + | port = " | ||
| + | vendorid = " | ||
| + | productid = " | ||
| + | product = " | ||
| + | serial = " | ||
| + | vendor = " | ||
| + | bus = " | ||
| + | </ | ||
| + | |||
| + | |||
| + | <file init / | ||
| + | maxretry = 3 | ||
| + | |||
| + | [eaton] | ||
| + | desc = "Eaton Ellipse ECO 650 VA" | ||
| + | driver = " | ||
| + | port = " | ||
| + | vendorid = " | ||
| + | productid = " | ||
| + | product = " | ||
| + | serial = " | ||
| + | vendor = " | ||
| + | bus = " | ||
| + | </ | ||
| + | |||
| + | <file ini / | ||
| + | MODE=netserver | ||
| + | |||
| + | </ | ||
| + | |||
| + | <file ini / | ||
| + | LISTEN * 3494 | ||
| + | </ | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | <file ini / | ||
| + | [admin] | ||
| + | password = hardpass | ||
| + | actions = SET | ||
| + | actions = FSD | ||
| + | instcmds = ALL | ||
| + | |||
| + | [upsmon] | ||
| + | password = hardpass | ||
| + | upsmon primary | ||
| + | |||
| + | [ha] | ||
| + | password = hardpass | ||
| + | </ | ||
| + | |||
| + | <file ini / | ||
| + | MONITOR eaton@localhost 1 upsmon hardpass primary | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | systemctl restart nut-server | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | # upsc eaton | ||
| + | Init SSL without certificate database | ||
| + | battery.charge: | ||
| + | battery.charge.low: | ||
| + | battery.runtime: | ||
| + | battery.type: | ||
| + | ... | ||
| + | </ | ||