Uninterruptable Power Supply:APC

From SME Server
Revision as of 23:21, 5 May 2010 by Robwellesley (talk | contribs) (Created page with 'To set up apcupsd on SME 7.4 You can use the below as a script and a howto ---------------------------------------------------------------------------------------- Setup DAG r…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

To set up apcupsd on SME 7.4

You can use the below as a script and a howto


Setup DAG repository

http://wiki.contribs.org/Dag

INSTALL APCUPSD

yum install --enablerepo=dag --enablerepo=base apcupsd

COPY ORIGINAL CONF

cp apcupsd.conf apcupsd.conf.orig

COPY CGI FILES

cp /var/www/apcupsd/* /home/e-smith/files/ibays/Primary/cgi-bin/

LINK STARTUP SCRIPT

ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S99apcupsd

SET SERVICE IN SME

config set apcupsd service status enabled

Edit /etc/apcupsd/apcupsd.conf. The conf file has good detail on setup options.

Suggest setting the TIMEOUT to 600 seconds; You shouldn't let UPS batteries run down to 5% (default) as this massively shortens their life. Set TIMEOUT to 10 for testing.

Reboot or /etc/init.d/apcupsd start to start the service.

http://host.domain/cgi-bin/multimon.cgi gives a nice look at the UPS status, including a log of past events