Re: APC ups problems - backupspro
On Wed, 18 Apr 2001 iehrenwald@earthlink.net wrote:
> On Wed, 18 Apr 2001, Lindsay Allen wrote:
>
> > The daemon clearly talks to the UPS. It knows the voltages and the times
> > and the events. When the power fails it stops people logging in. But it
> > does not shut down the server.
>
> I have a BackUPS Pro 1000 with the simple gray cable so my suggestions
> might not be totally applicable..
>
> Make sure the BATTERYLEVEL, MINUTES and TIMEOUT in apcupsd.conf are set
> with sane values for your system.
>From my .conf
# BATTERYLEVEL <percent of battery charge for shutdown> 10
BATTERYLEVEL 30
#
# MINUTES <time in minutes of remaining battery runtime before shutdown> 5
MINUTES 10
#
# TIMEOUT <time is seconds to run on UPS after a power failure>
# Note, if you have a Smart UPS, you will most likely want to disable
# this timer by setting it to zero. That way, you UPS will continue
# on batteries until either the % charge remaing drops below
BATTERYLEVEL,
# or the remaining battery runtime drops below MINUTES. Of course,
# if you are testing, setting this to 60 causes a quick system shutdown
# if you pull the power plug.
# If you have an older dumb UPS, you will want to set this to less than
# the time you know you can run on batteries.
TIMEOUT 60
The UPS is a "smart" one, if I understand the docs correctly, so I expect
a shutdown to be initiated in 60 seconds. At that time it disallows login
by creating /etc/nologin (owned by root) and it *says* that it is shutting
down the system, but it does not. This is what has me bluffed.
> Is apcupsd being run by root and/or in a group with shutdown privs? I'm
> leaning towards that as the problem if everything else completes except
> shutting down.
>From daemon.log:-
Apr 18 22:20:57 gw apcupsd[151]: apcupsd exiting, signal 15
Apr 18 22:20:58 gw apcupsd[151]: apcupsd shutdown succeeded
Apr 18 22:21:16 gw apcupsd[314]: apcupsd 3.8.1-5 (7 April 2001) debian
startup succeeded
Apr 18 22:30:00 gw apcupsd[315]: Power failure.
Apr 18 22:30:02 gw apcupsd[315]: Running on UPS batteries.
Apr 18 22:31:05 gw apcupsd[315]: Reached run time limit on batteries.
Apr 18 22:31:05 gw apcupsd[315]: Initiating system shutdown!
Apr 18 22:31:05 gw apcupsd[315]: User logins prohibited
Apr 18 22:34:36 gw apcupsd[315]: Cancelling shutdown
Apr 18 22:34:36 gw apcupsd[315]: Power is back. UPS running on mains.
Apr 18 22:34:36 gw apcupsd[315]: Allowing logins
Note how shutdown was initiated 65 seconds after power failure.
It's running as root. All binaries are in the expected place. But still
no shutdown.
Maybe I just have to log a bug report.
Thanks for the response.
Lindsay
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Lindsay Allen <allen@cleo.murdoch.edu.au> Perth, Western Australia
voice +61 8 9316 2486, 0403 272 564 32.0125S 115.8445E Debian Linux
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Reply to: