kakashisensei Posted July 1, 2020 Posted July 1, 2020 (edited) Just wanted to share a simple How To for setting up NUT if you plan on using unraid as the master and windows clients. I am using a Cyberpower UPS, so your settings may differ. Please note that this guide is based on unraid being a physical server. I wanted to have the UPS also shut off after the server shuts off, and power back on all the devices when the power goes back up. Because "Turn off UPS after shutdown" on apcusd doesn't work with Cyberpower UPS, I need to use NUT. Finding a simple windows client for NUT seemed challenging. Just wanted to find something with a gui and a little ini editting. The main windows binaries from the NUT team didn't seem straight forward. Other windows clients seemed deprecated or abandoned. 1. Install the NUT plugin from community applications. Turn off default UPS service in unraid. 2. In Settings -> NUT, configure it to be: Start Network UPS Tools service: Yes (when done configuring) Enable Manual Config Only: No UPS Mode: Netserver (if you want unraid to be master) UPS IP Addresss: 127.0.0.1 UPS Name: (whichever you like) UPS Monitor Username: (whichever you like) UPS Monitor Password: (whichever you like) UPS Slave Username: (whichever you like, perhaps needs to be something different than Monitor) UPS Slave Password: (whichever you like, perhaps needs to be something different than Monitor) UPS Driver: Usbhid-ups (for cyberpower, try different ones if you cannot get it to detect) UPS Port: auto (if using usb to server) Shutdown Mode: (whichever you like) Battery Runtime Left: Battery Level (maybe some users need to use Battery Level Low) Turn off UPS after shutdown: Yes (If you want UPS to shut off after server shuts off, and turn back on when power comes back on. If you want server to turn back on automatically, need to set bios power setting to On or Last State) Apply when done and hopefully it detects the UPS properly. If not, try different UPS driver settings. 3. In Windows client PC or VM, install winNUT utility 2.0.0.4a (https://code.google.com/archive/p/winnut/downloads) and follow this guide here to set it up from step 5: https://www.seriouslytrivial.com/2018/09/26/shutdown-windows-computer-and-synology-nas-using-winnut/ Example Monitor command: MONITOR [enter your ups name]@[your unraid server ip] 1 [monitor username] [monitor password] slave If it shows access denied in the log file, try using different UPS monitor username and password. By default I think it shuts down right away once on battery. If you want it to shutdown after a certain amount of time on battery, set Shutdown Delay to time in seconds. Forced will be a shutdown forcing programs to terminate. Normal can have prompts confirming programs to exit upon shutdown. For windows 7 and up, to make it run as a service, run configuration tool as administrator and set to run as service. Check services.msc that winNut service is working. I don't know if there is ways to change shutdown metric to be battery level/ runtime left on windows clients. If someone knows, please share. Thanks! Edited July 1, 2020 by kakashisensei 3 1 Quote
Nexus Posted July 12, 2020 Posted July 12, 2020 Thanks. This was helpful setting my Unraid Server to tell my PC (running blue iris) to shut down. I wish there was a better way to test it. Like to have the NUTS client on Unraid send the SHUTDOWN signal to my Windows PC. Quote
Energen Posted July 13, 2020 Posted July 13, 2020 I have not used the winNUT program but I do use the apcusbd (https://sourceforge.net/projects/apcupsd/files/) program on Windows to accomplish the same task. My configuration file only needs two lines for basic operation. UPSTYPE net DEVICE <UNRAID_IP>:3551 Just another option. Quote
sc0tt Posted June 15, 2021 Posted June 15, 2021 On 7/14/2020 at 12:56 AM, Energen said: I have not used the winNUT program but I do use the apcusbd (https://sourceforge.net/projects/apcupsd/files/) program on Windows to accomplish the same task. My configuration file only needs two lines for basic operation. UPSTYPE net DEVICE <UNRAID_IP>:3551 Whats your unraid setup look like? i have a UNRAID box and a Dell Server (windows) sharing the same UPS (connected by USB on dell server). I'm running apcusbd on the windows machine but cant get the unraid box configured correctly, Quote
Energen Posted July 20, 2021 Posted July 20, 2021 On 6/15/2021 at 6:25 AM, sc0tt said: Whats your unraid setup look like? i have a UNRAID box and a Dell Server (windows) sharing the same UPS (connected by USB on dell server). I'm running apcusbd on the windows machine but cant get the unraid box configured correctly, Apologies for the late response. My setup is actually reverse to yours. I have Unraid as the host for the UPS, i.e. the UPS is connected by USB to Unraid. In the grand scheme of things my Unraid server is the more important piece of equipment to handle in a power outage. Then on my Windows machine I have apcusbd running as the slave, and it gets it's power outage information from Unraid. I imagine though that your setup should be able to be accomplished, you would just have to figure out which combination of settings on Unraid works. In the UPS settings of Unraid you may have to play with the UPS cable and/or UPS type options to figure out how to connect to the Windows apcusbd. It seems that it's probably easier to do it my way though. Quote
E-ManN Posted August 20, 2024 Posted August 20, 2024 Hi ALL, I know this thread it a little bit old but I was wondering if I can get some help here. So a couple days ago I installed ... Network UPS Tools (NUT) for UNRAID - desertwitch from RYSZ's Repository and set it up and got it working perfectly on my UNRAID server as Master and configured winut client on my Windows Machines as slaves pointing to the nut server on UNRAID. Happy happy happy! This morning I reboot my UNRAID server and all came up fine except for my NUT server. Nut Service would not start. Checked Syslog and found this error ... "Aug 20 04:48:05 servername root: plugin: skipping: nut-2.8.2-x86_64-3master.ssl31.txz - Unraid version too low, requires at least version 6.13" I'm puzzled at this as I am running the lasted version UNRAID 6.12.11 anyhow I removed this plugin & installed a older version of NUT server from this thread ... using the plugin URL https://raw.githubusercontent.com/dmacias72/NUT-unRAID/master/plugin/nut.plg My UPS is once again being recognized by UNRAID and all clients seeing the UPS service on URNAID server. My Question is ... IS it possible to install Apache2-nut cgi webpage on UNRAID? It's not listed in CA. I would really like to get the detailed UPS Graphs and information if possible. Or can you suggest another GUI I can use to get Detailed UPS information? thanks, E Quote
Vr2Io Posted August 21, 2024 Posted August 21, 2024 (edited) On 8/20/2024 at 8:58 PM, E-ManN said: Or can you suggest another GUI I can use to get Detailed UPS information? Recommend home-assistant, almost all my SMART power meter ( different type ) were integrate to HA. My UPS haven't integrate because it locate away from Unraid and I don't want waste power to powerup a machine to monitor this. HA support NUT and APCUPSD too ( be host or client ), all reading figure will record and provide graph data. For example, something as below. Edited August 21, 2024 by Vr2Io Quote
E-ManN Posted August 22, 2024 Posted August 22, 2024 thanks for that Vr2Io Reading up on Home Assistant now. thanks, E Quote
Vr2Io Posted August 27, 2024 Posted August 27, 2024 (edited) Make some test on UPS with NUT and try install @Rysz NUT version, surprise have such big change and rich add-on function. I m not sure @E-ManN fix the issue or not. But really appreciate @Rysz work. Edited August 27, 2024 by Vr2Io Quote
E-ManN Posted August 28, 2024 Posted August 28, 2024 (edited) Vr2Io, Thanks for the follow-up. The Developer Rysz actually gave me the fix in the the main thread for the app. Top level was just had use the official NUT by Rysz and then go into the template and hit the RESET to default button, then re-enter NUT Server configuration. more details can be found here ... Edited August 28, 2024 by E-ManN 1 Quote
Ong Hui Hoong Posted December 15, 2024 Posted December 15, 2024 nice plugin, but it have a small problem i have facing, it didnt send out notification when it shutdown, maybe becos i run pfsense as vm. so the notification cant send out as pfsense is shutting down. is there a way to send the notification, then delay like 5 sec only call the shutdown? so that the notification and flow out via pfsense before pfsense shutdown. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.