Keith_Beef
March 2nd, 2009, 11:45 PM
I'm struggling with monitoring the UPS supply to a ReadyNAS box...
After reading everything I can find about nuts, apcupsd and gkrellm I'm just becoming more confused.
The ReadyNAS has a page in Frontview (its web-based configuration tool) that should share UPS data over the network:
I connected the signal cable from the UPS to the USB connector on the back of the ReadyNAS NV+ and then looked in Frontview.
In Status - Health, I see:
UPS 1 APC Back-UPS XS 1300 LCD, Battery charge: 100%, 31 minutes
and in System - Power I can set:
Select shutdown on battery low threshold: Auto
Enable network monitoring of attached UPS
Hosts allowed access: 192.168.0.2/32
Now I just need a daemon on my main computer, listening for a signal sent from the ReadyNAS in the even of a power failure.
I tried making a configuration file for nut:
#/etc/nut/upsmon.conf
# define the ups to monitor and the permissions
MONITOR myups@192.168.0.4 1 upsmaster zaphod slave
# define the shutdown comand
SHUTDOWNCMD "/sbin/shutdown -h +10"
but this seems to do nothing... and I don't see any activity in /var/log/daemon.log either.
Anybody able to enlighten me?
K.
After reading everything I can find about nuts, apcupsd and gkrellm I'm just becoming more confused.
The ReadyNAS has a page in Frontview (its web-based configuration tool) that should share UPS data over the network:
I connected the signal cable from the UPS to the USB connector on the back of the ReadyNAS NV+ and then looked in Frontview.
In Status - Health, I see:
UPS 1 APC Back-UPS XS 1300 LCD, Battery charge: 100%, 31 minutes
and in System - Power I can set:
Select shutdown on battery low threshold: Auto
Enable network monitoring of attached UPS
Hosts allowed access: 192.168.0.2/32
Now I just need a daemon on my main computer, listening for a signal sent from the ReadyNAS in the even of a power failure.
I tried making a configuration file for nut:
#/etc/nut/upsmon.conf
# define the ups to monitor and the permissions
MONITOR myups@192.168.0.4 1 upsmaster zaphod slave
# define the shutdown comand
SHUTDOWNCMD "/sbin/shutdown -h +10"
but this seems to do nothing... and I don't see any activity in /var/log/daemon.log either.
Anybody able to enlighten me?
K.