Quick Network UPS slave setup for windows using QNAP nas as a USP master
Adding Remote Access to Network UPS Tools - RESOLVED
Using NUT with a QNAP NAS and other devices - NAS
Using UPS Slave/Master With Non QNAP Devices
Videos
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!
<<<<< 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 = 192.168.1.1 upsmon slave
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.
I have a rack that has 4 qnap NAS's in it and other things like a VMWARE host.
I have the master/slave ups running great on all 4 QNAP devices but since the UPS only has 1 USB port, I cannot do power management outside of the QNAP systems.
Does anyone have a solution for this? Is there perhaps a utility by QNAP which would extend the simplicity of their UPS management to other devices?
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!