Attention: All pages of this wiki depend on the pages that come before it, in order as they are listed on the Main Page. Please check for Dependencies.
Please also look at What You Need to Know Before Using This Wiki
Install APCUPSD
System Prep
Obtain and Install Apcupsd
- Find latest downloads here: http://sourceforge.net/projects/apcupsd/files/apcupsd%20-%20Stable/
- cd /usr/src/
- wget http://sourceforge.net/projects/apcupsd/files/apcupsd%20-%20Stable/3.14.10/apcupsd-3.14.10.tar.gz
- tar zxf apcupsd-3.14.10.tar.gz
- cd apcupsd-3.14.10/
- ./configure --prefix=/usr/local --enable-cgi --with-cgi-bin=/Computerisms/sites/ups.computerisms.com --enable-usb --enable-net --with-upstype=usb --with-upscable=usb --with-log-dir=/dev/stderr --with-nisip=192.168.26.10
- make
- make install
Configure APCUPSD
- vi /etc/apcupsd/apcupsd.conf
- vi /etc/apcupsd/changeme
- vi /etc/apcupsd/hosts
- apctest -b <= Make sure battery self test passes
Configure Apache
- vi /etc/apache2/sites-available/ups.computerisms.com.conf
- mkdir /var/log/apache2/ups.computerisms.com/
- chown root:adm /var/log/apache2/ups.computerisms.com/
- a2ensite ups.computerisms.com.conf
- /etc/init.d/apache2 restart
- chown -R ups:ups /Computerisms/sites/ups.computerisms.com/
- chmod 2750 /Computerisms/sites/ups.computerisms.com/
- chmod 0770 /Computerisms/sites/ups.computerisms.com/*
- samba-tool dns add houselian computerisms.com ups A 192.168.26.10
Start Apcupsd
- insserv -rf apcupsd
- rm /etc/init.d/apcupsd
- mkdir -p -m 1755 /var/service/apcupsd
- mkdir -p -m 1755 /var/service/apcupsd/log
- vi /var/service/apcupsd/run
- ln -s /var/service/multilog.run /var/service/apcupsd/log/run
- chmod 0755 /var/service/apcupsd/run /var/service/apcupsd/log/run
- ln -s /var/service/apcupsd/ /service/
Install on Porchlian
- ssh root@192.168.26.1
- cd /usr/src/
- wget http://sourceforge.net/projects/apcupsd/files/apcupsd%20-%20Stable/3.14.10/apcupsd-3.14.10.tar.gz
- tar zxf apcupsd-3.14.10.tar.gz
- cd apcupsd-3.14.10/
- ./configure --prefix=/usr/local --enable-net --with-upstype=net --with-upscable=ether
- make && make install
- > /etc/apcupsd/apcupsd.conf; vi /etc/apcupsd/apcupsd.conf
- vi /etc/init.d/apcupsd
- /etc/init.d/apcupsd start
- insserv -d apcupsd
- exit
- tcpdump -n -i eth0 port 3551 <= Make sure you see some traffic from host 192.168.26.1
Install on Shedlian
- ssh root@192.168.26.11
- cd /usr/src/
- wget http://sourceforge.net/projects/apcupsd/files/apcupsd%20-%20Stable/3.14.10/apcupsd-3.14.10.tar.gz
- tar zxf apcupsd-3.14.10.tar.gz
- cd apcupsd-3.14.10/
- ./configure --prefix=/usr/local --enable-net --with-upstype=net --with-upscable=ether
- make && make install
- > /etc/apcupsd/apcupsd.conf; vi /etc/apcupsd/apcupsd.conf
- > /etc/init.d/apcupsd; vi /etc/init.d/apcupsd
- /etc/init.d/apcupsd start
- insserv -d apcupsd
- exit
- tcpdump -n -i eth0 port 3551 <= Make sure you see some traffic from host 192.168.26.11
Testing
- Pull the plug on the wall, run the battery dry and make sure every thing shuts down as it should.