First, do this:
{{Code|Code=
# yum -y install nut nut-client
}}
Next, you will need to configure three files in /etc/ups: ups.conf, upsd.users, and upsmon.conf. They will look almost identical to Selinger's:
{{Code|Code=
vi /usr/etc/ups.conf:}}----------------------------------------------------------------------{{Text|Text=
[apc]
driver = usbhid-ups
port = auto
desc = "APC Back-UPS ES 550"}}{{Code|Code=vi /usr/etc/upsd.users:----------------------------------------------------------------------}}{{Text|Text=
[admin]
password = password1
password = password2
upsmon master
}}{{Code|Code=vi /usr/etc/upsmon.conf:}}----------------------------------------------------------------------{{Text|Text=
MONITOR apc@localhost 1 monuser password2 master
MINSUPPLIES 1
The next step is to start the UPS service:
{{Code|
# upsdrvctl start# service ups stop# service ups start
}}
At this point, you should see something like this in your terminal:
{{Code| Starting UPS driver controller: [ OK ] Starting upsd: [ OK ] Starting UPS monitor (master): [ OK ]}}
If you do not, it may be because upsdrvctl refuses to cooperate at first. A reboot will fix that problem. The final step is to make sure that the UPS services start when the server does. For that, the /etc/rc.local file must be edited as follows:
echo "Starting UPS driver, daemon, and monitor."
{{Code|
echo "Starting UPS driver, daemon, and monitor."
/sbin/upsdrvctl start
/usr/sbin/upsd
/usr/sbin/upsmon
}}