UPS-Linux
Quick Start
- apt-get install nut nut-cgi
- cd /etc/nut
- mkdir dist
- mv * dist/
- nut-scanner -U » ups.conf
- Add maxretry = 3, and any comments
# # ups.conf # maxretry = 3 [nutdev1] driver = "nutdrv_qx" port = "auto" vendorid = "0665" productid = "5161" product = "USB to Serial" vendor = "INNO TECH" bus = "001"
- upsd.conf
# # upsd.conf # LISTEN 0.0.0.0 3493
- nut.conf
# # nut.conf # MODE=netserver
- upsd.conf
# # upsd.conf # LISTEN 0.0.0.0 3493
- upsd.user
# # upsd.user # [admin] password = mypass admin master
- upsmon.conf
# # upsmon.conf # MONITOR nutdev1@localhost 1 upsadmin KSUPS-1 master MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h +0" POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/killpower RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 5
- touch upssched.conf
- upsset.conf
# # upsset.conf # I_HAVE_SECURED_MY_CGI_DIRECTORY
- cp dist/upsstats-single.html ./
- cp dist/upsstats.html ./
- systemctl restart nut-client.service
- systemctl restart nut-monitor.service
- systemctl restart nut-server.service