-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Content-ID:
Me voy a comer contentito. Luego reactivaré el daemon en el script. :-)
A la primera, en cuanto lo reactivo en el script: Nov 20 19:27:55 nimrodel megatec_usb[24858]: Startup successful Nov 20 19:27:55 nimrodel upsd[24861]: listening on 0.0.0.0 port 3493 Nov 20 19:27:55 nimrodel upsd[24861]: Connected to UPS [myups]: megatec_usb-myups Nov 20 19:27:55 nimrodel upsd[24862]: Startup successful Nov 20 19:27:55 nimrodel upsmon[24865]: Startup successful Nov 20 19:27:55 nimrodel upsd[24862]: Connection from 127.0.0.1 Nov 20 19:27:55 nimrodel upsd[24862]: Client upsd@127.0.0.1 logged into UPS [myups] Luego ya funciona. nimrodel:~ # upscmd -l myups Instant commands supported on UPS [myups]: beeper.toggle - Toggle the UPS beeper load.off - Turn off the load immediately load.on - Turn on the load immediately reset.input.minmax - Reset minimum and maximum input voltage status reset.watchdog - Reset watchdog timer shutdown.return - Turn off the load and return when power is back shutdown.stayoff - Turn off the load and remain off shutdown.stop - Stop a shutdown in progress test.battery.start - Start a battery test test.battery.start.deep - Start a deep battery test test.battery.stop - Stop the battery test Bueno, ahora me falta ver comandos para ver el estado, configurar para que hiberne a los dos minutos de estar en batería... etc. Creoque hay una interfaz web si quiero ponerla - no tengo claro si es sólo via cgi o también en un puerto. Es "http://localhost/nut/index.html". ¡Ondiá, funciona! A la primera. "Displaya" un gráfico de barritas... La temeratura está clavada en 25.0 grados (no me lo creo, será falsa) y la carga oscila alrededor del 22%. El 49.9 es efectivamente la frecuencia. pero en el texto habían tre voltajes y el gráfico solo muestra dos, entrada y salida. Para manipular valores hay que activarlo en la configuración, por defecto está quitado. Eso es la parte cgi. - -- Saludos Carlos E.R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkklsUcACgkQtTMYHG2NR9VLMwCgmJsutTkV1IHCx1kTDJRF8EkM STsAoIM1dJMaFJUjg4j++RGhDiNxGsLj =HaId -----END PGP SIGNATURE-----