$theTitle=wp_title(" - ", false); if($theTitle != "") { ?>
2006-12-05 (火曜日) In: Apache|apcupsd|FreeBSD|Server(1,627 views)
/usr/ports/sysutils/apcupsd
言わずと知れたUPSのコントロールソフト。
[code]
# cd /usr/ports/sysutils/apcupsd
# portinstall
[/code]
Options選択はCGIとSNMPにX印を入れて続行。
終わったら/usr/local/etc/apcupsdでapcupsd.confの作成
今回はapcupsd.conf.net-master.sampleをapcupsd.confにコピーして編集する。一台だけの独立したサーバーなのでスタンドアローンの設定にするだけにする。バッテリーの保持時間とかの細かな設定は後回し。SMART-UPS 700にDELLのSC430のシリアル接続。
[code]
# diff apcupsd.conf apcupsd.conf.net-master.sample
5,7c5,7
< UPSCABLE smart
< UPSTYPE apcsmart
< DEVICE /dev/ttyd0
---
> UPSCABLE 940-1524C
> UPSTYPE smartups
> DEVICE /dev/usv
21,22c21,22
< UPSCLASS standalone
< UPSMODE disable
---
> UPSCLASS netmaster
> UPSMODE net
[/code]
/etc/rc.confに下記追記
[code]
# apcupsd
apcupsd_enable="YES"
apcupsd_program="/usr/local/sbin/apcupsd"
[/code]
rehashして/usr/local/etc/rc.d/apcupsd startで起動。
/usr/local/etc/apcupsd/cgi下を/usr/local/www/apache22/cgi-binにapcupsdディレクトリを作ってコピー。
http://www.ほげほげ/cgi-bin/apcupsd/multimon.cgi でUPSの状態を見れるようにする。
今度のサーバーのUPSはSMART-UPS 700を使っているが、温度が40℃を超えている。長寿命バッテリーを奮発したとは言え夏場の高温での劣化が今から心配。手元のサーバーのUPSはSMART-UPS 2200で約30℃。筐体の余裕の違いだろうなぁ。。。
参考URL 1
日々の四方山話を徒然と・・・
いらっしゃいませ。このブログはオーストラリアの生活に関する話題とFreeBSDに関連する話題を主に色々と書き綴っています。
Sorry, This site consists of Japanese contents only. If you are interested in my blog, feel free to leave your comments in English or Japanese. Thank you.