Koozali.org: home of the SME Server

UPS control software (powerchute?)

steve

UPS control software (powerchute?)
« on: June 27, 2003, 07:30:34 AM »
Hi.

We've got an APC UPS to protect our server (SME 5.5, about to become 5.6)  and I'd like to be able to schedule automatic shutdown if the power goes down for an extended period of time - as it's prone to doing round here.

 The 'powerchute' software which comes with the server has an rpm for RedHat, which when I tried installing it had a dependency on "Swing". If my memory serves correctly that's the GUI component of Java, ie. this software is graphically based and ain't going to run on SME.

Anyone know of any generic (SME friendly) software for this sort of thing?

Plan B is to install powerchute on another machine and use a cron job to regularly probe (ping) the control machine - if it goes off then power down nicely. Not too elegant though.

Gracias, -steve.

Ray Mitchell

Re: UPS control software (powerchute?)
« Reply #1 on: June 27, 2003, 07:42:16 AM »
Steve

It's all been done for you see
http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/apcupsd/
which should ideally suit your APC UPS.

An alternative for other brand UPS's is powstatd see
http://www.e-smith.org/docs/howto/contrib/powstatdUPSHOWTOv5.5v5.6.txt

and of course for USB UPS's there is NUT which is part of v5.6, see posts on these forums for further info about setting up and using, search for NUT all dates

Regards
Ray Mitchell

Jonathan Chapman

Re: UPS control software (powerchute?)
« Reply #2 on: June 27, 2003, 02:18:19 PM »
I have apcupsd running on a SME 5.5 server with an APC UPS.  It works very well.  It provides a CGI web interface with very detailed running conditions, just like APC's software.  I also have it notifying several other servers via the network when power fails.  The CGI interface tells me if my servers are up and monitors input voltage, output load, etc.  It's been a while, but I seem to recall that it was quite easy to set up succesfully the first time.  Apcupsd is also very well documented.
http://www.apcupsd.com

At work I have a non-APC UPS on a RedHat server.  With the particular UPS, I could only get powstatd to work properly with it.  I found powstatd to be simple relative to the others mentioned above.  No real valuable information, it simply runs quietly in the background (it seems reliable though).  Powstatd is also time consuming to set up.  There are 4 or 5 config files which must all be configured.  I also found that it wasn't as well documented as apcupsd.

I had tried an APC unit with a USB port and was not able to get it to work at all.  NUT is supposed to work with USB, but USB support is experimental, and I couldn't get it to work. Your mileage may vary, but I would recommend staying away from USB only models.  NUT is also poorly documented in my opinion.

Charlie Brady

Re: UPS control software (powerchute?)
« Reply #3 on: June 27, 2003, 06:50:55 PM »
Jonathan Chapman wrote:
> NUT is supposed to work with USB, but
> USB support is experimental, and I couldn't get it to work.
> Your mileage may vary, but I would recommend staying away
> from USB only models.

NUT works just fine with USB, on 5.6.

Charlie

steve

Re: UPS control software (powerchute?)
« Reply #4 on: June 30, 2003, 07:53:38 AM »
Thanks all,

Got apcupsd running just fine with serial cable. Just got to watch for cable type.

-steve.

Alejandro Lengua

Re: UPS control software (powerchute?)
« Reply #5 on: July 02, 2003, 04:23:06 AM »
I have just found this UPS that can be located inside the server chassis.
http://www.unitekamerica.com
I wonder if someone have successfully integrated in SME?