Hoy he instalado el software NUT en una Ubuntu Edgy.
Se trata de un programa que se encarga de apagar el servidor cuando el SAI se queda sin bateria.

Los paquetes a instalar son: nut y nut-usb y los archivos a editar:
/etc/default/nut:
# start upsd START_UPSD=yes # start upsmon START_UPSMON=yes
/etc/nut/ups.conf:
[mge]
driver = newhidusb
port = auto/etc/nut/upsd.conf:
# Supervision user
[admin]
password = mypass
allowfrom = localhost
actions = SET
instcmds = ALL
# Protection user
[monuser]
password = mypass
allowfrom = localhost
upsmon master/etc/nut/upsmon.conf:
MONITOR mge@localhost 1 monuser mypass master
Para probarlo, utilizar:
# upsc mge@localhost
1 #:
Tienes un error en el código. el drivers es newhidups (ojo UPS no USB).
Un Saludo y gracias por tu articulo.
Publicar un comentario