Дано: Uubntu 18.04 и Ippon 800
Делаем:
1) sudo apt install nut
2) В файл /etc/nut/nut.conf
MODE=standalone
3) В файл /etc/nut/ups.conf
[ippon-800]
driver = blazer_usb
port = auto
desc = "Ippon Back Power Pro 800"
default.battery.voltage.high = 13.60
default.battery.voltage.low = 10.60
offdelay = 12
ondelay = 7
4) В файл /etc/nut/upsd.users
[soarin]
password = PASSWORD
upsmon master
actions = SET
instcmds = ALL
5) В файл /etc/nut/upsmon.conf
MONITOR ippon-800@localhost 1 soarin PASSWORD master
В итоге на Uubntu 18.04 получаем
systemctl status nut-server
● nut-server.service - Network UPS Tools - power devices information server
Loaded: loaded (/lib/systemd/system/nut-server.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2018-05-02 15:12:09 +07; 28s ago
Process: 21213 ExecStart=/sbin/upsd (code=exited, status=0/SUCCESS)
Main PID: 21214 (upsd)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/nut-server.service
└─21214 /lib/nut/upsd
мая 02 15:12:09 MOD upsd[21213]: fopen /var/run/nut/upsd.pid: No such file or directory
мая 02 15:12:09 MOD upsd[21213]: listening on 127.0.0.1 port 3493
мая 02 15:12:09 MOD upsd[21213]: listening on ::1 port 3493
мая 02 15:12:09 MOD upsd[21213]: listening on 127.0.0.1 port 3493
мая 02 15:12:09 MOD upsd[21213]: listening on ::1 port 3493
мая 02 15:12:09 MOD upsd[21213]: Can't connect to UPS [ippon-800] (blazer_usb-ippon-800): No such file or directory
мая 02 15:12:09 MOD upsd[21213]: Can't connect to UPS [ippon-800] (blazer_usb-ippon-800): No such file or directory
мая 02 15:12:09 MOD upsd[21214]: Startup successful
Ставим на виртуалку Ubuntu 16.04 получаем (всё работает)
systemctl status nut-server
● nut-server.service - LSB: Network UPS Tools initscript
Loaded: loaded (/etc/init.d/nut-server; bad; vendor preset: enabled)
Active: active (running) since Ср 2018-05-02 14:44:49 +07; 11min ago
Docs: man:systemd-sysv-generator(8)
Process: 2088 ExecStop=/etc/init.d/nut-server stop (code=exited, status=0/SUCCESS)
Process: 2096 ExecStart=/etc/init.d/nut-server start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/nut-server.service
├─2104 /lib/nut/blazer_usb -a ippon-800
└─2106 /lib/nut/upsd