From Hentschel
| Line 2: | Line 2: | ||
sudo apt-get install nut | sudo apt-get install nut | ||
* configure nut, link with instructions https://wiki.ipfire.org/addons/nut/detailed | * configure nut, link with instructions https://wiki.ipfire.org/addons/nut/detailed | ||
| − | + | * configuration files in ''/etc/nut'' | |
| + | ** configure UPS type in ''nut.conf'' | ||
| + | <pre> | ||
| + | MODE=standalone | ||
| + | </pre> | ||
** configure ''ups.conf'' | ** configure ''ups.conf'' | ||
<pre> | <pre> | ||
| Line 13: | Line 17: | ||
** configure the UPS daemon via ''upsd.conf'' | ** configure the UPS daemon via ''upsd.conf'' | ||
<pre> | <pre> | ||
| − | LISTEN 127.0.0.1 3493 | + | LISTEN 127.0.0.1 3493 |
| − | LISTEN 192.168.1.108 3493 | + | LISTEN 192.168.1.108 3493 |
</pre> | </pre> | ||
** and add users to ''upsd.users'' | ** and add users to ''upsd.users'' | ||
<pre> | <pre> | ||
| + | [admin] | ||
| + | password = xxxxx | ||
| + | actions = SET FSD | ||
| + | instcmds = ALL | ||
| + | upsmon master | ||
| + | [ups] | ||
| + | password = xxxxx | ||
| + | upsmon slave | ||
</pre> | </pre> | ||
Revision as of 01:24, 20 May 2018
- install nut
sudo apt-get install nut
- configure nut, link with instructions https://wiki.ipfire.org/addons/nut/detailed
- configuration files in /etc/nut
- configure UPS type in nut.conf
MODE=standalone
- configure ups.conf
[tripplite-1500lcd] driver = usbhid-ups port = auto desc = "The black UPS in the rack upstairs"
- configure the UPS daemon via upsd.conf
LISTEN 127.0.0.1 3493 LISTEN 192.168.1.108 3493
- and add users to upsd.users
[admin]
password = xxxxx
actions = SET FSD
instcmds = ALL
upsmon master
[ups]
password = xxxxx
upsmon slave