Reply

Re: RN314 & WinNUT

claynz
Aspirant

RN314 & WinNUT

Basically I have a Cyberpower UPS connected to my PC via a USB cable and the UPS is not a network UPS.

I would like to use WinNUT to configre the NAS but can not get it to work correctly without errors

 

UPS [UPS@192.168.1.6]: connect failed: Connection failure: Unknown error

Level NOTICE 10/14/2021 15:27:34 UPS UPS@192.168.1.6 is unavailable

 

the settings that was suggested to use are

 

# --------------------------------------------------------------------------
# MONITOR <system> <powervalue> <username> <password> ("master"|"slave")

MONITOR UPS@192.168.1.6 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

 

Have I missed out something? do I need a USB cable plugged in to the UPS and NAS?

Any help would be appreacited and when it comes to these sort of things I'm a dummy...

 

Model: RN31400|ReadyNAS 300 Series 4- Bay (Diskless)
Message 1 of 3
StephenB
Guru

Re: RN314 & WinNUT


@claynz wrote:

Basically I have a Cyberpower UPS connected to my PC via a USB cable and the UPS is not a network UPS.

Have you tried this the other way around (connecting the UPS to the NAS, and enabling remote network monitoring on the NAS)?  Then use WinNUT to shut down the PC when the UPS battery drains?

 

I don't think the NAS is running a upsd server when the UPS is not connected to the NAS itself.

Message 2 of 3
Sandshark
Sensei

Re: RN314 & WinNUT


@claynz wrote:

Basically I have a Cyberpower UPS connected to my PC via a USB cable and the UPS is not a network UPS.

I would like to use WinNUT to configre the NAS but can not get it to work correctly without errors

 

UPS [UPS@192.168.1.6]: connect failed: Connection failure: Unknown error

Level NOTICE 10/14/2021 15:27:34 UPS UPS@192.168.1.6 is unavailable

 

the settings that was suggested to use are

 

# --------------------------------------------------------------------------
# MONITOR <system> <powervalue> <username> <password> ("master"|"slave")

MONITOR UPS@192.168.1.6 1 monuser pass slave

 

UPS [UPS@192.168.1.6]: connect failed: Connection failure: Unknown error

Level NOTICE 10/14/2021 15:27:34 UPS UPS@192.168.1.6 is unavailable

 


OK, so are these the settings on the PC or the NAS?  The setting above is for monitoring a remote UPS at 192.168.6.1.  But you should not be going in and doing that directly on the NAS, and the rest looks like it's for the the PC.  If the UPS is on the PC, the PC installation has to be the server and use the GUI capability to monitor a remote NAS and give the IP address and password.

 

But I agree with @StephenB that you might have better luck with the UPS on the NAS and the PC monitoring it, mostly because the version of NUT in the NAS is rather old and may not be able to talk to a newer version of WinNUT.

Message 3 of 3
Top Contributors
Discussion stats
  • 2 replies
  • 140 views
  • 0 kudos
  • 3 in conversation
Announcements