Projekt

Allgemein

Profil

Setup apcupsd » Historie » Revision 2

Revision 1 (Jeremias Keihsler, 12.01.2017 09:33) → Revision 2/3 (Jeremias Keihsler, 12.01.2017 09:34)

h1. Install apcupsd 

 h2. Requirements 

 To install apcupsd you will need the following: 
   * a installed and supported operating system (e.g. CentOS 6.x) 
   * root-access 
   * a fast internet connection 

 h2. Preliminary Note 

 using USB connection instead of the default RS232 
 This setup works with: 

 |_.MODEL           |_.FIRMWARE              |_.SERIALNO     |_.system | |_.machine| 
 |Smart-UPS 1000    |COM 02.1 / UPS.05.I     |AS1116113737 |H02        | 
 |Smart-UPS 1000    |652.19.I USB FW:11.     |US1225102784 |12005      | 
 |Smart-UPS 750     |UPS 08.3 / ID=18        |AS1222222311 |11015      | 

 h2. Install  

 <pre><code class="bash"> 
 yum install apcupsd 
 </code></pre> 

 h2. Configure apcupsd 

 <pre><code class="bash"> 
 vim /etc/apcupsd/apcupsd.conf 
 </code></pre> 

 <pre> 
 UPSCABLE usb 

 UPSTYPE usb 
 DEVICE 

 BATTERYLEVEL 50 

 MINUTES 15 

 TIMEOUT 360 

 KILLDELAY 5 

 WAKEUP 60 
 </pre> 

 
 h2. 5 Start apcupsd 

 


 manually start apcupsd: 
 <pre><code class="bash"> 
 /etc/init.d/apcupsd start 
 </code></pre> 

 automatically start the service at boot time: 
 <pre><code class="bash"> 
 /sbin/service apcupsd on 
 </code></pre> 

 you can check the runlevels by 
 <pre><code class="bash"> 
 /sbin/chkconfig --list apcupsd 
 </code></pre> 
 you should get an output like: 
 <pre><code class="bash"> 
 apcupsd       0:off     1:off     2:off     3:on     4:off     5:on     6:off 
 </code></pre> 

 


 h2. Usage 

 <pre><code class="bash"> 
 /etc/init.d/apcupsd status 
 </code></pre> 

 h2. Test 

 * connect server to "permanent" power supply 
 * connect server to UPS via USB-cable 
 * test data-reading 
 * unplug UPS from supply 
 * you should get "on battery" warning 
 * after some time server should initiate shutdown 
 * after some more time UPS should kill itself