$ sudo yum - y install apcupad
# /sbin/chkconfig --level 35 apcupsd on # /sbin/chkconfig --list apcupsd apcupsd 0:off 1:off 2:off 3:on 4:off 5:on 6:off # /etc/init.d/apcupsd start Starting UPS monitoring: [ OK ]
コンソールからは次のように状態を確認できる
# apcaccess APC : 001,035,0885 DATE : 2010-07-18 22:27:20 +0900 HOSTNAME : orange.homelan VERSION : 3.14.8 (16 January 2010) redhat UPSNAME : orange.homelan CABLE : USB Cable MODEL : APC ES 500 UPSMODE : Stand Alone ...
# yum -y install apcupsd-cgi
/var/www/apcupsd に CGI が展開されるので、apache2 が実行できるようにする
# vi /etc/httpd/conf/httpd.conf 564 # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased 565 # CGI directory exists, if you have that configured. 566 # 567 <Directory "/var/www/cgi-bin"> 568 AllowOverride None 569 Options None 570 Order allow,deny 571 Allow from all 572 </Directory> 573 + 574 <Directory "/var/www/apcupsd"> + 575 AllowOverride None + 576 Options ExecCGI + 577 Order allow,deny + 578 Allow from all + 579 </Directory> # /etc/init.d/httpd restart
# yum -y install apcupsd-gui
ノートPC のバッテリーと同じように見える