Showing results for synology nas nut client
Search instead for synology as nut client
🌐
Reddit
reddit.com › r/synology › help configuring synology nas as nut client
r/synology on Reddit: Help configuring Synology NAS as NUT Client
April 11, 2023 -

My setup: I have a Synology NAS and a Raspberry Pi running Home Assistant Yellow, with the NUT add-on. My Raspberry Pi is configured as the master, because in the event of a power outage, I want to power off my server but keep my home automation online. I found a potentially helpful article online for how to configure this, but no matter what, I can't get it to work.

On the Home Assistant side, I have NUT configured with the following settings:

users:
  - username: monuser
    password: secret
    upsmon: master
    instcmds:
      - all
    actions: []
devices:
  - name: ups
    driver: usbhid-ups
    port: auto
    config: []
mode: netserver
shutdown_host: false
list_usb_devices: false
log_level: trace
i_like_to_be_pwned: true
leave_front_door_open: false

On the Synology side, configurable settings are basically nonexistent, but I am adding in the internal IP address of my Pi, and still getting a Cannot connect to the network UPS server error.

I'm not sure what else to try to troubleshoot. I thought that by setting the UPS name as ups, username as monuser and password as secret in my Pi, then it would work.

Top answer
1 of 4
6
To set up the Synology as an UPS client, when the UPS server is not another Synology, I had to use SSH to edit 2 files in DSM. They have plenty of comments explaining the various settings. /usr/syno/etc/ups/upsd.users /usr/syno/etc/ups/upsmon.conf I went down that rabbit hole and eventually got it working... only to later click on something in the UPS section of Control Panel which broke all my previous work. After trying again, and failing, I gave up and bought a 2nd UPS.
2 of 4
4
If you’re trying to use a NUT server (like Home Assistant, or RPi) as a UPS source for a Synology NAS, here are the critical gotchas that aren’t obvious: 1. Synology “UPS server” = NUT client (but very strict) In DSM, select “Synology UPS server” This is actually a NUT client mode, not Synology-to-Synology only 2. You MUST use these exact credentials Synology hardcodes: Username: monuser Password: secret If your NUT server uses anything else, it won’t connect. 3. Your UPS name MUST be ups This is the biggest hidden issue. Your NUT config must expose: ups@ Example: devices: - name: ups # critical If you use any other name (like apcsmart), Synology will fail with: 4. Port 3493 must be reachable NUT runs on TCP 3493 Make sure it’s exposed (especially if running in Docker / HA add-on) 5. If using Home Assistant NUT add-on You’ll need to allow weak password: i_like_to_be_pwned: true TL;DR Synology expects this exact NUT endpoint: ups@ with monuser / secret If all three don’t match (name + user + pass), it won’t work. This setup works reliably once aligned. Hope this helps you save the time I spent digging on this and other threads to get it figured out.
🌐
Synology Community
community.synology.com › enu › forum › 1 › post › 160183
Synology NAS as a NUT-client
April 25, 2023 - Hi! Come and join us at Synology Community. A place to answer all your Synology questions. Ask a question or start a discussion now.
Discussions

Synology NAS to nut-server (none Synology) | Synology Community
Hi! Come and join us at Synology Community. A place to answer all your Synology questions. Ask a question or start a discussion now. More on community.synology.com
🌐 community.synology.com
August 9, 2023
Network UPS Tools (NUT) with Synology NAS and CyberPower UPS
After puzzling for a while how to configure this add-on, I came across this which is a good good configuration guide which I found only needs a small change in order to work: change host: localhost to host: a0d7b954-nut. I hope this helps others. More on community.home-assistant.io
🌐 community.home-assistant.io
5
5
April 11, 2023
Synology as a NUT client
Hi! Come and join us at Synology Community. A place to answer all your Synology questions. Ask a question or start a discussion now. More on community.synology.com
🌐 community.synology.com
Network UPS Tools. Synology. How to run the NUT client in OS Home Assistant
The essence of the problem and why is it necessary? On Synology, usb and upscmd interact with upsd using a client/server model. Unfortunately, pscd is not available in the Synology Disk Station Manager (DSM) operating system. Reading Synology NAS Beep or Problems with the UPS server after updating ... More on community.home-assistant.io
🌐 community.home-assistant.io
0
3
December 3, 2021
🌐
GitHub
gist.github.com › jhelmink › ba54e11e6a1b9f448a4a9a5c4cb45b89
Proxomox - NUT Client - Synology NAS.md
All you need to install is the nut-client package, not all of 'nut'. apt install nut-client. You say: <system> is anything@your.nas.ip.address This actually needs to be ups@your.nas.ip.address - That's the name Synology NUT gives to your UPS: 'ups'.
🌐
Tsew
blog.tsew.com › home › configuring synology nas to access another nut server for power management
Configuring Synology NAS to Access Another NUT Server for Power Management -
September 11, 2024 - To create a user that your Synology NAS can use to connect to the NUT server, open your upsd.users file on the server (usually located in /etc/nut/upsd.users), and add the following block: ... password = secret: Synology defaults to secret - you can probably hack around on the NAS to change this. upsmon secondary: This line grants the user monuser the upsmon rights in “secondary” mode. The “secondary” mode means that this client (in this case, the Synology NAS) can monitor the UPS but is not responsible for controlling or shutting down the UPS.
🌐
SynoForum
synoforum.com › resources › tutorials
Tutorial - Windows NUT client (incl GUI) - Network UPS | SynoForum.com - The Unofficial Synology Forum
December 16, 2021 - tested beta (last version) also - works, as expected LATEST ver is 100% OK 3. Download the: WinNUT-Setup.msi 4. Install the: WinNUT-Setup.msi 5. SETUP of the WinNUT client · NUT host: IP of your NAS, where is running the 'Network UPS server' ...explained below NUT Port: leave 3493 UPS Name: ups Polling interval: 1 Login and Password: two possible options: a) default login is: monuser b) default password is: secret or c) when you did customisation defined in this thread you will find these credentials in /usr/syno/etc/ups/upsd.users ......
🌐
Mathan
iain.mathan.ca › setting-up-an-apc-ups-synology-and-nut
Setting up an APC UPS, Synology and NUT | IainBlog
Put in the IP addresses of the computers you want to send shutdown messages to. While it says, “Permitted Synology NAS Devices”, you can use Network UPS Tools (NUT) clients in both macOS and Raspberry Pi OS to monitor
🌐
Synology Community
community.synology.com › enu › forum › 1 › post › 162184
Synology NAS to nut-server (none Synology) | Synology Community
August 9, 2023 - Once you have your UPS named [ups] in /etc/nut/ups.conf and you have the monuser in /etc/but/upsd.users then Synology will connect to it like it is a Synology NAS UPS
🌐
Home Assistant
community.home-assistant.io › third party integrations
Network UPS Tools (NUT) with Synology NAS and CyberPower UPS - Third party integrations - Home Assistant Community
April 11, 2023 - After puzzling for a while how to configure this add-on, I came across this which is a good good configuration guide which I found only needs a small change in order to work: change host: localhost to host: a0d7b954-nut.…
Find elsewhere
🌐
SynoForum
synoforum.com › forums › dev, mods & hacks
Synology NAS as WinNUT client/slave/secondary | SynoForum.com - The Unofficial Synology Forum
July 11, 2025 - This simple command? echo -e "\n$USER ALL=(ALL) NOPASSWD: ALL\n" | sudo tee -a /etc/sudoers I probably would have settled for this: echo -e "\n$USER ALL=(ALL) NOPASSWD: /sbin/poweroff, /sbin/reboot, /sbin/shutdown\n" | sudo tee -a /etc/sudoers From some obscure forum Initial tests look good. Now on to set up NUT scripts to put my Synobaby to sleep.
🌐
Synology Community
community.synology.com › enu › forum › 1 › post › 149169
Synology as a NUT client
Hi! Come and join us at Synology Community. A place to answer all your Synology questions. Ask a question or start a discussion now.
🌐
Zanshin Dojo
blog.zanshindojo.org › nut
Synology + Proxmox + NUT UPS - Zanshin Dojo
January 2, 2022 - NUT server plus NUT client on Proxmox and Synology for homelab UPS
🌐
Freek
freek.ws › home › synology ups tips and tricks
Synology UPS Tips and Tricks - Freek.ws
March 17, 2025 - Unfortunately, the Synology DSM web interface limits the number of “Permitted DiskStation Devices” to five, but this is an arbitrary Synology limit, not a NUT limit. If you need to allowlist more than five NUT clients, you can do so by logging in to your Synology via SSH and editing the following file as root:
🌐
J O H N R A . M E
johnra.me › 2024 › 05 › 16 › synology-ups-as-nut-primary
Synology + UPS as NUT Primary – J O H N R A . M E
May 16, 2024 - Click “Permitted DiskStation Devices” and enter the client IP address – in my case, this would be my linux server’s fixed IP address. Click “OK” then click “Apply”. You now have NUT service running on Synology as primary.
🌐
Gooksu
gooksu.com › 2022 › 01 › esxi-7-x-nutclient-to-query-upsmon-on-synology
ESXi 7.x NutClient to query upsmon on Synology – Justin Lim
[ups] driver = usbhid-ups port = auto #pollonly #community = name #snmp_version = v2c #mibs = auto #secName = Synology #secLevel = noAuthNoPriv #authProtocol = MD5 #authPassword = 111111111111 #privProtocol = DES #privPassword = 222222222222 ... You can change the password and the user to anything you like. Now the configuation is complete. Lets now work on the ESXi7 side. Please download the latest NUT client from https://rene.margar.fr/2012/05/client-nut-pour-esxi-5-0/ I downloaded the file locally and scp the file to my ESXi host into /tmp/nut
🌐
WunderTech
wundertech.net › home › synology nas › use a synology nas as a nut server
Use a Synology NAS as a NUT Server - WunderTech
May 5, 2025 - This setup will be different based on the client device. 1. Configure the Synology NAS to read the UPS through the USB cable. This will ensure that the NAS is aware of the UPS being on battery power. 2. Select Enable Network UPS Server and in the Permitted Synology NAS Devices section, enter the IP addresses of the devices that can listen to this NUT ...
🌐
Diktio Solutions
diktiosolutions.eu › home › synology nut
Synology NUT - Diktio Solutions
February 18, 2025 - upsrw -s battery.charge.low=<new value> -u <user, defined in upsd.conf NAS> -p <password user in upsd.conf> <name ups, see NAS /usr/syno/etc/ups/ups.conf>@<ip address NAS> Check the following instructions to install and configure NUT client on macOS, see instructions. Check the following instruction to install and configure NUT client on Linux, see instructions. ... Synology Script S.M.A.R.T.
🌐
Home Assistant
community.home-assistant.io › configuration
Network UPS Tools. Synology. How to run the NUT client in OS Home Assistant - Configuration - Home Assistant Community
December 3, 2021 - The essence of the problem and why is it necessary? On Synology, usb and upscmd interact with upsd using a client/server model. Unfortunately, pscd is not available in the Synology Disk Station Manager (DSM) operating system. Reading Synology NAS Beep or Problems with the UPS server after updating ...
🌐
Synology Community
community.synology.com › enu › forum › 1 › post › 188123
Using WinNUT with UPS to shut down both NAS and PC when power fails | Synology Community
May 31, 2024 - Put the IP address of your PC into Permitted Devices (don't worry about your PC not being made by Synology). There's also a 'Restart automagically when power resumes' setting in Hardware & Power -> General. Now install WinNUT on your PC. That's 'Windows Network UPS Tools' a freeware, open source GitHub project with a variety of networked tools for Windows to manage UPS communications and actions. The WinNUT project can be found at https://github.com/nutdotnet/ and you need the Win-NUT Client.
🌐
Reddit
reddit.com › r/synology › use synology nas as ups server to safely power down your other servers/computers
r/synology on Reddit: Use Synology NAS as UPS Server to safely power down your other servers/computers
May 31, 2020 -

Hi everyone,

I know there's information on using our Synology NAS' as UPS servers to power down other Synology devices, but it took me some time to piece together how to use Synology to safely power down my Mac Mini server in the event of a power outage so I figured I'd put it into a writeup here to maybe help some others.

WHY: Most UPS' only have one USB port to control a single device in the event power outage and the battery running low. If you're like me, I have my Synology NAS and other devices (i.e. Mac server) that I want all powered down safely.

My setup: These steps are not specific to my hardware/OS/UPS, but figured I'd provide for context.

  • APC 600VA UPS

  • Synology DS918+

  • Mac mini (running Ubuntu server 20.04, not Mac OS X) - this is not specific to Linux, it will work for Mac, Windows servers/computers

  • Your router needs to be also attached to the UPS otherwise your NAS and computers/servers won't be able to communicate.

Synology Setup

  1. Connect NAS to UPS via USB cable.

  2. Open up DSM and go to Control Panel > Hardware & Power > UPS (tab)

  3. Enable UPS Support and check "Enable network UPS server"

4. Click "Permitted DiskStation Devices" and input the IP addresses of your servers/computers you would like to power down. In my case, I input the IP of my Mac Mini.

5. Apply settings. If you click, "Device Information" you should see your UPS info. (May require a restart of the NAS, I can't remember)

Server/Computer Setup

Linux

Synology is running a NUT Server (http://networkupstools.org) and in this part we have to install the Nut-client to monitor the NAS. I am walking through setup of the Nut-client on Linux, but the same basic steps apply for Mac/Windows. The NUT website has download/install instructions specific to Windows/Mac.

1.Install NUT

sudo apt-get install nut

2.Modify /etc/nut/nut.conf file to specify your computer/server as a client instead of server. Edit this specific line:

MODE=netclient

3.Add Synology address and credentials to /etc/nut/upsmon.conf

MONITOR ups@192.168.0.102 1 monuser secret slave

*Note: these credentials can be changed or you can add a user by SSHing into the NAS and modifying /usr/syno/etc/ups/upsd.users.

4. Lastly, start the nut-client service.

service nut-client restart

Now if I unplug my UPS (to simulate power outage), my Mac will update with the status of the UPS and also will safely shutdown when Synology triggers. I left my Synology settings to trigger shutdown when the UPS battery runs low, but you can check "Time before DiskStation enters Safe Mode" in step 3 above and put a specific time to shutdown.

Windows (Thanks to u/xnaas for providing Windows instructions)

  1. Download and install the latest binary https://github.com/networkupstools/nut-package-archive/tree/master/windows

During install, uncheck the box for Install libUSB driver

2. Go to the etc folder of your NUT installation folder

Default: C:\Program Files (x86)\NUT\etc

3. Rename or copy nut.conf.sample to nut.conf

4. Rename or copy upsmon.conf.sample to upsmon.conf

5. Edit MODE inside nut.conf

MODE=netclient

6. Edit upsmon.conf

Find the SHUTDOWNCMD section

Default: SHUTDOWNCMD "/sbin/shutdown -h +0"

Change the default to something like SHUTDOWNCMD

SHUTDOWNCMD "C:\\WINDOWS\\system32\\shutdown.exe -s -t 0"

Customize the time (-t 0) to your liking. Optionally add -f to force the shutdown. If you want to hibernate, replace -s with -h.

Find the MONITOR section and add the following

MONITOR ups@192.168.1.150 1 monuser secret slave

Make sure to update the IP to your Synology IP

7. Copy libgcc_s_dw2-1.dll from the bin subfolder to the sbin subfolder

8. Download OpenSSL library https://indy.fulgan.com/SSL/

9. Copy libeay32.dll and ssleay32.dll to the sbin subfolder

10. Launch services.msc from Run (WIN+R)

11. Find the service called Network UPS Tools and Start it

Mac

To be added later. In the meantime, this wiki should be a good guide: https://github.com/networkupstools/nut/wiki/NUT-on-Mac-OS-X

Hope this helps someone!

Top answer
1 of 5
22
Worth mentioning that your network connectivity (WiFi or switch) also needs to be on the UPS otherwise your client may not get the shutdown message. Obvious, but easy to overlook. 😀
2 of 5
14
Warning: this may make clients shutdown unexpectedly. I set this up as described and thought it was working for a few months until one day the UPS got unplugged. (Strangely, I had done this before to test it and it worked perfectly then.) The Synology and Linux client shut down as expected, but after the UPS was plugged back in, the Linux client kept immediately shutting down at the tty screen during boot. Turns out that for some reason, the UPS continued forcing a shutdown on the Linux client as soon as it was connected even though the UPS was reconnected to mains. This mailing list discussion on the issue asserts that the problem is with Synology's implementation of NUT. If you ever run into clients shutting down unexpectedly with a Synology as a NUT server, here's how to check if this is what's causing it: in the client: press ESC during boot to get into GRUB, go to advanced options, boot into recovery mode, open a root shell get the ID of the boot with journalctl --list-boots journalctl --boot -1 | grep upsmon (replace -1 with the number in the left column of --list-boots) look for the following: Feb 12 23:44:53 HOSTNAME upsmon[807]: Communications with UPS ups@10.0.0.141 established Feb 12 23:44:53 HOSTNAME upsmon[807]: UPS ups@10.0.0.141: forced shutdown in progress Feb 12 23:44:53 HOSTNAME upsmon[807]: Executing automatic power-fail shutdown Feb 12 23:44:53 HOSTNAME upsmon[807]: Auto logout and shutdown proceeding Alternative guide to setting up Synology as a NUT client instead I used the guide here (skip to 'Install NUT') to set up Linux as the server and Synology as the client instead and it seems to work. Note that there may be an additional step to get this to work over a network: If nut-server is failing to start on boot and systemctl status nut-server reports "no listening interface available", edit the LISTEN in /etc/nut/upsd.conf to listen on all interfaces with LISTEN 0.0.0.0 3493 Or just start nut-server after the network comes up: systemctl edit nut-server.service [Unit] Wants=network-online.target After=network-online.target Credit goes to Tim Jackson Additional steps for Cyberpower UPS connected via USB Does journalctl -u nut-server show this error pattern every hour? Feb 13 18:15:04 HOSTNAME upsd[892]: Connected to UPS [ups]: usbhid-ups-ups Feb 13 18:15:21 HOSTNAME upsd[892]: Data for UPS [ups] is stale - check driver Feb 13 18:45:23 HOSTNAME upsd[892]: Send ping to UPS [ups] failed: Resource temporarily unavailable Try this: In /etc/nut/ups.conf add pollinterval = 15 to the [ups] block, like so: [ups] driver = usbhid-ups port = auto desc = "Cyber Power System, Inc. CP1500 AVR UPS" pollinterval = 15 In /etc/nut/upsd.conf, set MAXAGE 30 In /etc/nut/upsmon.conf set DEADTIME 30 Based on information from https://nmaggioni.xyz/2017/03/14/NUT-CyberPower-UPS/ and https://raspberrypi.stackexchange.com/questions/66611/nut-cyberpower-data-stale . Note that while these 2 pages say that MAXAGE goes in upsmon.conf, the man page only lists it as an option for upsd.conf.
🌐
GitHub
github.com › gawindx › WinNUT-Client › issues › 47
How to setup WinNUT Client on Win 10 with synology · Issue #47 · gawindx/WinNUT-Client
December 10, 2020 - How to setup WinNUT Client on Win 10 with synology#47 · Copy link · Labels · good first issueGood for newcomersGood for newcomers · witzker · opened · on Dec 10, 2020 · Issue body actions · I put in the NUT Host IP As port for Synology 3493 Smart-UPS C 1500 as shown in Synology Host ·
Author   gawindx