Uninterruptable Power Supply:APC
To set up apcupsd on SME 7.4
Setup the DAG repository
The following command will configure the Dag repository on SME Server. Dag After adding it to the database we have to update the changes to the configuration file:
yum install --enablerepo=dag --enablerepo=base apcupsd
Copy original conf file
cp apcupsd.conf apcupsd.conf.orig
Copy CGI files
cp /var/www/apcupsd/* /home/e-smith/files/ibays/Primary/cgi-bin/
Link the startup script
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S99apcupsd
Set the 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.
to start the service.
http://yourdomain.tld/cgi-bin/multimon.cgi gives a nice look at the UPS status, including a log of past events