This guide will let you configure apcupsd using PCNET broadcasts from the UPS network management card.
Prerequisites:
PCNET is UDP broadcast communication over port 3052. If you use a firewall, open communication for this port.
yum install apcupsd
chkconfig apcupsd on
UPSNAME SMART750 UPSCABLE ether UPSTYPE pcnet DEVICE 1.2.3.4:apc:1234567890123456 # Your 16 char shutdown phrase. BATTERYLEVEL 10 # Issue shutdown at or below 10% battery. MINUTES 10 # If runtime left is 10 minutes or below, shutdown.
-A INPUT -m state --state NEW -m udp -p udp --dport 3052 -j ACCEPT
service iptables restart
yum -y install policycoreutils-python setenforce 0 # clear the audit log cd /var/log/audit echo > audit.log service apcupsd start service apcupsd stop setenforce 1 cp audit.log /var/tmp cd /var/tmp audit2allow -M myapcupsd < audit.log semodule -i myapcupsd.pp
service apcupsd start
apcaccess