🌐
Synology
kb.synology.com › en-global › DSM › help › DSM › AdminCenter › system_hardware_ups
UPS | DSM - Knowledge Center - Synology
Synology Knowledge Center offers comprehensive support, providing answers to frequently asked questions, troubleshooting steps, software tutorials, and all the technical documentation you may need.
🌐
Reddit
reddit.com › r/synology › using synology nas as a ups server
r/synology on Reddit: Using Synology NAS as a UPS server
August 25, 2023 -

I'm currently running a DS923+ NAS, with a router PC and several network equipments.

And, I recently purchased a UPS from APC for extra safety, and connected to the NAS. (I checked the energy consumption and confirmed that the UPS can sustain all connected electronics)

However, I was wondering if there's a way to also inform my router PC for safe shutdown, since I also have some Proxmox containers running on it.

So, what I want is:

  1. The UPS must be connected to the Synology NAS via USB, for extra safety

  2. If the NAS shutdowns, the Proxmox server should also shutdown. Maximum time delay is 5 min. (If the NAS shutdowns after 5 mins of power outage, the Proxmox should shutdown within 10 mins (5+5) from the initial power outage)

  3. When the power is restored, the NAS automatically turns on. If so, the Proxmox server should also start within 5 mins

Can anyone suggest a way to make this working?

What I'm currently thinking of is using a cron job for step 2, and the NAS sending WOL packets when the NAS starts, making the Proxmox server to start with it.

Thanks in advance!

🌐
Synology
kb.synology.com › en-us › DSM › help › DSM › AdminCenter › system_hardware_ups
UPS | DSM - Synology Knowledge Center
On the window that appears, enter the IP addresses of the client Synology NAS. Click OK. Click Apply to save settings. Now the network UPS server can obtain UPS information and relay it to the client Synology NAS that is using the UPS device.
🌐
Synology Knowledge Center
kb.synology.com › en-us › APM › help › APM › Set_up_UPS_service
Set up UPS services - Knowledge Center - Synology
Go to Control Panel > Hardware & Power > UPS and select Enable network UPS server to allow the ActiveProtect appliance to relay UPS information to the client backup appliances. Click Permitted Synology ActiveProtect appliance Devices and enter ...
🌐
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 - If you own a Synology NAS and a UPS that has monitoring, you can configure your Synology NAS as a NUT server (network UPS tools). This means that it can send communication through the network to devices that are listening and they’ll be able to monitor the UPS through the NAS for UPS battery information.
🌐
Thejesh GN
thejeshgn.com › 2023 › 08 › 31 › using-ups-with-synology-and-home-assistant-using-nut
Using UPS with Synology and Home Assistant using NUT – Thejesh GN
August 31, 2023 - Add it using the UI. Give the IP address of the Synology server on LAN, which is acting like a NUT server on port is 3493. For username and password, log into Synology using SSH and look into /usr/syno/etc/ups/upsd.users file.
🌐
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.
🌐
Synology
synology.com › en-us › compatibility
Synology Products Compatibility List - UPS
Drive compatibility for expansion units may differ from that of their host devices. The drives on this list are intended for use in the expansion unit with the specified Synology system.
🌐
Marius Hosting
mariushosting.com › synology-why-do-you-need-an-ups
Synology: Why Do You Need an UPS? – Marius Hosting
January 24, 2025 - Synology UPS Server: A Synology UPS Server is another Synology product which is connected to a USB or SNMP UPS.
Find elsewhere
🌐
Mathan
iain.mathan.ca › setting-up-an-apc-ups-synology-and-nut
Setting up an APC UPS, Synology and NUT | IainBlog
While it says, “Permitted Synology NAS Devices”, you can use Network UPS Tools (NUT) clients in both macOS and Raspberry Pi OS to monitor · You do need to give those clientsand your NAS static IP addresses, which they have on my network · Setting up the client on Raspberry Pi is pretty straight forward. The link provided covers setting up as both server and client if you ever wanted to use a Raspberry Pi as a server.
🌐
NAS STORE
nasstore.eu › boost-your-synology-nas-how-to-connect-a-ups-to-your-synology-nas-for-data-safety
Boost Your Synology NAS: How to Connect a UPS to Your Synology NAS for Data Safety - NAS STORE
March 2, 2025 - If other devices share the UPS, Synology can broadcast UPS status to them: Enable “Enable network UPS server.” · Add the IP addresses of devices needing power status. After setup, test your configuration: Unplug the UPS from the wall to simulate power loss.
🌐
Freek
freek.ws › home › synology ups tips and tricks
Synology UPS Tips and Tricks - Freek.ws
March 17, 2025 - If you have multiple devices connected ... as a ‘network UPS server.’ Under the hood, Synology runs Network UPS Tools (NUT), an open-source UPS monitoring tool....
🌐
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 - Next enable UPS Server. This gets your NAS sending LAN messages from the UPS to your PC. Put the IP address of your PC into Permitted Devices (don't worry about your PC not being made by Synology).
🌐
Unraid
forums.unraid.net › home › unraid os support › general support › ups settings (network ups server on synology)
UPS Settings (network UPS server on synology) - General Support - Unraid
May 8, 2025 - Hello I have a APC smart UPS connected through USB to my synology nas and i will like also to connect my unRAID. Could you please help me to set it up correctly, and in the case of power failure, i need the unraid to close safely and then shut down the synology nas if the battery is drained. the ...
🌐
Synology
kb.synology.com › en-us › DSM › tutorial › How_to_set_up_UPS_for_high_availability_cluster
How do I set up a UPS to protect a high-availability cluster from power anomalies? - Synology Knowledge Center
March 26, 2024 - Synology Knowledge Center offers comprehensive support, providing answers to frequently asked questions, troubleshooting steps, software tutorials, and all the technical documentation you may need.
🌐
Othmanbenomar
othmanbenomar.dev › blog › 2022 › 12 › 20 › how-to-setup-an-ups-with-a-synology-nas
How to setup an UPS with a Synology NAS - Othman Benomar
December 20, 2022 - Apart from the usual 3-2-1 backup rule that anyone should have in mind (look at this if you don’t know what this is), it is highly preferable to combine your NAS with a backup power supply (ie an UPS) that will let your NAS shutdown safely in case of electricity cut and before any data loss occurs. In addition to that Synology NAS come with a great capability: It can broadcast an emergency shutdown to any device within it’s network using NUT.
🌐
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 - If you’re using a Synology NAS ... are some essential configuration steps to take. NUT is a popular tool used to manage and monitor uninterruptible power supplies (UPS), ......
🌐
Sindastra
sindastra.de › home › how to connect linux server to “synology ups” server
How to connect Linux server to "Synology UPS" server - Sindastra's info dump
January 14, 2022 - Make sure “Enable UPS support” is checked, and “Enable network UPS server” is also checked. Click the “Permitted Synology NVR/NAS Devices” button, and enter the (local) IP address of your Linux server.
🌐
Reddit
reddit.com › r/synology › connected my ups to usb... what is "enable network ups server"?
r/synology on Reddit: connected my UPS to USB... what is "enable network ups server"?
January 31, 2020 -

So I hooked my UPS to my DS218+ and it's detected, it shows the battery left in details and all that.

But now that it's no longer hooked to my PC, the monitoring software is obviously useless. I expected that.

However there is this option in the UPS options on the NAS "enable network ups server" which make me believe there is a way to somehow monitor the UPS through the NAS via SNMP or some other way?

does anyone have some experience with this and can point me into the right direction? thx.

🌐
Marius Hosting
mariushosting.com › add-cyberpower-ups-support-to-your-synology-nas
Add CyberPower UPS Support To Your Synology NAS – Marius Hosting
January 3, 2022 - Synology UPS Server: A Synology UPS Server is another Synology product which is connected to a USB or SNMP UPS.