Az apcupsd démon USB-n keresztül kommunikál egy APC UPS-szel, figyeli az állapotát (akkumulátor töltöttség, áramkimaradás), és webes felületen is megjeleníthető (apcupsd-cgi).

apt install apcupsd
nano /etc/apcupsd/apcupsd.conf
UPSNAME "[sajat_ups_neve]"
UPSCABLE usb
UPSTYPE usb
DEVICE
POLLTIME 60
nano /etc/default/apcupsd
# állítsd be:
ISCONFIGURED=yes

service apcupsd restart
apcaccess status

Webes állapotfelület (CGI)

apt install apcupsd-cgi

cd /etc/apache2/mods-enabled
ln -s ../mods-available/cgi.load

service apache2 reload

Elérhető itt: http://[szerver_ip]/cgi-bin/apcupsd/multimon.cgi

← Vissza: Linux