# pkg_add apcupsd-3.14.2.tbz |
実行ファイル | /usr/local/sbin/apcupsd | ||
設定ファイル | /usr/local/etc/apcupsd |
# cd /usr/local/etc/apcupsd |
# cp apcupsd.conf.sample apcupsd.conf |
# vi apcupsd.conf |
・ |
・ |
#UPSNAME |
UPSNAME APC ES500 |
・ |
・ |
#UPSCABLE smart |
UPSCABLE usb |
・ |
・ |
#UPSTYPE apcsmart |
#DEVICE /dev/usv |
UPSTYPE usb |
DEVICE |
・ |
・ |
#UPSCLASS netmaster |
UPSCLASS standalone |
・ |
・ |
#UPSMODE net |
UPSMODE disable |
・ |
・ |
# cd /usr/local/etc/apcupsd |
# vi apccontrol |
${SHUTDOWN} -h now "apcupsd initiated shutdown" |
${SHUTDOWN} -p now "apcupsd initiated shutdown" |
/usr/local/etc/rc.d/apcupsd start | ・・・ | 起動 | |
/usr/local/etc/rc.d/apcupsd stop | ・・・ | 停止 | |
/usr/local/etc/rc.d/apcupsd restart | ・・・ | 再起動 | |
/usr/local/etc/rc.d/apcupsd status | ・・・ | 状態表示 |
# cd /usr/local/etc/apache |
# vi access.conf |
ScriptAlias /apcupsd/ /usr/local/etc/apcupsd/ | |
<Directory /usr/local/etc/apcupsd/> | |
DirectoryIndex upsstats.cgi | |
Options ExecCGI | |
order deny,allow | |
deny from all | |
allow from 127.0.0.1 192.168.0. | |
</Directory> |
・ |
・ |
# UPSNAME xxx |
UPSNAME APC ES500 |
・ |
・ |
# UPSCABLE |
UPSCABLE ether |
・ |
・ |
#UPSTYPE |
UPSTYPE net |
DEVICE マスターのアドレス:3551 |
・ |
・ |