UPSの設定
APC CS500 (BK500JP)の設定
APC CS500 (BK500JP)の取説に従って接続する。
APCのUPS用のデーモンをインストール
# aptitude update;aptitude install apcupsd apcupsd-cgi
apcupsd-cgiは、APCのUPSのステータスをWeb上で見るためのCGIです。
接続メッセージの確認
# dmesg | grep APC
当方のDebian GNU/Linuxの環境では /dev/の下にデバイスファイルがなかったので
# /usr/share/doc/apcupsd/examples/make-hiddev
を実行してデバイスファイルを作成する。
/dev/usb/hid以下にデバイスファイルが作成されている。
必要パッケージを追加インストールする。
# aptitude install udev hal
/etc/apcupsd/apcupsd.confを編集する。
# defines the type of cable that you have. UPSCABLE usb
# defines the type of UPS you have. UPSTYPE backups
# Here a table of the possible devices related with the UPS drivers.
DEVICE /dev/usb/hiddev0
UPSTYPE backups
TIMEOUT 300
UPSCABLE usb
/etc/default/apcupsdのISCONFIGUREDを、編集する。
# Apcupsd-devel internal configuration
APCACCESS=/sbin/apcaccess
ISCONFIGURED=yes
デーモンをスタートする。
# /etc/init.d/apcupsd start