× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Re: Using the ReadyNAS to create a Network UPS for PCs

tijgert
Guide

Re: Using the ReadyNAS to create a Network UPS for PCs

I'm having some difficulty figuring out if I'm doing it right or wrong...

I have "MONITOR UPS@192.168.0.230 1 monuser pass slave" in my Winnut settings, like most people here, but I don't know if this applies to my setup.

I have a RNDU6000 NAS and an APC BE700G-GR UPS.
Do all the UPS's use 'UPS' as the name?
The IP is the IP for my NAS, that's the only thing I was sure about *gg*.
But then there's the login/pw... do I ALWAYS use this monuser/pass combo? (and why?) Or do I fill in what I use in my NAS? (login admin, PW {somethingsecret}), Or perhaps my main computer login/PW?

My logfile for when I use the monuser/pass combo says:

Level INFO 09/22/2011 05:44:42 Detected OS as Windows NT
Level NOTICE 09/22/2011 05:44:42 Network UPS Tools upsmon 2.0.0b
Level INFO 09/22/2011 05:44:42 UPS: UPS@192.168.0.230 (slave) (power value 1)
Level INFO 09/22/2011 05:44:42 Config Load: MINSUPPLIES set to 1
Level INFO 09/22/2011 05:44:42 Config Load: NOTIFYCMD set to c:\Program Files\WinNUT\alertPopup.exe
Level INFO 09/22/2011 05:44:42 Config Load: POLLFREQ set to 5
Level INFO 09/22/2011 05:44:42 Config Load: POLLFREQALERT set to 5
Level INFO 09/22/2011 05:44:42 Config Load: HOSTSYNC set to 15
Level INFO 09/22/2011 05:44:42 Config Load: DEADTIME set to 15
Level INFO 09/22/2011 05:44:42 Config Load: NOTIFYMSG set to ONLINE : UPS %s is getting line power
Level INFO 09/22/2011 05:44:42 Config Load: NOTIFYMSG set to ONBATT : Someone pulled the plug on %s
Level INFO 09/22/2011 05:44:42 Config Load: NOTIFYMSG set to LOWBATT : UPS has a low battery
Level INFO 09/22/2011 05:44:42 Config Load: NOTIFYMSG set to SHUTDOWN : The system is being shutdown
Level INFO 09/22/2011 05:44:42 Config Load: NOTIFYFLAG set to ONLINE : EXEC
Level INFO 09/22/2011 05:44:42 Config Load: NOTIFYFLAG set to ONBATT : EXEC
Level INFO 09/22/2011 05:44:42 Config Load: NOTIFYFLAG set to LOWBATT : EXEC
Level INFO 09/22/2011 05:44:42 Config Load: NOTIFYFLAG set to SHUTDOWN : EXEC
Level INFO 09/22/2011 05:44:42 Config Load: RBWARNTIME set to 43200
Level INFO 09/22/2011 05:44:42 Config Load: NOCOMMWARNTIME set to 300
Level INFO 09/22/2011 05:44:42 Config Load: FINALDELAY set to 5

And nothing else. So I don't see anything about things being polled correctly anywhere...

Anyone can set me straight?
Message 26 of 31
cruisingdog
Aspirant

Re: Using the ReadyNAS to create a Network UPS for PCs

So I wanted to add that I've managed to get 2 readyNas units to automatically power down as well as my Windows7 PC. Here's what I did:

Firstly my system is configured thus:
ReadyNas Duo: 192.168.1.8
ReadyNAS Ultra 2: 192.168.1.11 <- UPS is plugged into this NAS via USB.

1) Intalled WinNut 2.0.4 on my PC and did exactly as the forum members here suggested (however I chose to run it as a service [there's a checkbox in the config tool]):

I added the MONITOR line's:

MONITOR UPS@192.168.1.11 1 pcuser mypassword slave

Added NOTIFYMSG stuff:

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"

Added NOTIFYFLAG stuff:

NOTIFYFLAG ONLINE EXEC
NOTIFYFLAG ONBATT EXEC
NOTIFYFLAG LOWBATT EXEC
NOTIFYFLAG SHUTDOWN EXEC

2) I then edited the scripts on my ReadyNas Duo.
/etc/nut/ups.conf
[UPS]
driver = hidups
port = /dev/usb/hiddev0

/etc/nut/upsd.users
[monuser]
password = pass
allowfrom = localhost
upsmon master

/etc/nut/upsd.conf
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32

ACCEPT monitor localhost
ACCEPT monitor mynetwork
REJECT all all

3) I then edited the scripts on my ReadyNas Ultra2 (This is the NAS that has my UPS plugged into the USB port)
/etc/nut/ups.conf
[UPS]
driver = hidups
port = /dev/usb/hiddev0

/etc/nut/upsd.users
[monuser]
password = pass
allowfrom = localhost
upsmon master
[pcuser]
password = mypassword
allowfrom = mynetwork
upsmon slave

/etc/nut/upsd.conf
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACL mynetwork 192.168.1.0/24

ACCEPT monitor localhost mynetwork
ACCEPT monitor mynetwork
REJECT all all

--------------------

The information mynetwork should be replaced with your workgroup name and the password being your domain password. I'm not sure if I've got all the scripts correct. However it all works really well. Power down the AC outlet and my PC shuts itself down and then the NAS's shut down too when the UPS power goes into fail mode. I've set it to 40% threshold in the frontview web portal (as the snapshot shows at the beginning of this forum). BTW thanks for all the other's postings. Very useful stuff.
Message 27 of 31
skim32
Tutor

Re: Using the ReadyNAS to create a Network UPS for PCs

*EDIT*
I found the answer to my own question. It appears that as of Windows Vista and Windows 7, Microsoft has stopped allowing interactive services. Interactive services is the ability for a service to interact with the desktop. That is why I was not getting popup alerts. I found the best solution was to add "Start WinNUT Ups Monitor" to the Startup folder. That way Winnut starts as an application on start up and popup notifications. If you don't care about popup notifications, then you can just install Winnut as a service.


So I got WINNUT to work properly when running it as an application, but having issues when running it as a service. When running it as a service it appears that the pop up alerts stop working. I think Winut is actually working because if I veiw the logs after I disconnect the UPS, it shows that event. It's just that it no longer alerts me. Anyone have this issue and know of a fix?
Message 28 of 31
edwin2005
Aspirant

Re: Using the ReadyNAS to create a Network UPS for PCs

can this also made working with a VMWARE ESXi server? Using a ESXi that is using a readynas pro6 as datastore. Aim would be to achive that the esx server shut's down first and afterwards the readynas.
Any help appriciated
Message 29 of 31
StarkJohan
Aspirant

Re: Using the ReadyNAS to create a Network UPS for PCs

I know this is an ancient thread but google pointed me here and hopefully this can be helpful to others in the future.
For OSX users I've made an AppleScript solution to avoid the hassle of installing package managers or build tools.

I've posted more information here: http://www.readynas.com/forum/viewtopic.php?t=35314
Message 30 of 31
edwin2005
Aspirant

Re: Using the ReadyNAS to create a Network UPS for PCs

anyway, thanks!
Message 31 of 31
Top Contributors
Discussion stats
Announcements