NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
dbott67
Mar 03, 2008Guide
Using the ReadyNAS to create a Network UPS for PCs
The ReadyNAS can issue "UPS commands" to other devices, effectively allowing your UPS to be networked and shutdown client PCs. I've got my UPS connected to the NAS and setup using the procedure below.
Basically, you need to install WinNUT on your PC.
You also need to configure your ReadyNAS to communicate with the PC:
1. Connect the UPS to the NAS via USB.
2. Login to the web interface of your NAS.
3. Click SYSTEM --> POWER.
4. Scroll down to the UPS section.
5. Check the box that says "Enable network sharing of attached UPS"
6. Enter the IP address of the PC or the subnet (i.e. 192.168.1.0/24).

7. Edit the WinNUT configuration file (typically C:\Program Files\WinNUT\upsmon.conf). In my case, my ReadyNAS uses a static IP (192.168.1.2) and my computers use DHCP on the 192.168.1.0/24 subnet). I've edited out most author comments, just leaving the values I used:
Here's a couple of screenshots from my PC when the UPS gets disconnected:


Read this thread for more information/background on networking a UPS device:
viewtopic.php?t=16348
-Dave
Basically, you need to install WinNUT on your PC.
You also need to configure your ReadyNAS to communicate with the PC:
1. Connect the UPS to the NAS via USB.
2. Login to the web interface of your NAS.
3. Click SYSTEM --> POWER.
4. Scroll down to the UPS section.
5. Check the box that says "Enable network sharing of attached UPS"
6. Enter the IP address of the PC or the subnet (i.e. 192.168.1.0/24).

7. Edit the WinNUT configuration file (typically C:\Program Files\WinNUT\upsmon.conf). In my case, my ReadyNAS uses a static IP (192.168.1.2) and my computers use DHCP on the 192.168.1.0/24 subnet). I've edited out most author comments, just leaving the values I used:
# --------------------------------------------------------------------------
# MONITOR <system> <powervalue> <username> <password> ("master"|"slave")
MONITOR UPS@192.168.1.2 1 monuser pass slave
# --------------------------------------------------------------------------
# MINSUPPLIES <num>
MINSUPPLIES 1
# --------------------------------------------------------------------------
# NOTIFYCMD <command>
NOTIFYCMD "c:\\Program Files\\WinNUT\\alertPopup.exe"
# --------------------------------------------------------------------------
# POLLFREQ <n>
POLLFREQ 5
# --------------------------------------------------------------------------
# POLLFREQALERT <n>
POLLFREQALERT 5
# --------------------------------------------------------------------------
# HOSTSYNC - How long upsmon will wait before giving up on another upsmon
HOSTSYNC 15
# --------------------------------------------------------------------------
# DEADTIME - Interval to wait before declaring a stale ups "dead"
DEADTIME 15
# --------------------------------------------------------------------------
# NOTIFYMSG - change messages sent by upsmon when certain events occur
NOTIFYMSG ONLINE "UPS %s is getting line power"
NOTIFYMSG ONBATT "Someone pulled the plug on %s"
NOTIFYMSG LOWBATT "UPS has a low battery"
NOTIFYMSG SHUTDOWN "The system is being shutdown"
# --------------------------------------------------------------------------
# NOTIFYFLAG - change behavior of upsmon when NOTIFY events occur
NOTIFYFLAG ONLINE EXEC
NOTIFYFLAG ONBATT EXEC
NOTIFYFLAG LOWBATT EXEC
NOTIFYFLAG SHUTDOWN EXEC
# --------------------------------------------------------------------------
# RBWARNTIME - replace battery warning time in seconds
RBWARNTIME 43200
# --------------------------------------------------------------------------
# NOCOMMWARNTIME - no communications warning time in seconds
NOCOMMWARNTIME 300
# --------------------------------------------------------------------------
# FINALDELAY - last sleep interval before shutting down the system
FINALDELAY 5
Here's a couple of screenshots from my PC when the UPS gets disconnected:


Read this thread for more information/background on networking a UPS device:
viewtopic.php?t=16348
-Dave
30 Replies
Replies have been turned off for this discussion
- markg1Aspiranti followed the string above and got it to work!! thanks everyone for the tips.
two questions;
1 the NOTIFYFLAG values; do i need that? im not clear on what that does for me. at this point i dont have any value specified, like the default file.
2 in frontview, on the ups button, it shows i have 9 minutes of standby time on my ups. but....when i used the apc software, it said i had 25 minutes, which is more or less correct. i know this has nothing to do with winnut, but this is the first time i connected the ups to the readynas (figuring it better to protect the open files on the pc and use full journaling on the nas box). is the readynas just reading this incorrectly, or is that what it figures it will run before shutdown?
thanks,
mark - essdAspirant
super-poussin wrote: Just a little Information : it will not work with duo
Even though the UPS network monitor user interface element is disabled in FrontView for the Duo (I guess it's not part of Netgear's SOHO feature matrix?), so long as you have the root SSH add-in installed, it's actually very easy to enable UPS network monitoring for the Duo yourself:
1. Edit /etc/nut/upsd.conf to add the following line:
ACL localnet 192.168.0.1/24
...assuming that you want to permit UPS monitoring access to anyone on the 192.168.0.xxx subnet. If you are on a different network, modify the address and CIDR notation appropriately.
2. In the same file, edit the line that reads "ACCEPT monitor localhost readynas" and add the word "localnet" to the end, such that you have:
ACCEPT monitor localhost readynas localnet
3. Edit the file /etc/nut/upsd.users. Adjust the "allowfrom" line to read as follows:
allowfrom = localhost localnet
4. Tell the UPS daemon to reload its configuration files with "/sbin/upsd -c reload".
From there, it should be working! You can then install NUT on another system and monitor the UPS connected to your ReadyNAS. The following line in my client system's upsmon.conf worked very well:
MONITOR UPS@<insert_your_NAS_ip_here> 1 monuser pass slave - THNAspirantDave, thanks for the great instructions, but I am a little hesitant to go down that road, because super-poussin said:
So I was wondering if the SNMP for The DUO V 1.0 addon will enable me to do your procedure with your instructions on my XP and Vista machines.super-poussin wrote: Just a little Information : it will not work with duo - essdAspirant
THN wrote: Dave, thanks for the great instructions, but I am a little hesitant to go down that road, because super-poussin said: super-poussin wrote: Just a little Information : it will not work with duo
When super-poussin wrote that, I believe he was referring only to the built-in FrontView user interface for enabling UPS sharing (which is present in only the NV+ models). It's true that the Duo does not have this option exposed in the UI, but my instructions (two posts up) should have exactly the same effect as that UI setting.
You don't need to install the SNMP add-on to do this. I have a Duo myself and I can confirm that the UPS sharing is working using the instructions above without any extra add-ons. (SNMP might allow you to monitor other things on the device, but it's not needed in this particular instance.)
If you're nervous, you can always make a backup copy of those config files so that you can revert in the case of trouble (which I'd recommend as a good general practice anyway). - THNAspirantThanks for the reply essd. I had read your instructions, which are very clear and concise. However, I wanted to kind of stay away from installing the root access. Hence my question regarding the SNMP. If installing that, will allow me to monitor my NAS from a PC, that's really all I need.
When you say:
does that mean that it'll allow me to monitor my NAS UPS signals from a networked PC?but it's not needed in this particular instance.) - super_poussinVirtuoso
essd wrote: THN wrote: Dave, thanks for the great instructions, but I am a little hesitant to go down that road, because super-poussin said: super-poussin wrote: Just a little Information : it will not work with duo
When super-poussin wrote that, I believe he was referring only to the built-in FrontView user interface for enabling UPS sharing (which is present in only the NV+ models). It's true that the Duo does not have this option exposed in the UI, but my instructions (two posts up) should have exactly the same effect as that UI setting.
You don't need to install the SNMP add-on to do this. I have a Duo myself and I can confirm that the UPS sharing is working using the instructions above without any extra add-ons. (SNMP might allow you to monitor other things on the device, but it's not needed in this particular instance.)
If you're nervous, you can always make a backup copy of those config files so that you can revert in the case of trouble (which I'd recommend as a good general practice anyway).
I think you can now with Raidiator 4.1.5 - nightstrmAspirantAnyone here have any tips for building upsmon on OSX 10.5? I'd rather build from scratch than use fink to install.
- dbott67Guide
- dbott67GuideUpdated my original post here to reflect Infinite's work:
viewtopic.php?f=28&t=35314&p=196117#p195952 - FarmerTedAspirantSorry to bring up an old thread, but it seems the WinNUT installers for Windows don't work for Win7 64-bit. Is there another method to network UPSes so that the ReadyNAS and Win7 machines can talk? I don't see an "apcupsd" package for ReadyNAS, unfortunately. This would be a great add-on since it's actively maintained for all OSes, including Windows.
Does anyone know of a client for Win7 64-bit that can talk to NUT running on the ReadyNAS?
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!