April 6, 201214 yr Do I have an option to let apcupsd act as a server? Is NETSERVER on? It is enabled by default in all the packages unMENU installs.
April 6, 201214 yr Author Do I have an option to let apcupsd act as a server? Is NETSERVER on? It is enabled by default in all the packages unMENU installs. Also in the plugin version? Do I have to change any special setting if I want to make apcupsd on the unraid server as server in a server/client configuration?
May 10, 201214 yr I just set this up and it was really quite simple (which is good for someone like me ). Got the plugin setup the way I wanted it (USB cable, shutdown timer, blah blah). Then I went here and downloaded the windows flavor: http://www.apcupsd.com And installed it on my windows XP PC. Went through install and edited my conf file on the windows box for the app (edit step is part of the install), and basically all I had to edit is the following: UPSTYPE net DEVICE x.x.x.x:3551 where x.x.x.x is your unraid box IP address. Now in the systray of my windows box I see a pic of a power plug when on regular power, and when unraid is on battery this icon changes to a battery. During my test, I pulled power on the ups (I've read where this is probably not the best way to test but I was impatient ) and after a couple of minutes (I forgot what my config is set to on unraid, but i think i left it at default), both my unraid box and windows box shutdown. I saw it try to unmount my array and everything. Very very cool. Thanks to everyone involved for this! althor
May 10, 201214 yr althor, thanks very much for this quick tutorial. I didn't know a windows client existed and now I've got my Windows box configured as the slave. As you said... 'Very very cool!'
May 11, 201214 yr I've also used a windows client on my build - it seems to be the only way to pass through full data to ESXi (unless you pass through a USB controller, in which case unRAID/other Linux then work fine.) In saying that, you don't actually require all that extra data, as the important bits (like ONBATTERY etc) are passed through fine. I'm just a bit OCD when it comes to these things and if I can get more options/info, then I want that I already had a windows VM as a download box anyway, so it made sense! Combined this with plink (command line putty) to first login to unRAID and do a slightly modified /sbin/powerdown (unmenu plugin), then run a script that sits in /bootbank on the ESXi host (so it doesn't get removed on reboot), which shuts down my VM's in order, then finally the ESXi host itself. Works quite nicely!
Archived
This topic is now archived and is closed to further replies.