<ditaa name=apcupsd>
+—–+ +———+ +———+ /————–\
E2160 | vm-web | ←—-+ User Browser | |||
APC +–>+ APCUPSD | APCUPSD | ||||
UPS | Master | Slave | |||
+—–+ | |
+-----------+
</ditaa>
yum install apcupsd
直接安裝
su - root wget http://nchc.dl.sourceforge.net/sourceforge/apcupsd/apcupsd-3.14.14.tar.gz tar -zxvf apcupsd-3.14.14.tar.gz cd apcupsd-3.14.14 ./configure --enable-cgi make make install
yum install gcc-c++ gd gd-devel
vi /etc/apcupsd/apcupsd.conf
: NETTIME 60 : UPSCLASS sharemaster : UPSMODE share : STATTIME 60 : UPSNAME Trysoft :
service apcupsd start chkconfig apcupsd on chkconfig --list | grep apcupsd
之後可以在 /var/log/ 底下看到 apcupsd.status 與 apcupsd.events 兩個檔案