早崎トップ 研究(気候気象) 研究(大気汚染) データリスト Linux Tips Mac Tips

Monitoring_UPS (hysk)

UPS監視

本ページの記述は,CentOS 5.{3-6} (x86_64)で実施. APC社製のUPSを対象とする.

apcupsd

Compiled from tar ball (apcupsd-3.14.8.tar.gz).Obtained from http://www.apcupsd.org/

  セットアップ

実施事項 (コマンドの羅列; とにかく取り急ぎ手順を知りたい人向け)

準備〜稼働までの,大雑把な流れは以下の通り:

$ tar xzf apcupsd-3.14.8.tar.gz
$ ./configure --enable-usb --enable-threads --enable-cgi --with-cgi-bin=/var/www/cgi-bin
$ make
# make install
(Binary executables were installed under /sbin/. Why?)
# vi /etc/apcupsd/apcupsd.conf
(Modified parameters mentioned below)
UPSNAME hogehoge
UPSCABLE usb
UPSTYPE usb
DEVICE 

# /etc/init.d/apcupsd start

CGI scripts were installed under /var/www/cgi-bin/ for CentOS system. If you want to set a special web for your UPS (i.e., /var/www/html/apcupsd/), all CGI files (4-files) mentioned above had copied and then permit to access the UPS web using Apache configuration file (i.e., /etc/httpd/conf.d/apcupsd.conf).