Computing/NUT: Difference between revisions

From Cricalix.Net
(Created page with "== Network UPS == === Installation === <syntaxhighlight lang="bash"> apt install nut nut-monitor </syntaxhighlight> === Configuration === For the Eaton Pro UPS, '''/etc/nut/ups.conf'''<syntaxhighlight lang="ini"> [eaton650] driver = "usbhid-ups" port = "auto" vendorid = "0463" productid = "FFFF" vendor = "EATON" bus = "005" </syntaxhighlight>Vendorid/productid/vendor/bus are not critical for single use case. Then '''/etc...")
 
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 20: Line 20:
LISTEN 127.0.0.1 3493
LISTEN 127.0.0.1 3493
LISTEN ::1 3493
LISTEN ::1 3493
</syntaxhighlight>And finally, /etc/nut/nut.conf<syntaxhighlight>
</syntaxhighlight>And finally, '''/etc/nut/nut.conf'''<syntaxhighlight>
MODE=standalone
MODE=standalone
</syntaxhighlight>
</syntaxhighlight>
Line 30: Line 30:


NUT Monitor can be run to get a graphical interface to the UPS status.
NUT Monitor can be run to get a graphical interface to the UPS status.
Using NUT will disable KDE's ability to communicate with the UPS and show the state of charge.
=== Alternate installation ===
Set MODE=netclient in /etc/nut/nut.conf
No entry in /etc/nut/ups.conf
Add a MONITOR ups@synologyip 0 monuser secret secondary to upsmon.conf
Set MINSUPPLIES to 0 in upsmon.conf
systemctl restart nut-monitor

Latest revision as of 12:10, 17 March 2024

Network UPS

Installation

apt install nut nut-monitor

Configuration

For the Eaton Pro UPS, /etc/nut/ups.conf

[eaton650]
        driver = "usbhid-ups"
        port = "auto"
        vendorid = "0463"
        productid = "FFFF"
        vendor = "EATON"
        bus = "005"

Vendorid/productid/vendor/bus are not critical for single use case. Then /etc/nut/upsd.conf

LISTEN 127.0.0.1 3493
LISTEN ::1 3493

And finally, /etc/nut/nut.conf

MODE=standalone

Runtime

systemctl start nut-server

The script behind nut-server will spin up new systemctl services to handle the UPS.

NUT Monitor can be run to get a graphical interface to the UPS status.

Using NUT will disable KDE's ability to communicate with the UPS and show the state of charge.

Alternate installation

Set MODE=netclient in /etc/nut/nut.conf

No entry in /etc/nut/ups.conf

Add a MONITOR ups@synologyip 0 monuser secret secondary to upsmon.conf

Set MINSUPPLIES to 0 in upsmon.conf

systemctl restart nut-monitor