User Tools

Site Tools


doc:appunti:hardware:ups_apc_nut

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:hardware:ups_apc_nut [2026/10/02 14:57] – niccolodoc:appunti:hardware:ups_apc_nut [2026/10/02 16:44] (current) – [Configuration] niccolo
Line 1: Line 1:
 ====== Using an APC UPS with the Nut software ====== ====== Using an APC UPS with the Nut software ======
 +
 +===== Configuration =====
 +
 +Configuration files into **/etc/nut/** directory:
 +
 +  * **nut.conf**
 +  * **ups.conf**
 +  * **upsd.conf**
 +  * **upsd.users**
 +  * **upsmon.conf**
 +
 +=== /etc/nut/nut.conf ===
 +
 +<file>
 +MODE=standalone
 +</file>
 +
 +=== /etc/nut/ups.conf ===
 +
 +<file>
 +[apc-bx2200]
 +    driver = usbhid-ups
 +    port = auto
 +    #serial = "9B2611A02967"
 +    desc = "APC Back-UPS BX2200MI"
 +    ignorelb
 +    pollonly
 +</file>
 +
 +=== /etc/nut/upsd.conf ===
 +
 +<file>
 +LISTEN 127.0.0.1 3493
 +LISTEN 192.168.0.46 3493
 +</file>
 +
 +=== /etc/nut/ ===
 +
 +<file>
 +[admin]
 +    password = MySecret1
 +    actions = SET
 +    instcmds = ALL
 +
 +[monuser]
 +    password = MySecret2
 +    upsmon master
 +</file>
 +
 +=== /etc/nut/upsmon.conf ===
 +
 +<file>
 +MONITOR apc-bx2200@localhost 1 monuser MySecret2 master
 +</file>
 +
 +===== Usage =====
  
 List the UPS configured with nut: List the UPS configured with nut:
Line 19: Line 75:
 upsc apc-bx2200 ups.status upsc apc-bx2200 ups.status
 upsc apc-bx2200 battery.charge upsc apc-bx2200 battery.charge
 +upsc apc-bx2200 battery.runtime
 upsc apc-bx2200 ups.alarm upsc apc-bx2200 ups.alarm
 upsc apc-bx2200 ups.load upsc apc-bx2200 ups.load
doc/appunti/hardware/ups_apc_nut.1790945821.txt.gz · Last modified: by niccolo