補足お願いします。A/Iも。 > 田中先生
???
/usr/lib/powerchute
wget http://sourceforge.net/projects/apcupsd/files/rpms%20-%20Stable/3.14.8/apcupsd-3.14.8-1.el5.i386.rpm/download rpm -ivh apcupsd-3.14.8-1.el5.i386.rpm
# UPSCABLE <cable> # Defines the type of cable connecting the UPS to your computer. UPSTYPE usb # The ONBATTERYDELAY is the time in seconds from when a power failure # is detected until we react to it with an onbattery event. # # This means that, apccontrol will be called with the powerout argument # immediately when a power failure is detected. However, the # onbattery argument is passed to apccontrol only after the # ONBATTERYDELAY time. If you don't want to be annoyed by short # powerfailures, make sure that apccontrol powerout does nothing # i.e. comment out the wall. ## バッテリー駆動に切り替わってから無視する秒数 ## alert がうるさいので長め(60sec)に設定 ONBATTERYDELAY 60 # Note: BATTERYLEVEL, MINUTES, and TIMEOUT work in conjunction, so # the first that occurs will cause the initation of a shutdown. # If during a power failure, the remaining battery percentage # (as reported by the UPS) is below or equal to BATTERYLEVEL, # apcupsd will initiate a system shutdown. BATTERYLEVEL 5 <= default # If during a power failure, the remaining runtime in minutes # (as calculated internally by the UPS) is below or equal to MINUTES, # apcupsd, will initiate a system shutdown. ## /etc/init.d/apcupsd status で TIMELEFT が計算されて出るもののみ有効 MINUTES 3 <= default
sshtimeout=5 ssh="/usr/bin/ssh -o ConnectionTimeout=$sshtimeout"
root> /etc/init.d/sendmail start Starting sendmail: [ OK ] Starting sm-client: [ OK ]
rc[2345].dの *80sendmail を S80sendmail に rename
計算機(UPS signalを受ける)シャットダウンの最後に UPS off のコマンドが送られ、 それから 180sec 後に UPS が sleep 状態に入る。 (それまでに計算機を再起動すると、当然落ちる。) 一旦、手動で UPS の電源 off をして、再度 on にする。
- apcupsd の install と サービス起動 - wx2, mx2 と同じ /etc/apcupsd を rsync - sendmail 起動。rc[2-5].d の sendmail 起動設定変更 (rc5.d> mv K30sendmail S80sendmail)
通常運転時はサージ抑制器、フィルタ、インバータを介して負荷にAC電源を供給。 電源障害時およびフィルタにて除去出来ない電圧波形が進入した場合に バッテリ運転に切り替えAC電源を供給。 通常運転時にインバータを利用してバッテリ充電を実施するため、 充電器が必要ないシンプルな回路。