Good evening everyone, I'm trying to configure my QNAP TS-451D2 as a NUT server, so that the UPS in use can power a second NAS (set as a slave).
Unfortunately, when I set the IP address of the master UPS, the slave tells me that the IP is "not navigable."
I followed these instructions: https://www.qnap.com/it-it/how-to/faq/article/how-do-i-set-up-multiple-nas-devices-using-one-ups
But I can't get much out of it.
Should I perhaps install some applications in VMs or containers?
And if so, what would you recommend?
Thank you so much!
Using NUT with a QNAP NAS and other devices - NAS
[SOLVED] - NUT Client configuration -> help needed for shutdown Proxmox host | Proxmox Support Forum
Any QNAP user using Windows NUT Server?
Using QNAP NAS as UPS Server - change nut username
Videos
I am aware QNAP units support both UPS Master & Slave mode. I'd like to configure QNAP unit in UPS slave mode, but this requires a network server, therefore I am looking for a NUT server for Windows...... any idea?
I'm having problems connecting my OPNsense device as a NUT client to a QNAP NAS that acts as a UPS server. I've installed the os-nut plugin. My configuration is:
QNAP IP: 192.168.1.115 and OPNsense LAN IP was added to UPS Client Notification List (on the QNAP NAS)
OPNsense:
General Nut Settings:
Enable Nut: (checked)
Service Mode: netclient
Name: qnapups
Listen Address: 127.0.0.1
UPS Type: Netclient
Enable: (checked)
IP Address: 192.168.1.115
Port: 3493
Username: admin
Password: 123456
Contents of /usr/local/etc/nut/upsmon.conf:
MONITOR qnapups@192.168.1.115 1 admin 123456 slave
SHUTDOWNCMD "/usr/local/etc/rc.halt"
POWERDOWNFLAG /etc/killpower
I can't connect to the UPS and Nut Diagnostics/UPS Status panel is empty.
Broadcast message from the console:
Communications with UPS qnapups@192.168.1.115:3493 lost
UPS qnapups@192.168.1.115:3493 is unavailable
From the log:
upsmon[64406]: UPS [qnapups@192.168.1.115:3493]: connect failed: Write error: Broken pipe
The MONITOR statement (in upsmon.conf) is the exact same as the one for the nut client on a Raspberry Pi, which does connect to the QNAP NAS.
Anyone have any ideas on what I'm missing with my configuration?
About 3 years ago I made a post on how to setup winNut and a qnap NAS Quick Network UPS slave setup for windows using QNAP nas as a USP master
The issue is that original guide will not work with the admin account in a disabled state.
These steps will resolve the issue.
<<<<< 2022 UPDATE >>>>>
So... since all the security issues we are all likely running with the admin account disabled, this will break the configuration.
This is how to fix it.
-
Enabled admin account and log in said account via winscp to the nas.
-
Go to /etc/.config/ups
-
Find the file named upsd.users and download it to your pc. also make a backup of the original file (just raname to something like OG_upsd.users)
Edit the file and add these lines at the bottom and save
-
[monuser] password = upspasswordyoulike allowfrom = upsmon slave192.168.1.1
-
Your file should look like this
Stop and start the network ups service from the settings UI
You can now setup NUT with your new user and password like
MONITOR qnapups@192.168.1.1 1 monuser upspasswordyoulike slave
save the nut config file and start NUT, now it should be working as before disabling admin account.
Go back into the nas user settings and disabled the Admin account again.
<<<<<< Old Guide with admin account enabled >>>>>>
Hello Guys. After a few HOURS, I got it working.
So, I got a new APC UPS with USB, plugged it to my Qnap nas and it was up and running with out any setup. But I also wanted to control my PC shutdown (also plugged to the same UPS box) so QNAQ USP master to the rescue... Not yet =P
First, you will need WinNUT ( https://code.google.com/archive/p/winnut/downloads latest release is from years ago but works fin in latest win 10 build)
Then after install you need to edit the upsmon.conf file from within the Winnut config tool.
now comes the funny part, in that file you are supposed to input your UPS name, IP, user and password...
so for QNAP nas boxes the ups name is ALWAYS qnapups. so qnapups@yournasIP great.
User and password, one thinks this is the admin user for the qnap ups? WRONG, its a hard coded user/password
user: admin
Password: 123456
The final format you need to input in the config file is
"MONITOR qnapups@yournasIP 1 admin 123456 slave"
save the file, get back to the winnut config util and start it as a service (you can mess around with the shutdown delay and stuff also)
now test, pull the plug from the wall on your UPS and you should get a shutdown signal to your PC in a few mins (unless you set up a shorter time in the winnut config tool)
I can get a few screenshots if anyone needs them!