Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi everyone,
I'm just investigating the possibility of being able to make the DNS shut down when using a UPS and it's running on battery power. I've looked it up and it seems there's a daemon for Linux for APC (apcupsd) that should allow for this. I'm a linux newbie though, so I'm not sure if it's possible to run it on the linux version running on the DNS. I would assume it would have to be compiled for this system but I'm not sure how I would go about it.
I haven't gotten the UPS yet, but was wondering if anyone here has experience with this already that could give me a few pointers.
Thanks in advance,
Pedro
Offline
NUT is another UPS tool that could be used http://eu1.networkupstools.org/
There was some discussion on this previously http://dns323.kood.org/forum/t1407-support.html
Offline
I feel like an idiot for not doing a thorough search before posting. That post you mentioned seems a little bit dated and didn't look like there was a final solution. I just looked through the list of optware packages and it shows apcupsd_3.14.3-1_arm.ipk. Does this mean that it was compiled for the 323 and maybe we could use that for what we need?
It's disappointing that UPS support seems to be very lacking, as the NAS is a prime candidate since it runs 24/7 usually.
Offline
I seem to remember that apcupsd needed a kernel module (something like USB_HID [human interface device] )
and NUT, although harder to configure, was easier to compile because it did not rely on additional
kernel modules.
You are correct, there was no final solution posted for that thread. I have worked around the
problem by connecting my UPS to my Linkstation Pro NAS running debian and apcupsd. In the
event of a power failure, the Linkstation Pro shuts down the DNS-323 with a remote command.
Offline
mig wrote:
You are correct, there was no final solution posted for that thread. I have worked around the
problem by connecting my UPS to my Linkstation Pro NAS running debian and apcupsd. In the
event of a power failure, the Linkstation Pro shuts down the DNS-323 with a remote command.
I was hoping to have the DNS connected to the UPS by the USB port, so that I didn't need to have a computer turned on 24/7. It would kind of defeat the purpose of having the NAS in the first place. Right now I'm working with it in an office setting so I can't adventure too far, though I am thinking of getting a personal one that I can play with, as I can see there's lots of potential in it.
Offline
Viracocha wrote:
I was hoping to have the DNS connected to the UPS by the USB port, so that I didn't need to have a computer turned on 24/7.
Yes, USB direct connection is the preferred solution, but until someone compiles apcupsd or NUT to run on
the DNS-323, I'll have to settle for the remote shutdown solution.
Last edited by mig (2008-04-24 06:01:40)
Offline
The apcupsd ipk is in optware/dns323 feed.
I just added nut to optware with usb and snmp support, it should be in the feed shortly. With optware build environment, not difficult at all to build the ipks.
See http://www.nslu2-linux.org/wiki/Optware/Dns323 for optware ipkg setup instructions.
Cheers!
Offline
I just got apcupsd running on my unit.
Since I'm using chroot Debian, I did:
apt-get install apcupsd
apt-get install apcupsd-cgi
mkdir -p /usr/local/modules
cd /usr/local/modules
wget http://dev.skcserver.de/dns323/modules_ … /usbhid.ko
/sbin/insmod /usr/local/modules/usbhid.ko
mount -t usbfs none /proc/bus/usb
cd /usr/local/src
wget 'http://voxel.dl.sourceforge.net/sourceforge/apcupsd/apcupsd-3.14.4.tar.gz'
gunzip -dc apcupsd-3.14.4.tar.gz | tar vfx -
cd apcupsd-3.14.4/examples
sh make-hiddev
vi /etc/apcupsd/apcupsd.conf
Edited:
UPSNAME apc1500
UPSCABLE usb
UPSTYPE usb
LOCKFILE /var/lock
UPSCLASS standalone
UPSMODE disable
/etc/init.d/apcupsd start
Note that there was a lot of stuff between those steps, so I am not 100% sure it covers everything.
I also added the following to /linuxrc:
mount -t usbfs none /proc/bus/usb
/sbin/insmod /usr/local/modules/usbhid.ko
/etc/init.d/apcupsd start >>/var/log/apcupsd.log 2>&1
I also linked in the cgis that were installed in:
/usr/lib/cgi-bin/apcupsd
into my lighttpd document directory so I could access the status via a web browser.
Hope this will be of use to someone.
Last edited by shadow349 (2008-06-02 04:31:41)
Offline