NUT
start driver
# upsdrvctl start
Network UPS Tools - UPS driver controller 2.6.4
Network UPS Tools - Generic HID driver 0.37 (2.6.4)
USB communication driver 0.32
Can`t chdir to /var/run/nut: No such file or directory
Driver failed to start (exit status=1)
Fix
# mkdir /var/run/nut
# chown root:nut /var/run/nut
# chmod 770 /var/run/nut
# upsdrvctl start
Network UPS Tools - UPS driver controller 2.6.4
Network UPS Tools - Generic HID driver 0.37 (2.6.4)
USB communication driver 0.32
Using subdriver: APC HID 0.95
start
# upsd
Network UPS Tools upsd 2.6.4
fopen /var/run/nut/upsd.pid: No such file or directory
listening on 127.0.0.1 port 3493
listening on ::1 port 3493
Can`t open /etc/nut/ups.conf: Can`t open /etc/nut/ups.conf: Permission denied
Fix
# chown -R root:nut /etc/nut
# upsd
Network UPS Tools upsd 2.6.4
fopen /var/run/nut/upsd.pid: No such file or directory
listening on 127.0.0.1 port 3493
listening on ::1 port 3493
Connected to UPS [apc3000]: usbhid-ups-apc3000
Checking
# upsc apc3000
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 50
battery.mfr.date: 2012/11/09
battery.runtime: 18720
battery.runtime.low: 120
battery.temperature: 19.3
battery.type: PbAc