[Nut-upsuser] Errors attempting to run NUT on Ubuntu 18.04.5

S R skahtee at hotmail.com
Mon Jul 18 01:27:59 BST 2022


Hi all, I’ve searched online for a solution to my issue with no luck...hoping someone here can help.


Connected a Cyberpower SX950U UPS to my Synology NAS.

Configured UPS on Synology NAS:

[cid:image002.png at 01D89A1B.B3AAA850]


Installed and configured NUT on Ubuntu 18.04.5 Server:
1.       Installed NUT: sudo apt-get install nut
2.       Modified /etc/nut/nut.conf with mode=netclient
3.       Added MONITOR ups at 192.168.0.102 1 USER PASS slave to /etc/nut/upsmon.conf

Receiving the following errors:

user at ubuntu:~$ sudo systemctl status nut-client.service
● nut-monitor.service - Network UPS Tools - power device monitor and shutdown controller
   Loaded: loaded (/lib/systemd/system/nut-monitor.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2022-07-17 19:00:19 EDT; 2min 8s ago
  Process: 25805 ExecStart=/sbin/upsmon (code=exited, status=0/SUCCESS)
Main PID: 25839 (upsmon)
    Tasks: 2 (limit: 4915)
   CGroup: /system.slice/nut-monitor.service
           ├─25835 /lib/nut/upsmon
           └─25839 /lib/nut/upsmon

Jul 17 19:00:18 ubuntu upsmon[25835]: Startup successful
Jul 17 19:00:18 ubuntu systemd[1]: Stopped Network UPS Tools - power device monitor and shutdown controller.
Jul 17 19:00:19 ubuntu upsmon[25805]: fopen /var/run/nut/upsmon.pid: No such file or directory
Jul 17 19:00:19 ubuntu upsmon[25805]: UPS: ups at 192.168.0.200 (slave) (power value 1)
Jul 17 19:00:19 ubuntu upsmon[25805]: Using power down flag file /etc/killpower
Jul 17 19:00:18 ubuntu systemd[1]: Starting Network UPS Tools - power device monitor and shutdown controller...
Jul 17 19:00:19 ubuntu upsmon[25839]: Login on UPS [ups at 192.168.0.200] failed - got [ERR ACCESS-DENIED]
Jul 17 19:00:18 ubuntu systemd[1]: nut-monitor.service: Can't open PID file /var/run/nut/upsmon.pid (yet?) after start: No such file or directory
Jul 17 19:00:18 ubuntu systemd[1]: nut-monitor.service: Supervising process 25839 which is not our child. We'll most likely not notice when it exits.
Jul 17 19:00:19 ubuntu systemd[1]: Started Network UPS Tools - power device monitor and shutdown controller.

Are USER and PASS what I use to log into my Synology NAS?

The fie /var/run/nut/upsmon.pid only contains a single line. Is this correct? Why does the monitor service report No such file or directory?

user at ubuntu:~$ cat /var/run/nut/upsmon.pid
25839

Sincerely appreciate anyone’s input. Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20220718/9acc0311/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: C121B98A36984765838569BB1A3A4270.png
Type: image/png
Size: 30800 bytes
Desc: C121B98A36984765838569BB1A3A4270.png
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20220718/9acc0311/attachment-0001.png>


More information about the Nut-upsuser mailing list