Quellcode durchsuchen

fix(logs): one timestamp per line, unified prefixes and English strings (#2060)

Nacho vor 2 Wochen
Ursprung
Commit
d3ea88c0e7
46 geänderte Dateien mit 403 neuen und 385 gelöschten Zeilen
  1. 8 0
      CHANGELOG.md
  2. 1 1
      agent/VERSION
  3. 8 8
      agent/deploy/netpulse-agent.init
  4. 1 1
      agent/runtime/upgrade.go
  5. 115 116
      install-agent.sh
  6. 21 9
      server-go/cmd/netpulse/main.go
  7. 1 1
      server-go/cmd/netpulse/main_test.go
  8. 2 2
      server-go/internal/adapters/live.go
  9. 1 1
      server-go/internal/adapters/snmp_live.go
  10. 3 3
      server-go/internal/adapters/sshpool.go
  11. 115 116
      server-go/internal/agentinstall/install-agent.sh
  12. 1 1
      server-go/internal/alertlang/alertlang.go
  13. 5 5
      server-go/internal/db/db.go
  14. 1 1
      server-go/internal/discover/discover.go
  15. 1 1
      server-go/internal/firmware/recurrence.go
  16. 1 1
      server-go/internal/firmware/releases.go
  17. 1 1
      server-go/internal/firmware/scheduler.go
  18. 4 4
      server-go/internal/httpapi/agent.go
  19. 3 3
      server-go/internal/httpapi/beacon.go
  20. 2 2
      server-go/internal/httpapi/discovery.go
  21. 4 4
      server-go/internal/httpapi/firmware_owut.go
  22. 2 2
      server-go/internal/httpapi/firmware_sweep.go
  23. 2 2
      server-go/internal/httpapi/racks.go
  24. 1 1
      server-go/internal/httpapi/server.go
  25. 2 2
      server-go/internal/mqttpub/manager.go
  26. 6 6
      server-go/internal/mqttpub/mqttpub.go
  27. 3 3
      server-go/internal/mqttpub/mqttpub_ha.go
  28. 5 5
      server-go/internal/poller/poller.go
  29. 2 2
      server-go/internal/pve/instances.go
  30. 1 1
      server-go/internal/reinstall/init_selfheal_1857_test.go
  31. 4 4
      server-go/internal/reinstall/messages_1737_test.go
  32. 32 32
      server-go/internal/reinstall/reinstall.go
  33. 3 3
      server-go/internal/reinstall/reinstall_progress_1894_test.go
  34. 5 5
      server-go/internal/reinstall/robust_1853_test.go
  35. 1 1
      server-go/internal/reinstall/scan_default_test.go
  36. 6 6
      server-go/internal/reinstall/script_test.go
  37. 3 3
      server-go/internal/reinstall/tail_1855_test.go
  38. 3 3
      server-go/internal/routerstore/routerstore.go
  39. 2 2
      server-go/internal/speedtest/scheduler.go
  40. 1 1
      server-go/internal/sshkey/knownhosts.go
  41. 2 2
      server-go/internal/sshkey/sshkey.go
  42. 2 2
      server-go/internal/updater/autosched.go
  43. 6 6
      server-go/internal/updater/history.go
  44. 2 2
      server-go/internal/updater/pending.go
  45. 6 6
      server-go/internal/updater/stable.go
  46. 2 2
      server-go/internal/updater/updater.go

+ 8 - 0
CHANGELOG.md

@@ -7,6 +7,14 @@ y este proyecto se adhiere a [Versionado Semántico](https://semver.org/lang/es/
 
 ## [Unreleased]
 
+### Changed
+
+- Las líneas del journal llevan un solo timestamp, el de systemd, y todos los prefijos siguen la forma `[netpulse:<subsistema>]`, con `mqtt`, `firmware`, `speedtest`, `rack`, `pve` y `agent` incluidos (#2058, reportado por @crowedavid).
+
+### Fixed
+
+- Los mensajes de log que quedaban en castellano están en inglés, también los del script de reinstalación del agente, el instalador one-liner y el init del agente (#1955).
+
 ## [2.53.0] - 2026-11-16
 
 ### Added

+ 1 - 1
agent/VERSION

@@ -1 +1 @@
-3.0.44
+3.0.45

+ 8 - 8
agent/deploy/netpulse-agent.init

@@ -33,7 +33,7 @@ selfheal_binary() {
         https|HTTPS) ;;
         *)
             [ "${NETPULSE_ALLOW_INSECURE_COMMANDS:-}" = "1" ] || {
-                logger -t netpulse-agent "self-heal: HTTP sin NETPULSE_ALLOW_INSECURE_COMMANDS=1, binario no descargado"
+                logger -t netpulse-agent "self-heal: HTTP without NETPULSE_ALLOW_INSECURE_COMMANDS=1, binary not downloaded"
                 return 1
             }
             ;;
@@ -52,7 +52,7 @@ selfheal_binary() {
     esac
     local url tmp hdr digest sum
     url="${NETPULSE_SERVER%/}/api/agents/${NETPULSE_SLUG}/binary?arch=${ARCH}"
-    logger -t netpulse-agent "self-heal: binario ausente, descargando de $NETPULSE_SERVER"
+    logger -t netpulse-agent "self-heal: binary missing, downloading from $NETPULSE_SERVER"
     tmp=/tmp/netpulse-agent.$$
     hdr=/tmp/netpulse-agent.hdr.$$
     if command -v curl >/dev/null 2>&1; then
@@ -64,19 +64,19 @@ selfheal_binary() {
     rm -f "$hdr"
     case "$digest" in
         ""|*[!0123456789abcdefABCDEF]*)
-            logger -t netpulse-agent "self-heal: sin X-Checksum-Sha256 válido, binario descartado"
+            logger -t netpulse-agent "self-heal: no valid X-Checksum-Sha256, binary discarded"
             rm -f "$tmp"
             return 1 ;;
     esac
-    [ "${#digest}" -eq 64 ] || { logger -t netpulse-agent "self-heal: digest con longitud inválida, binario descartado"; rm -f "$tmp"; return 1; }
+    [ "${#digest}" -eq 64 ] || { logger -t netpulse-agent "self-heal: digest with invalid length, binary discarded"; rm -f "$tmp"; return 1; }
     sum=$(sha256sum "$tmp" 2>/dev/null | awk '{print $1}')
     if [ -z "$sum" ] || [ "$(printf '%s' "$sum" | tr 'A-F' 'a-f')" != "$(printf '%s' "$digest" | tr 'A-F' 'a-f')" ]; then
-        logger -t netpulse-agent "self-heal: SHA-256 no coincide, binario descartado"
+        logger -t netpulse-agent "self-heal: SHA-256 mismatch, binary discarded"
         rm -f "$tmp"
         return 1
     fi
     chmod 0755 "$tmp" && mv "$tmp" /usr/sbin/netpulse-agent || { rm -f "$tmp"; return 1; }
-    logger -t netpulse-agent "self-heal: binario restaurado"
+    logger -t netpulse-agent "self-heal: binary restored"
     BIN=/usr/sbin/netpulse-agent
     return 0
 }
@@ -89,12 +89,12 @@ cleanup_stale_watchdog_cron() {
     [ -f /usr/sbin/netpulse-watchdog ] && return 0
     crontab -l 2>/dev/null | grep -q netpulse-watchdog || return 0
     ( crontab -l 2>/dev/null | grep -v netpulse-watchdog ) | crontab - 2>/dev/null || true
-    logger -t netpulse-agent "watchdog cron huérfano retirado (#879)"
+    logger -t netpulse-agent "orphan watchdog cron entry removed (#879)"
 }
 
 start_service() {
     cleanup_stale_watchdog_cron
-    selfheal_binary || logger -t netpulse-agent "self-heal: no se pudo restaurar el binario"
+    selfheal_binary || logger -t netpulse-agent "self-heal: could not restore the binary"
     procd_open_instance netpulse-agent
     procd_set_param command "$BIN"
     # respawn: si muere, procd lo levanta (5 s entre intentos, 5 intentos/hora)

+ 1 - 1
agent/runtime/upgrade.go

@@ -268,7 +268,7 @@ func handleUpgrade(opts Options, transport http.RoundTripper, data string) {
 	// ANTES del swap. Sin digest no se instala nada.
 	if digest == "" {
 		err := errors.New("el servidor no envió X-Checksum-Sha256; upgrade rechazado")
-		log.Error("[netpulse-agent] upgrade: falta el digest", "err", err)
+		log.Error("[netpulse-agent] upgrade: missing digest", "err", err)
 		reportUpgradeResult(opts, transport, false, err.Error())
 		return
 	}

+ 115 - 116
install-agent.sh

@@ -1,50 +1,49 @@
 #!/bin/sh
 # =============================================================================
-# NetPulse Agent — one-liner installer (OpenWrt, vía SSH desde esta máquina)
+# NetPulse Agent - one-liner installer (OpenWrt, over SSH from this machine)
 #
-#   Instala el agente nativo netpulse-agent en un router/AP OpenWrt: copia el
-#   binario (arm64/armv7/mipsle/mips), escribe /etc/netpulse-agent.env (chmod
-#   600) e instala el servicio procd (respawn) habilitado y arrancado. Añade
-#   binario, init y env a /etc/sysupgrade.conf para que sobrevivan a una
-#   actualización de firmware (#1476).
+#   Installs the native netpulse-agent on an OpenWrt router/AP: copies the
+#   binary (arm64/armv7/mipsle/mips), writes /etc/netpulse-agent.env (chmod
+#   600) and installs the procd service (respawn), enabled and started. Adds
+#   the binary, the init script and the env file to /etc/sysupgrade.conf so
+#   they survive a firmware upgrade (#1476).
 #
-# Uso (el token lo genera POST /api/agents y se muestra UNA sola vez):
+# Usage (the token is generated by POST /api/agents and shown ONCE):
 #   sh install-agent.sh --host 192.168.8.3 \
 #       --server http://192.168.8.1:3000 --slug patio --token <64-hex>
 #   sh install-agent.sh --host 192.168.8.3 --server ... --slug ... --token ... \
-#       --binary ./netpulse-agent          # binario local (sin descarga)
+#       --binary ./netpulse-agent          # local binary (no download)
 #   sh install-agent.sh --host 192.168.8.3 --uninstall
 #
-# Opciones:
-#   --host X        IP/host del router (obligatorio)
-#   --server X      URL del servidor NetPulse (obligatoria salvo --uninstall)
-#   --slug X        slug del equipo en NetPulse (obligatorio salvo --uninstall)
-#   --token X       token del equipo (obligatorio salvo --uninstall y --pairing-token)
-#   --pairing-token X  token de pairing (bootstrap: el agente contacta al servidor
-#                   y obtiene el token real automáticamente; Fase 9 R3)
-#   --server-fp X   SHA-256 SPKI del servidor en hex (https). Opcional: si no
-#                   se pasa, el script lo deriva del propio certificado (#851)
-#   --ca-file X     PEM de la CA del server (https con CA propia): se usa como
-#                   --cacert en la descarga del binario desde el server (#1367)
-#   --ssh-user X    usuario SSH del router (default: root)
-#   --ssh-key X     ruta a la identidad privada SSH (opción -i). OBLIGATORIA en
-#                   el server para routers que solo autorizan la llave del
-#                   NetPulse (la que muestra Settings); se pasa a ssh/scp.
-#   --binary X      binario local a copiar (default: descarga de la release)
-#   --version X.Y.Z versión a descargar (default: latest)
-#   --tmp           instala el binario en /tmp (RAM) en vez de /usr/sbin:
-#                   para equipos con flash justa. OJO: /tmp se pierde al
-#                   reiniciar — tras un reboot hay que reejecutar este script
-#                   (variante documentada del SPEC; el .ipk llega en el incr. 2)
-#   --uninstall     detiene y elimina servicio, binario y config del router
-#   --update-netgrip  si se detecta NetGrip en el router: actualizar el panel
-#                   NetGrip a su última release (apk/ipk de GitHub) en vez de
-#                   limitarse a entregarle la config (--force permite bajar de
-#                   versión)
+# Options:
+#   --host X        router IP/host (required)
+#   --server X      NetPulse server URL (required unless --uninstall)
+#   --slug X        unit slug in NetPulse (required unless --uninstall)
+#   --token X       unit token (required unless --uninstall and --pairing-token)
+#   --pairing-token X  pairing token (bootstrap: the agent contacts the server
+#                   and gets the real token by itself, phase 9 R3)
+#   --server-fp X   server SPKI SHA-256 in hex (https). Optional: without it
+#                   the script derives it from the certificate (#851)
+#   --ca-file X     PEM of the server CA (https with a private CA): used as
+#                   --cacert when downloading the binary from the server (#1367)
+#   --ssh-user X    router SSH user (default: root)
+#   --ssh-key X     path to the SSH private identity (-i). REQUIRED on the
+#                   server for routers that only authorize the NetPulse key
+#                   (the one Settings shows), it is passed to ssh/scp.
+#   --binary X      local binary to copy (default: download the release)
+#   --version X.Y.Z version to download (default: latest)
+#   --tmp           installs the binary in /tmp (RAM) instead of /usr/sbin,
+#                   for units with little flash. NOTE: /tmp is lost on reboot,
+#                   so the script has to run again after one (documented
+#                   variant of the SPEC, the .ipk lands in increment 2)
+#   --uninstall     stops and removes the service, binary and config
+#   --update-netgrip  if NetGrip is found on the router, update the NetGrip
+#                   panel to its latest release (apk/ipk from GitHub) instead
+#                   of only handing over the config (--force allows downgrades)
 #
-# Nota: todas las opciones admiten `--opt value` y `--opt=value` (#571).
+# Note: every option accepts `--opt value` and `--opt=value` (#571).
 #
-# Requisitos: ssh/scp al router (OpenWrt con dropbear), curl o wget local.
+# Requirements: ssh/scp to the router (OpenWrt with dropbear), curl or wget.
 # =============================================================================
 set -eu
 
@@ -64,7 +63,7 @@ ok()    { printf '%s✓%s %s\n' "$C_G" "$C_0" "$*"; }
 warn()  { printf '%s!%s %s\n' "$C_Y" "$C_0" "$*" >&2; }
 fatal() { _c=$1; shift; printf '%s✗ %s%s\n' "$C_R" "$*" "$C_0" >&2; exit "$_c"; }
 
-usage() { sed -n '2,/^# Requisitos/p' "$0" | sed '$d'; exit 0; }
+usage() { sed -n '2,/^# Requirements/p' "$0" | sed '$d'; exit 0; }
 
 # #571: acepta tanto `--opt value` como `--opt=value` (el copy-command de la app
 # y la cabecera de ayuda usan la forma con espacio).
@@ -97,22 +96,22 @@ while [ "$#" -gt 0 ]; do
         --update-netgrip)   UPDATE_NETGRIP=1; shift ;;
         --force)            NETGRIP_FORCE=1; shift ;;
         -h|--help)          usage ;;
-        *) fatal 10 "opción desconocida: $1 (prueba --help)" ;;
+        *) fatal 10 "unknown option: $1 (try --help)" ;;
     esac
 done
 
-[ -n "$HOST" ] || fatal 11 "falta --host (IP del router)"
+[ -n "$HOST" ] || fatal 11 "missing --host (router IP)"
 SSH="$SSH_USER@$HOST"
 # #572: identidad SSH explícita (p. ej. la llave de routers del server). Si no
 # se pasa, el cliente usa la default (~/.ssh/id_*) como antes.
 SSH_IDENT_ARGS=""
 if [ -n "$SSH_KEY" ]; then SSH_IDENT_ARGS="-i $SSH_KEY"; fi
-command -v ssh >/dev/null 2>&1 || fatal 12 "necesito ssh"
-command -v scp >/dev/null 2>&1 || fatal 12 "necesito scp"
+command -v ssh >/dev/null 2>&1 || fatal 12 "ssh is required"
+command -v scp >/dev/null 2>&1 || fatal 12 "scp is required"
 
 # --------------------------------------------------------------- uninstall --
 if [ "$UNINSTALL" -eq 1 ]; then
-    info "desinstalando $BIN_NAME de $SSH"
+    info "uninstalling $BIN_NAME from $SSH"
     ssh $SSH_IDENT_ARGS "$SSH" "
         $INIT_DST stop 2>/dev/null || true
         $INIT_DST disable 2>/dev/null || true
@@ -129,15 +128,15 @@ if [ "$UNINSTALL" -eq 1 ]; then
             mv /tmp/np-sysupgrade.conf /etc/sysupgrade.conf
         fi
     "
-    ok "$BIN_NAME desinstalado de $HOST"
+    ok "$BIN_NAME uninstalled from $HOST"
     exit 0
 fi
 
-[ -n "$SERVER" ] || fatal 11 "falta --server (URL de NetPulse)"
-[ -n "$SLUG" ]   || fatal 11 "falta --slug"
+[ -n "$SERVER" ] || fatal 11 "missing --server (NetPulse URL)"
+[ -n "$SLUG" ]   || fatal 11 "missing --slug"
 # Token: obligatorio --token o --pairing-token (no ambos)
 if [ -z "$TOKEN" ] && [ -z "$PAIRING_TOKEN" ]; then
-    fatal 11 "falta --token (o --pairing-token para bootstrap)"
+    fatal 11 "missing --token (or --pairing-token for bootstrap)"
 fi
 SERVER="${SERVER%/}"
 
@@ -154,7 +153,7 @@ case "$SERVER" in
             HOSTPORT=${HOSTPORT%%/*}
             SNI=${HOSTPORT%%:*}
             case "$HOSTPORT" in *:*) : ;; *) HOSTPORT="$HOSTPORT:443" ;; esac
-            info "derivando NETPULSE_SERVER_FP del certificado de $SERVER"
+            info "deriving NETPULSE_SERVER_FP from the certificate of $SERVER"
             if command -v openssl >/dev/null 2>&1; then
                 SERVER_FP=$(echo | openssl s_client -connect "$HOSTPORT" -servername "$SNI" 2>/dev/null \
                     | openssl x509 -pubkey -noout 2>/dev/null \
@@ -162,7 +161,7 @@ case "$SERVER" in
                     | { command -v sha256sum >/dev/null 2>&1 && sha256sum || shasum -a 256; } \
                     | cut -d' ' -f1)
             fi
-            [ -n "$SERVER_FP" ] || fatal 14 "servidor HTTPS sin --server-fp y no pude derivarlo (¿openssl disponible? ¿SNI correcto?). Obtén el SPKI sha256 del cert y repite con --server-fp X"
+            [ -n "$SERVER_FP" ] || fatal 14 "HTTPS server without --server-fp and could not derive it (is openssl available? is the SNI right?). Get the sha256 SPKI of the certificate and retry with --server-fp X"
             ok "NETPULSE_SERVER_FP=$SERVER_FP"
         fi
         ;;
@@ -175,7 +174,7 @@ esac
 # pública en el router (dropbear: /etc/dropbear/authorized_keys).
 ssh $SSH_IDENT_ARGS -o ConnectTimeout=8 -o BatchMode=yes "$SSH" true || {
     PUB="${SSH_KEY:-~/.ssh/id_ed25519.pub}"
-    fatal 13 "sin SSH por clave a $SSH (el instalador es no interactivo: la contraseña no vale). Autoriza la clave pública en el router y repite: ssh-copy-id -i $PUB $SSH"
+    fatal 13 "no key-based SSH to $SSH (the installer is not interactive, a password is no use). Authorize the public key on the router and retry: ssh-copy-id -i $PUB $SSH"
 }
 
 # Preflight del canal (#1654): el router tiene que alcanzar el MISMO $SERVER
@@ -184,9 +183,9 @@ ssh $SSH_IDENT_ARGS -o ConnectTimeout=8 -o BatchMode=yes "$SSH" true || {
 # al final, con el agente ya instalado y sin poder conectar. Se comprueba sin
 # validar el certificado a propósito: de la identidad del servidor se encarga
 # el pinning SPKI (NETPULSE_SERVER_FP).
-info "comprobando que $HOST alcanza $SERVER"
+info "checking that $HOST reaches $SERVER"
 ssh $SSH_IDENT_ARGS "$SSH" "if command -v curl >/dev/null 2>&1; then curl -fsSk --connect-timeout 5 -m 10 -o /dev/null '$SERVER/api/health'; elif command -v wget >/dev/null 2>&1; then wget -q --no-check-certificate -T 10 -O /dev/null '$SERVER/api/health'; else exit 3; fi" || {
-    fatal 15 "el router no alcanza $SERVER/api/health. Comprueba que ese host y puerto son accesibles desde la red del router. Si el servidor tiene TLS activado la URL es https, y el router debe llegar a ese puerto. Para usar otra URL en los agentes, define NETPULSE_AGENT_URL en el servidor (por ejemplo la de la LAN)"
+    fatal 15 "the router cannot reach $SERVER/api/health. Check that the host and the port are reachable from the router network. With TLS on the server the URL is https and the router must reach that port. To use another URL in the agents, set NETPULSE_AGENT_URL on the server (the LAN one, for instance)"
 }
 
 # ----------------------------------------------------- netgrip handoff --
@@ -194,7 +193,7 @@ ssh $SSH_IDENT_ARGS "$SSH" "if command -v curl >/dev/null 2>&1; then curl -fsSk
 # instala el standalone. Se le entrega la config (sin pisar la existente) y
 # opcionalmente se actualiza el propio NetGrip (--update-netgrip).
 if ssh $SSH_IDENT_ARGS "$SSH" '[ -x /usr/sbin/netgrip ] || [ -f /etc/init.d/netgrip ]'; then
-    info "NetGrip detectado en $HOST: el agente embebido ya cubre este router"
+    info "NetGrip found on $HOST, its embedded agent already covers this router"
     # Token line igual que el flujo normal
     if [ -n "$PAIRING_TOKEN" ]; then
         HANDOFF_TOKEN="NETPULSE_PAIRING_TOKEN=$PAIRING_TOKEN"
@@ -216,9 +215,9 @@ if [ ! -f "\$NG_ENV" ]; then
         echo "NETPULSE_ENABLED=1"
     } > "\$NG_ENV"
     chmod 600 "\$NG_ENV"
-    echo "config-escrita"
+    echo "config-written"
 else
-    echo "config-existente-conservada"
+    echo "existing-config-kept"
 fi
 HANDOFF
 
@@ -227,14 +226,14 @@ HANDOFF
         CUR=$(ssh $SSH_IDENT_ARGS "$SSH" "(apk info netgrip 2>/dev/null || opkg status netgrip 2>/dev/null | sed -n 's/^Version: //p') | head -1")
         if command -v curl >/dev/null 2>&1; then FETCH="curl -fsSL --retry 3 --connect-timeout 10"
         elif command -v wget >/dev/null 2>&1; then FETCH="wget -q -O-"
-        else fatal 21 "necesito curl o wget"; fi
+        else fatal 21 "curl or wget is required"; fi
         NG_TAG=$($FETCH "https://api.github.com/repos/gnacho/netgrip/releases/latest" \
-            | grep -oE '"tag_name"[[:space:]]*:[[:space:]]*"[^"]*"' | head -1 | cut -d'"' -f4) || fatal 41 "no pude resolver la última release de NetGrip"
+            | grep -oE '"tag_name"[[:space:]]*:[[:space:]]*"[^"]*"' | head -1 | cut -d'"' -f4) || fatal 41 "could not resolve the latest NetGrip release"
         NG_VER=$(echo "$NG_TAG" | sed 's/^v//')
         ARCH=$(ssh $SSH_IDENT_ARGS "$SSH" uname -m)
         case "$ARCH" in
             aarch64|arm64) NG_ARCH=arm64 ;;
-            *) fatal 20 "NetGrip solo publica builds arm64 (router: $ARCH)" ;;
+            *) fatal 20 "NetGrip only publishes arm64 builds (router: $ARCH)" ;;
         esac
         if ssh $SSH_IDENT_ARGS "$SSH" command -v apk >/dev/null 2>&1; then
             NG_ASSET="netgrip-${NG_VER}-r1-${NG_ARCH}.apk"; NG_INST="apk add --allow-untrusted /tmp/netgrip-update.pkg"
@@ -242,30 +241,30 @@ HANDOFF
             NG_ASSET="netgrip_${NG_VER}-1_aarch64_cortex-a53.ipk"; NG_INST="opkg install /tmp/netgrip-update.pkg"
         fi
         NG_URL="https://github.com/gnacho/netgrip/releases/download/${NG_TAG}/${NG_ASSET}"
-        info "actualizando NetGrip a $NG_TAG (instalado: ${CUR:-desconocido})"
+        info "updating NetGrip to $NG_TAG (installed: ${CUR:-unknown})"
         if [ -n "$CUR" ] && [ "$NETGRIP_FORCE" -ne 1 ]; then
             CUR_V=$(echo "$CUR" | sed 's/^netgrip-//; s/ description:.*//; s/-r[0-9]*$//')
             if [ "$CUR_V" = "$NG_VER" ]; then
-                ok "NetGrip ya está en $NG_VER; nada que hacer (usa --force para reinstalar)"
+                ok "NetGrip is already on $NG_VER, nothing to do (use --force to reinstall)"
                 ssh $SSH_IDENT_ARGS "$SSH" "/etc/init.d/netgrip restart >/dev/null 2>&1 || true"
-                ok "agente embebido rearmado (slug $SLUG)"
+                ok "embedded agent rearmed (slug $SLUG)"
                 exit 0
             fi
             OLDEST=$(printf '%s\n%s\n' "$CUR_V" "$NG_VER" | sort -V | head -1)
             if [ "$OLDEST" = "$NG_VER" ]; then
-                warn "la release $NG_TAG es MÁS VIEJA que la instalada ($CUR_V): router con build no liberada"
-                fatal 43 "downgrade rechazado (usa --force si de verdad lo quieres)"
+                warn "release $NG_TAG is OLDER than the installed one ($CUR_V), the router runs an unreleased build"
+                fatal 43 "downgrade refused (use --force if you really want it)"
             fi
         fi
-        $FETCH "$NG_URL" -o "$TMP/netgrip-update.pkg" || fatal 42 "descarga falló: $NG_URL"
+        $FETCH "$NG_URL" -o "$TMP/netgrip-update.pkg" || fatal 42 "download failed: $NG_URL"
         scp -Oq $SSH_IDENT_ARGS "$TMP/netgrip-update.pkg" "$SSH:/tmp/netgrip-update.pkg"
         ssh $SSH_IDENT_ARGS "$SSH" "$NG_INST && rm -f /tmp/netgrip-update.pkg"
-        ok "NetGrip actualizado a $NG_TAG"
+        ok "NetGrip updated to $NG_TAG"
     fi
 
     ssh $SSH_IDENT_ARGS "$SSH" "/etc/init.d/netgrip restart >/dev/null 2>&1 || true"
-    ok "agente embebido de NetGrip rearmado (server $SERVER, slug $SLUG)"
-    info "el agente standalone NO se instala en routers con NetGrip"
+    ok "NetGrip embedded agent rearmed (server $SERVER, slug $SLUG)"
+    info "the standalone agent is NOT installed on routers running NetGrip"
     exit 0
 fi
 
@@ -273,16 +272,16 @@ fi
 BIN_DST="/usr/sbin/$BIN_NAME"
 [ "$USE_TMP" -eq 1 ] && BIN_DST="/tmp/$BIN_NAME"
 
-TMP=$(mktemp -d) || fatal 34 "mktemp falló"
+TMP=$(mktemp -d) || fatal 34 "mktemp failed"
 cleanup() { rm -rf "$TMP"; }
 trap cleanup EXIT INT TERM
 
 if [ -n "$BINARY" ]; then
-    [ -f "$BINARY" ] || fatal 30 "binario local no encontrado: $BINARY"
+    [ -f "$BINARY" ] || fatal 30 "local binary not found: $BINARY"
     cp "$BINARY" "$TMP/$BIN_NAME"
-    info "usando binario local: $BINARY"
+    info "using the local binary: $BINARY"
 else
-    ARCH=$(ssh $SSH_IDENT_ARGS "$SSH" uname -m) || fatal 31 "no pude detectar la arquitectura de $HOST"
+    ARCH=$(ssh $SSH_IDENT_ARGS "$SSH" uname -m) || fatal 31 "could not detect the architecture of $HOST"
     case "$ARCH" in
         aarch64|arm64) GOARCH=arm64 ;;
         armv7l|armv7)  GOARCH=armv7 ;;
@@ -295,15 +294,15 @@ else
             case "$END" in
                 1) GOARCH=mipsle ;;
                 2) GOARCH=mips ;;
-                *) fatal 20 "no pude detectar el endianness MIPS de $HOST" ;;
+                *) fatal 20 "could not detect the MIPS endianness of $HOST" ;;
             esac ;;
-        *) fatal 20 "arquitectura no soportada: $ARCH (release: arm64, armv7, mipsle, mips)" ;;
+        *) fatal 20 "unsupported architecture: $ARCH (releases: arm64, armv7, mipsle, mips)" ;;
     esac
     if command -v curl >/dev/null 2>&1; then FETCH="curl -fsSL --retry 3 --connect-timeout 10"
     elif command -v wget >/dev/null 2>&1; then FETCH="wget -q -O-"
-    else fatal 21 "necesito curl o wget"; fi
+    else fatal 21 "curl or wget is required"; fi
     fetch_to() { $FETCH "$1" > "$2"; }
-    command -v sha256sum >/dev/null 2>&1 || fatal 21 "falta sha256sum"
+    command -v sha256sum >/dev/null 2>&1 || fatal 21 "sha256sum is missing"
     # ------------------------------------------------------------- server --
     # #1367: el binario sale del PROPIO server con la arch detectada arriba.
     # Antes el one-liner pre-descargaba sin ?arch= y el handler defaulteaba
@@ -315,7 +314,7 @@ else
     if [ -z "$NETPULSE_VERSION" ] && [ -n "$TOKEN" ] && command -v curl >/dev/null 2>&1; then
         CA_ARGS=""
         [ -n "$CA_FILE" ] && CA_ARGS="--cacert $CA_FILE"
-        info "descargando netpulse-agent ($GOARCH) de $SERVER"
+        info "downloading netpulse-agent ($GOARCH) from $SERVER"
         if curl -fsSL $CA_ARGS --connect-timeout 10 --retry 3 \
                 -H "Authorization: Bearer $TOKEN" -D "$TMP/headers" \
                 "$SERVER/api/agents/$SLUG/binary?arch=$GOARCH" -o "$TMP/$BIN_NAME" \
@@ -323,23 +322,23 @@ else
             SUM_REF=$(grep -i '^x-checksum-sha256:' "$TMP/headers" | tr -d '\r' | awk '{print $2}')
             if [ -n "$SUM_REF" ]; then
                 SUM_FILE=$(sha256sum "$TMP/$BIN_NAME" | awk '{print $1}')
-                [ "$SUM_FILE" = "$SUM_REF" ] || fatal 33 "sha256 NO COINCIDE (server, arch $GOARCH)"
-                ok "sha256 verificado (server)"
+                [ "$SUM_FILE" = "$SUM_REF" ] || fatal 33 "sha256 MISMATCH (server, arch $GOARCH)"
+                ok "sha256 verified (server)"
             else
-                warn "el server no envió X-Checksum-Sha256; sin verificación de suma"
+                warn "the server sent no X-Checksum-Sha256, no checksum verification"
             fi
         else
-            warn "descarga del server falló; pruebo con la release de GitHub"
+            warn "download from the server failed, trying the GitHub release"
             rm -f "$TMP/$BIN_NAME"
         fi
     fi
 
     if [ ! -s "$TMP/$BIN_NAME" ]; then
         if [ -z "$NETPULSE_VERSION" ]; then
-            info "resolviendo última release"
+            info "resolving the latest release"
             NETPULSE_VERSION=$($FETCH "https://api.github.com/repos/$GH_REPO/releases/latest" \
                 | grep -oE '"tag_name"[[:space:]]*:[[:space:]]*"[^"]*"' | head -1 | cut -d'"' -f4) \
-                || fatal 31 "no pude resolver la última release; usa --version=X.Y.Z"
+                || fatal 31 "could not resolve the latest release, use --version=X.Y.Z"
         fi
         VERSION_NORM=$(echo "$NETPULSE_VERSION" | sed 's/^v//')
         case "$NETPULSE_VERSION" in
@@ -349,20 +348,20 @@ else
         ASSET="${BIN_NAME}_${VERSION_NORM}_linux_${GOARCH}.tar.gz"
         BASE_URL="https://github.com/$GH_REPO/releases/download/$NETPULSE_TAG"
         info "descargando $ASSET"
-        fetch_to "$BASE_URL/$ASSET" "$TMP/$ASSET" || fatal 32 "descarga falló: $BASE_URL/$ASSET"
-        fetch_to "$BASE_URL/checksums.txt" "$TMP/checksums.txt" || fatal 32 "checksums.txt no está en $NETPULSE_VERSION"
+        fetch_to "$BASE_URL/$ASSET" "$TMP/$ASSET" || fatal 32 "download failed: $BASE_URL/$ASSET"
+        fetch_to "$BASE_URL/checksums.txt" "$TMP/checksums.txt" || fatal 32 "checksums.txt is not in $NETPULSE_VERSION"
         SUM_FILE=$(sha256sum "$TMP/$ASSET" | awk '{print $1}')
         SUM_REF=$(grep "  $ASSET\$" "$TMP/checksums.txt" | awk '{print $1}')
-        [ -n "$SUM_REF" ] || fatal 33 "$ASSET no está en checksums.txt"
-        [ "$SUM_FILE" = "$SUM_REF" ] || fatal 33 "sha256 NO COINCIDE para $ASSET"
-        ok "sha256 verificado"
+        [ -n "$SUM_REF" ] || fatal 33 "$ASSET is not in checksums.txt"
+        [ "$SUM_FILE" = "$SUM_REF" ] || fatal 33 "sha256 MISMATCH for $ASSET"
+        ok "sha256 verified"
         tar -xzf "$TMP/$ASSET" -C "$TMP"
     fi
 fi
-[ -s "$TMP/$BIN_NAME" ] || fatal 34 "no hay binario que instalar"
+[ -s "$TMP/$BIN_NAME" ] || fatal 34 "no binary to install"
 
 # ------------------------------------------------------------------ install --
-info "copiando binario → $SSH:$BIN_DST"
+info "copying the binary to $SSH:$BIN_DST"
 # Reinstalación: si hay una versión previa en marcha, parar el servicio ANTES
 # del scp — el proceso vivo tiene el binario abierto y la copia falla con
 # "Text file busy". El servicio se reactiva al final (enable + restart).
@@ -376,13 +375,13 @@ ssh $SSH_IDENT_ARGS "$SSH" "/etc/init.d/$INIT_NAME stop >/dev/null 2>&1 || true"
 # salida. Aquí cualquier fallo aborta con el código y el motivo a la vista.
 BIN_TMP="$BIN_DST.new"
 scp -Oq $SSH_IDENT_ARGS "$TMP/$BIN_NAME" "$SSH:$BIN_TMP" \
-    || fatal 35 "no pude copiar el binario a $BIN_TMP en el router (revisa espacio libre con 'df -h /' y que $BIN_DST sea escribible)"
+    || fatal 35 "could not copy the binary to $BIN_TMP on the router (check free space with 'df -h /' and that $BIN_DST is writable)"
 ssh $SSH_IDENT_ARGS "$SSH" "chmod 0755 $BIN_TMP && mv -f $BIN_TMP $BIN_DST" \
-    || { ssh $SSH_IDENT_ARGS "$SSH" "rm -f $BIN_TMP" || true; fatal 36 "copié $BIN_TMP pero no pude moverlo a $BIN_DST en el router"; }
-ok "binario en $BIN_DST"
+    || { ssh $SSH_IDENT_ARGS "$SSH" "rm -f $BIN_TMP" || true; fatal 36 "copied $BIN_TMP but could not move it to $BIN_DST on the router"; }
+ok "binary at $BIN_DST"
 
 # Config (chmod 600: el token solo lo lee root)
-info "escribiendo $ENV_FILE (chmod 600)"
+info "writing $ENV_FILE (chmod 600)"
 # Construir la línea de token: PAIRING_TOKEN (bootstrap) o TOKEN (normal)
 if [ -n "$PAIRING_TOKEN" ]; then
     TOKEN_LINE="NETPULSE_PAIRING_TOKEN=$PAIRING_TOKEN"
@@ -423,10 +422,10 @@ EOF
 if [ -n "$USER_VARS" ]; then
     printf '%s\n' "$USER_VARS" | ssh $SSH_IDENT_ARGS "$SSH" "cat >> $ENV_FILE"
 fi
-ok "config escrita"
+ok "config written"
 
 # Servicio procd (respawn + self-heal del binario tras sysupgrade)
-info "instalando servicio procd"
+info "installing the procd service"
 SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
 if [ -f "$SCRIPT_DIR/agent/deploy/$INIT_NAME.init" ]; then
     scp -Oq $SSH_IDENT_ARGS "$SCRIPT_DIR/agent/deploy/$INIT_NAME.init" "$SSH:$INIT_DST"
@@ -458,7 +457,7 @@ selfheal_binary() {
         https|HTTPS) ;;
         *)
             [ "${NETPULSE_ALLOW_INSECURE_COMMANDS:-}" = "1" ] || {
-                logger -t netpulse-agent "self-heal: HTTP sin NETPULSE_ALLOW_INSECURE_COMMANDS=1, binario no descargado"
+                logger -t netpulse-agent "self-heal: HTTP without NETPULSE_ALLOW_INSECURE_COMMANDS=1, binary not downloaded"
                 return 1
             }
             ;;
@@ -477,7 +476,7 @@ selfheal_binary() {
     esac
     local url tmp hdr digest sum
     url="${NETPULSE_SERVER%/}/api/agents/${NETPULSE_SLUG}/binary?arch=${ARCH}"
-    logger -t netpulse-agent "self-heal: binario ausente, descargando de $NETPULSE_SERVER"
+    logger -t netpulse-agent "self-heal: binary missing, downloading from $NETPULSE_SERVER"
     tmp=/tmp/netpulse-agent.$$
     hdr=/tmp/netpulse-agent.hdr.$$
     if command -v curl >/dev/null 2>&1; then
@@ -489,19 +488,19 @@ selfheal_binary() {
     rm -f "$hdr"
     case "$digest" in
         ""|*[!0123456789abcdefABCDEF]*)
-            logger -t netpulse-agent "self-heal: sin X-Checksum-Sha256 válido, binario descartado"
+            logger -t netpulse-agent "self-heal: no valid X-Checksum-Sha256, binary discarded"
             rm -f "$tmp"
             return 1 ;;
     esac
-    [ "${#digest}" -eq 64 ] || { logger -t netpulse-agent "self-heal: digest con longitud inválida, binario descartado"; rm -f "$tmp"; return 1; }
+    [ "${#digest}" -eq 64 ] || { logger -t netpulse-agent "self-heal: digest with invalid length, binary discarded"; rm -f "$tmp"; return 1; }
     sum=$(sha256sum "$tmp" 2>/dev/null | awk '{print $1}')
     if [ -z "$sum" ] || [ "$(printf '%s' "$sum" | tr 'A-F' 'a-f')" != "$(printf '%s' "$digest" | tr 'A-F' 'a-f')" ]; then
-        logger -t netpulse-agent "self-heal: SHA-256 no coincide, binario descartado"
+        logger -t netpulse-agent "self-heal: SHA-256 mismatch, binary discarded"
         rm -f "$tmp"
         return 1
     fi
     chmod 0755 "$tmp" && mv "$tmp" /usr/sbin/netpulse-agent || { rm -f "$tmp"; return 1; }
-    logger -t netpulse-agent "self-heal: binario restaurado"
+    logger -t netpulse-agent "self-heal: binary restored"
     BIN=/usr/sbin/netpulse-agent
     return 0
 }
@@ -514,12 +513,12 @@ cleanup_stale_watchdog_cron() {
     [ -f /usr/sbin/netpulse-watchdog ] && return 0
     crontab -l 2>/dev/null | grep -q netpulse-watchdog || return 0
     ( crontab -l 2>/dev/null | grep -v netpulse-watchdog ) | crontab - 2>/dev/null || true
-    logger -t netpulse-agent "watchdog cron huérfano retirado (#879)"
+    logger -t netpulse-agent "orphan watchdog cron entry removed (#879)"
 }
 
 start_service() {
     cleanup_stale_watchdog_cron
-    selfheal_binary || logger -t netpulse-agent "self-heal: no se pudo restaurar el binario"
+    selfheal_binary || logger -t netpulse-agent "self-heal: could not restore the binary"
     procd_open_instance netpulse-agent
     procd_set_param command "$BIN"
     procd_set_param respawn "${respawn_threshold:-3600}" "${respawn_timeout:-5}" "${respawn_retry:-5}"
@@ -531,7 +530,7 @@ start_service() {
 INITEOF
 fi
 ssh $SSH_IDENT_ARGS "$SSH" "chmod 0755 $INIT_DST && $INIT_DST enable && $INIT_DST restart"
-ok "servicio $INIT_NAME habilitado y arrancado"
+ok "service $INIT_NAME enabled and started"
 
 # ------------------------------------------------------- sysupgrade (#1476) --
 # OpenWrt solo conserva en una actualización de imagen los conffiles de los
@@ -540,9 +539,9 @@ ok "servicio $INIT_NAME habilitado y arrancado"
 # ficheros sueltos: sin esta lista desaparecen al actualizar y el self-heal del
 # init nunca llega a correr, porque lo que se pierde es el punto de entrada.
 # Mismo gesto que el flujo owut (firmware.EnsureStackPreserved), idempotente.
-info "preservando el agente en /etc/sysupgrade.conf (#1476)"
+info "preserving the agent in /etc/sysupgrade.conf (#1476)"
 ssh $SSH_IDENT_ARGS "$SSH" "P=/etc/sysupgrade.conf; touch \$P; ensure() { grep -qxF \"\$1\" \$P 2>/dev/null || echo \"\$1\" >> \$P; }; ensure /usr/sbin/$BIN_NAME; ensure $ENV_FILE; ensure $INIT_DST; for f in /etc/rc.d/*$INIT_NAME*; do [ -e \"\$f\" ] && ensure \"\$f\"; done; true" \
-    || warn "no pude actualizar /etc/sysupgrade.conf: el agente no sobrevivirá a una actualización de firmware"
+    || warn "could not update /etc/sysupgrade.conf, the agent will not survive a firmware upgrade"
 
 # ------------------------------------------------- lldpd en puertos físicos (#1369) --
 # lldpd bound al bridge (br-lan) no recibe vecinos en varios targets
@@ -556,14 +555,14 @@ ssh $SSH_IDENT_ARGS "$SSH" "P=/etc/sysupgrade.conf; touch \$P; ensure() { grep -
 if ssh $SSH_IDENT_ARGS "$SSH" "command -v lldpcli >/dev/null 2>&1"; then
     LLDP_IF=$(ssh $SSH_IDENT_ARGS "$SSH" "uci -q get lldpd.config.interface 2>/dev/null")
     if printf '%s' "$LLDP_IF" | grep -qE '(^|,)[[:space:]]*(lan|wan|eth)'; then
-        ok "lldpd ya escucha en puertos físicos (${LLDP_IF:-auto})"
+        ok "lldpd already listens on physical ports (${LLDP_IF:-auto})"
     else
         ssh $SSH_IDENT_ARGS "$SSH" "uci set lldpd.config.interface='lan*,wan' && uci commit lldpd && /etc/init.d/lldpd restart >/dev/null 2>&1" \
-            && ok "lldpd reconfigurado: escucha en puertos físicos (lan*,wan)${LLDP_IF:+ - antes: $LLDP_IF}" \
-            || warn "no se pudo reconfigurar lldpd; a mano: uci set lldpd.config.interface='lan*,wan' && uci commit lldpd && /etc/init.d/lldpd restart"
+            && ok "lldpd reconfigured, listening on physical ports (lan*,wan)${LLDP_IF:+ - before: $LLDP_IF}" \
+            || warn "could not reconfigure lldpd, by hand: uci set lldpd.config.interface='lan*,wan' && uci commit lldpd && /etc/init.d/lldpd restart"
     fi
 else
-    info "lldpd no instalado: sin evidencia LLDP directa (con 'opkg install lldpd' la activas; reejecuta este instalador y lo deja en puertos físicos)"
+    info "lldpd not installed, no direct LLDP evidence (with 'opkg install lldpd' you enable it, then run this installer again and it moves it to the physical ports)"
 fi
 
 # Watchdog cron: NO se instala (#851). Si el agente crashea en bucle, un
@@ -577,19 +576,19 @@ ssh $SSH_IDENT_ARGS "$SSH" "
         sed -i '/netpulse-watchdog/d' /etc/crontabs/root
     fi
 "
-ok "watchdog cron no instalado (legacy limpiado)"
+ok "watchdog cron not installed (legacy entry removed)"
 
 sleep 2
 if ssh $SSH_IDENT_ARGS "$SSH" "logread -e $INIT_NAME" 2>/dev/null | tail -2 | grep -q .; then
-    info "últimas líneas de syslog:"
+    info "last syslog lines:"
     ssh $SSH_IDENT_ARGS "$SSH" "logread -e $INIT_NAME | tail -2" || true
 fi
 
-printf '\n%s================ %s instalado ================%s\n' "$C_G" "$BIN_NAME" "$C_0"
+printf '\n%s================ %s installed ================%s\n' "$C_G" "$BIN_NAME" "$C_0"
 printf 'Router:   %s (slug: %s)\n' "$HOST" "$SLUG"
-printf 'Binario:  %s%s\n' "$BIN_DST" "$( [ "$USE_TMP" -eq 1 ] && echo '  (variante /tmp: se pierde al reiniciar — reejecuta el instalador tras un reboot)' || true)"
-printf 'Config:   %s (chmod 600; edítalo y haz /etc/init.d/%s restart)\n' "$ENV_FILE" "$INIT_NAME"
-printf 'Servidor: %s\n' "$SERVER"
+printf 'Binary:   %s%s\n' "$BIN_DST" "$( [ "$USE_TMP" -eq 1 ] && echo '  (/tmp variant: lost on reboot, run the installer again after one)' || true)"
+printf 'Config:   %s (chmod 600, edit it and run /etc/init.d/%s restart)\n' "$ENV_FILE" "$INIT_NAME"
+printf 'Server:   %s\n' "$SERVER"
 printf 'Logs:     ssh %s logread -e %s\n' "$SSH" "$INIT_NAME"
-printf 'Verifica: GET %s/api/agents (last_seen + versión en unos 15 s)\n' "$SERVER"
+printf 'Check:    GET %s/api/agents (last_seen + version within 15 s)\n' "$SERVER"
 printf '%s================================================%s\n\n' "$C_G" "$C_0"

+ 21 - 9
server-go/cmd/netpulse/main.go

@@ -100,7 +100,7 @@ func isSSEStreamPath(p string) bool {
 func webhookHostForLog(rawURL string) string {
 	u, err := url.Parse(rawURL)
 	if err != nil || u.Host == "" {
-		return "(sin host)"
+		return "(no host)"
 	}
 	return u.Host
 }
@@ -139,9 +139,21 @@ func newHTTPServer(addr string, h http.Handler) *http.Server {
 	}
 }
 
+// #2058: systemd's journal already stamps every line with the date and the
+// time, and the default prefix of the log package wrote a second one in front
+// of it. JOURNAL_STREAM is set for any process whose output goes to the
+// journal, so the prefix is dropped only there: in a terminal or in a
+// redirected file that timestamp is the only one there is.
+func configureLogging() {
+	if os.Getenv("JOURNAL_STREAM") != "" {
+		log.SetFlags(0)
+	}
+}
+
 func main() {
+	configureLogging()
 	if err := run(); err != nil {
-		log.Printf("[netpulse] error fatal en arranque: %v", err)
+		log.Printf("[netpulse] fatal error during startup: %v", err)
 		os.Exit(1)
 	}
 }
@@ -389,7 +401,7 @@ func run() error {
 	var webhookNotifier *webhook.Notifier
 	if cfg.Webhook != nil && cfg.Webhook.Enabled {
 		webhookNotifier = webhook.NewNotifier(*cfg.Webhook, dbHandle)
-		log.Printf("[netpulse] webhook saliente activo: %s", webhookHostForLog(cfg.Webhook.URL))
+		log.Printf("[netpulse] outgoing webhook active: %s", webhookHostForLog(cfg.Webhook.URL))
 	}
 
 	// Telegram (#326): transport nativo si está configurado en kv.
@@ -398,14 +410,14 @@ func run() error {
 	tgCfg := telegram.LoadConfig(tgKV)
 	if tgCfg.Enabled && tgCfg.BotToken != "" && tgCfg.ChatID != "" {
 		telegramNotifier = telegram.NewNotifier(tgKV)
-		log.Printf("[netpulse] telegram activo: chat %s", tgCfg.ChatID)
+		log.Printf("[netpulse] telegram active: chat %s", tgCfg.ChatID)
 	}
 
 	// ntfy (#766): el notifier vive SIEMPRE (el worker decide por config en
 	// cada evento): activable desde la UI sin reiniciar el servicio.
 	ntfyNotifier := ntfy.NewNotifier(&mainKVAdapter{db: dbHandle.DB})
 	if ntfyCfg := ntfy.LoadConfig(&mainKVAdapter{db: dbHandle.DB}); ntfyCfg.Enabled && ntfyCfg.Topic != "" {
-		log.Printf("[netpulse] ntfy activo: %s/%s", ntfyCfg.Server, ntfy.MaskTopic(ntfyCfg.Topic))
+		log.Printf("[netpulse] ntfy active: %s/%s", ntfyCfg.Server, ntfy.MaskTopic(ntfyCfg.Topic))
 	}
 
 	// Notifier compuesto: push + webhook + telegram + ntfy (SetNotifier solo admite UNO).
@@ -515,7 +527,7 @@ func run() error {
 		if cooldown <= 0 {
 			cooldown = rearmer.AutoCooldownDefault
 		}
-		log.Printf("[netpulse] supervisor de auto-rearme activo (cooldown %d s)", int(cooldown.Seconds()))
+		log.Printf("[netpulse] auto-rearm supervisor active (cooldown %ds)", int(cooldown.Seconds()))
 	}
 
 	// Fase 7.3: SSE bidireccional agente↔servidor (AgentHub permite al
@@ -751,7 +763,7 @@ func run() error {
 					return
 				}
 				if n := adapter.AlertsEngine().PruneLogByRetention(); n > 0 {
-					log.Printf("[netpulse] poda del log de alertas: %d entradas por antigüedad", n)
+					log.Printf("[netpulse] alert log prune: %d entries by age", n)
 				}
 			}
 			prune() // primera pasada al arrancar
@@ -784,7 +796,7 @@ func run() error {
 			Engine:       engine,
 			Version:      httpapi.Version,
 		})
-		log.Printf("[netpulse] MCP server activo en /mcp (streamable-HTTP, auth: API token Bearer, LAN-only)")
+		log.Printf("[netpulse] MCP server active on /mcp (streamable HTTP, auth: API token Bearer, LAN-only)")
 	} else if cfg.MCPEnabled {
 		log.Printf("[netpulse] warning: NETPULSE_MCP_ENABLED=1 but no token store, MCP disabled")
 	}
@@ -899,7 +911,7 @@ func run() error {
 		if listenHost == "" {
 			listenHost = "0.0.0.0"
 		}
-		log.Printf("[netpulse] v%s · modo %s · %s://%s:%d", httpapi.Version, adapter.Mode(), scheme, listenHost, cfg.Port)
+		log.Printf("[netpulse] v%s · mode %s · %s://%s:%d", httpapi.Version, adapter.Mode(), scheme, listenHost, cfg.Port)
 		if cfg.BindAddr == "127.0.0.1" || cfg.BindAddr == "localhost" {
 			log.Print("[netpulse] listener solo en loopback: la UI no responde desde la LAN (NETPULSE_BIND=0.0.0.0 para abrirla, o activa TLS)")
 		}

+ 1 - 1
server-go/cmd/netpulse/main_test.go

@@ -109,7 +109,7 @@ func TestWebhookHostForLog(t *testing.T) {
 		"https://user:pass@hooks.example.com/hook/abc": "hooks.example.com",
 		"https://hooks.example.com/path":               "hooks.example.com",
 		"http://192.168.1.50:8080/h":                   "192.168.1.50:8080",
-		"no-es-una-url":                                "(sin host)",
+		"no-es-una-url":                                "(no host)",
 	}
 	for raw, want := range cases {
 		if got := webhookHostForLog(raw); got != want {

+ 2 - 2
server-go/internal/adapters/live.go

@@ -638,7 +638,7 @@ func NewLive(cfg *config.Config, d *db.DB, initial []RouterConfig, pool *SSHPool
 		if err := d.QueryRow("SELECT value FROM kv WHERE key = 'attrib_v2'").Scan(&flag); err == sql.ErrNoRows {
 			_, _ = d.Exec("DELETE FROM device_attrib")
 			_, _ = d.Exec("INSERT INTO kv (key, value) VALUES ('attrib_v2', '1')")
-			log.Printf("[netpulse] device_attrib limpiada (attrib_v2: solo wireless persiste)")
+			log.Printf("[netpulse] device_attrib cleared (attrib_v2: only wireless persists)")
 		}
 		// issue #248: memoria per-MAC de "desconocido ya alertado", persistida
 		// en kv para que un reinicio del servidor no vuelva a alertar las
@@ -3161,7 +3161,7 @@ func (l *Live) pollWireGuard(devices []Device) *WireGuardStats {
 	l.mu.Unlock()
 	stats, err := GetWireGuardStats(l.pool, gw.SSHAddr(), l.cfg.WGInterface, "", peerNames, urgent)
 	if err != nil {
-		log.Printf("[netpulse] WireGuard no disponible: %v", err)
+		log.Printf("[netpulse] WireGuard unavailable: %v", err)
 		return &WireGuardStats{Interface: l.cfg.WGInterface, Subnet: "", Status: "inactive", Peers: []WGPeer{}, RouterID: gw.ID}
 	}
 	// #2019: el poller necesita saber de qué router son estos peers para

+ 1 - 1
server-go/internal/adapters/snmp_live.go

@@ -142,7 +142,7 @@ func (l *Live) pollRouterSNMP(cfg RouterConfig) (*routerPolled, error) {
 		l.snmpFdbCount[cfg.ID] = len(fdb)
 		l.mu.Unlock()
 		if !seen || last != len(fdb) {
-			log.Printf("[netpulse] SNMP FDB %s: %d entradas (fuente %s; pdus dot1d=%d dot1q=%d)", cfg.LogLabel(), len(fdb), fdbPoll.Source, fdbPoll.RawDot1d, fdbPoll.RawDot1q)
+			log.Printf("[netpulse] SNMP FDB %s: %d entries (source %s, pdus dot1d=%d dot1q=%d)", cfg.LogLabel(), len(fdb), fdbPoll.Source, fdbPoll.RawDot1d, fdbPoll.RawDot1q)
 		}
 	}
 

+ 3 - 3
server-go/internal/adapters/sshpool.go

@@ -163,9 +163,9 @@ func (p *SSHPool) hostKeyCallback() (ssh.HostKeyCallback, error) {
 	// de cargarlo: el fichero también lo escriben procesos ssh externos, que
 	// no pueden tomar el lock del paquete.
 	if dropped, serr := sshkey.SanitizeKnownHosts(p.khPath); serr != nil {
-		log.Printf("ssh: saneando %s: %v", p.khPath, serr)
+		log.Printf("[netpulse:ssh] saneando %s: %v", p.khPath, serr)
 	} else if dropped > 0 {
-		log.Printf("ssh: %d entrada(s) ilegible(s) descartada(s) de %s (#2014)", dropped, p.khPath)
+		log.Printf("[netpulse:ssh] %d unreadable known_hosts line(s) dropped from %s (#2014)", dropped, p.khPath)
 	}
 	checker, err := knownhosts.New(p.khPath)
 	if err != nil {
@@ -188,7 +188,7 @@ func (p *SSHPool) hostKeyCallback() (ssh.HostKeyCallback, error) {
 				oldFP = ssh.FingerprintSHA256(keyErr.Want[0].Key)
 			}
 			newFP := ssh.FingerprintSHA256(key)
-			log.Printf("ssh %s: host key changed (%s -> %s); re-onboard requerido", hostname, oldFP, newFP)
+			log.Printf("[netpulse:ssh] %s: host key changed (%s -> %s), re-onboard required", hostname, oldFP, newFP)
 			return &HostKeyChangedError{Host: hostname, OldFP: oldFP, NewFP: newFP}
 		}
 		// Host desconocido → accept-new

+ 115 - 116
server-go/internal/agentinstall/install-agent.sh

@@ -1,50 +1,49 @@
 #!/bin/sh
 # =============================================================================
-# NetPulse Agent — one-liner installer (OpenWrt, vía SSH desde esta máquina)
+# NetPulse Agent - one-liner installer (OpenWrt, over SSH from this machine)
 #
-#   Instala el agente nativo netpulse-agent en un router/AP OpenWrt: copia el
-#   binario (arm64/armv7/mipsle/mips), escribe /etc/netpulse-agent.env (chmod
-#   600) e instala el servicio procd (respawn) habilitado y arrancado. Añade
-#   binario, init y env a /etc/sysupgrade.conf para que sobrevivan a una
-#   actualización de firmware (#1476).
+#   Installs the native netpulse-agent on an OpenWrt router/AP: copies the
+#   binary (arm64/armv7/mipsle/mips), writes /etc/netpulse-agent.env (chmod
+#   600) and installs the procd service (respawn), enabled and started. Adds
+#   the binary, the init script and the env file to /etc/sysupgrade.conf so
+#   they survive a firmware upgrade (#1476).
 #
-# Uso (el token lo genera POST /api/agents y se muestra UNA sola vez):
+# Usage (the token is generated by POST /api/agents and shown ONCE):
 #   sh install-agent.sh --host 192.168.8.3 \
 #       --server http://192.168.8.1:3000 --slug patio --token <64-hex>
 #   sh install-agent.sh --host 192.168.8.3 --server ... --slug ... --token ... \
-#       --binary ./netpulse-agent          # binario local (sin descarga)
+#       --binary ./netpulse-agent          # local binary (no download)
 #   sh install-agent.sh --host 192.168.8.3 --uninstall
 #
-# Opciones:
-#   --host X        IP/host del router (obligatorio)
-#   --server X      URL del servidor NetPulse (obligatoria salvo --uninstall)
-#   --slug X        slug del equipo en NetPulse (obligatorio salvo --uninstall)
-#   --token X       token del equipo (obligatorio salvo --uninstall y --pairing-token)
-#   --pairing-token X  token de pairing (bootstrap: el agente contacta al servidor
-#                   y obtiene el token real automáticamente; Fase 9 R3)
-#   --server-fp X   SHA-256 SPKI del servidor en hex (https). Opcional: si no
-#                   se pasa, el script lo deriva del propio certificado (#851)
-#   --ca-file X     PEM de la CA del server (https con CA propia): se usa como
-#                   --cacert en la descarga del binario desde el server (#1367)
-#   --ssh-user X    usuario SSH del router (default: root)
-#   --ssh-key X     ruta a la identidad privada SSH (opción -i). OBLIGATORIA en
-#                   el server para routers que solo autorizan la llave del
-#                   NetPulse (la que muestra Settings); se pasa a ssh/scp.
-#   --binary X      binario local a copiar (default: descarga de la release)
-#   --version X.Y.Z versión a descargar (default: latest)
-#   --tmp           instala el binario en /tmp (RAM) en vez de /usr/sbin:
-#                   para equipos con flash justa. OJO: /tmp se pierde al
-#                   reiniciar — tras un reboot hay que reejecutar este script
-#                   (variante documentada del SPEC; el .ipk llega en el incr. 2)
-#   --uninstall     detiene y elimina servicio, binario y config del router
-#   --update-netgrip  si se detecta NetGrip en el router: actualizar el panel
-#                   NetGrip a su última release (apk/ipk de GitHub) en vez de
-#                   limitarse a entregarle la config (--force permite bajar de
-#                   versión)
+# Options:
+#   --host X        router IP/host (required)
+#   --server X      NetPulse server URL (required unless --uninstall)
+#   --slug X        unit slug in NetPulse (required unless --uninstall)
+#   --token X       unit token (required unless --uninstall and --pairing-token)
+#   --pairing-token X  pairing token (bootstrap: the agent contacts the server
+#                   and gets the real token by itself, phase 9 R3)
+#   --server-fp X   server SPKI SHA-256 in hex (https). Optional: without it
+#                   the script derives it from the certificate (#851)
+#   --ca-file X     PEM of the server CA (https with a private CA): used as
+#                   --cacert when downloading the binary from the server (#1367)
+#   --ssh-user X    router SSH user (default: root)
+#   --ssh-key X     path to the SSH private identity (-i). REQUIRED on the
+#                   server for routers that only authorize the NetPulse key
+#                   (the one Settings shows), it is passed to ssh/scp.
+#   --binary X      local binary to copy (default: download the release)
+#   --version X.Y.Z version to download (default: latest)
+#   --tmp           installs the binary in /tmp (RAM) instead of /usr/sbin,
+#                   for units with little flash. NOTE: /tmp is lost on reboot,
+#                   so the script has to run again after one (documented
+#                   variant of the SPEC, the .ipk lands in increment 2)
+#   --uninstall     stops and removes the service, binary and config
+#   --update-netgrip  if NetGrip is found on the router, update the NetGrip
+#                   panel to its latest release (apk/ipk from GitHub) instead
+#                   of only handing over the config (--force allows downgrades)
 #
-# Nota: todas las opciones admiten `--opt value` y `--opt=value` (#571).
+# Note: every option accepts `--opt value` and `--opt=value` (#571).
 #
-# Requisitos: ssh/scp al router (OpenWrt con dropbear), curl o wget local.
+# Requirements: ssh/scp to the router (OpenWrt with dropbear), curl or wget.
 # =============================================================================
 set -eu
 
@@ -64,7 +63,7 @@ ok()    { printf '%s✓%s %s\n' "$C_G" "$C_0" "$*"; }
 warn()  { printf '%s!%s %s\n' "$C_Y" "$C_0" "$*" >&2; }
 fatal() { _c=$1; shift; printf '%s✗ %s%s\n' "$C_R" "$*" "$C_0" >&2; exit "$_c"; }
 
-usage() { sed -n '2,/^# Requisitos/p' "$0" | sed '$d'; exit 0; }
+usage() { sed -n '2,/^# Requirements/p' "$0" | sed '$d'; exit 0; }
 
 # #571: acepta tanto `--opt value` como `--opt=value` (el copy-command de la app
 # y la cabecera de ayuda usan la forma con espacio).
@@ -97,22 +96,22 @@ while [ "$#" -gt 0 ]; do
         --update-netgrip)   UPDATE_NETGRIP=1; shift ;;
         --force)            NETGRIP_FORCE=1; shift ;;
         -h|--help)          usage ;;
-        *) fatal 10 "opción desconocida: $1 (prueba --help)" ;;
+        *) fatal 10 "unknown option: $1 (try --help)" ;;
     esac
 done
 
-[ -n "$HOST" ] || fatal 11 "falta --host (IP del router)"
+[ -n "$HOST" ] || fatal 11 "missing --host (router IP)"
 SSH="$SSH_USER@$HOST"
 # #572: identidad SSH explícita (p. ej. la llave de routers del server). Si no
 # se pasa, el cliente usa la default (~/.ssh/id_*) como antes.
 SSH_IDENT_ARGS=""
 if [ -n "$SSH_KEY" ]; then SSH_IDENT_ARGS="-i $SSH_KEY"; fi
-command -v ssh >/dev/null 2>&1 || fatal 12 "necesito ssh"
-command -v scp >/dev/null 2>&1 || fatal 12 "necesito scp"
+command -v ssh >/dev/null 2>&1 || fatal 12 "ssh is required"
+command -v scp >/dev/null 2>&1 || fatal 12 "scp is required"
 
 # --------------------------------------------------------------- uninstall --
 if [ "$UNINSTALL" -eq 1 ]; then
-    info "desinstalando $BIN_NAME de $SSH"
+    info "uninstalling $BIN_NAME from $SSH"
     ssh $SSH_IDENT_ARGS "$SSH" "
         $INIT_DST stop 2>/dev/null || true
         $INIT_DST disable 2>/dev/null || true
@@ -129,15 +128,15 @@ if [ "$UNINSTALL" -eq 1 ]; then
             mv /tmp/np-sysupgrade.conf /etc/sysupgrade.conf
         fi
     "
-    ok "$BIN_NAME desinstalado de $HOST"
+    ok "$BIN_NAME uninstalled from $HOST"
     exit 0
 fi
 
-[ -n "$SERVER" ] || fatal 11 "falta --server (URL de NetPulse)"
-[ -n "$SLUG" ]   || fatal 11 "falta --slug"
+[ -n "$SERVER" ] || fatal 11 "missing --server (NetPulse URL)"
+[ -n "$SLUG" ]   || fatal 11 "missing --slug"
 # Token: obligatorio --token o --pairing-token (no ambos)
 if [ -z "$TOKEN" ] && [ -z "$PAIRING_TOKEN" ]; then
-    fatal 11 "falta --token (o --pairing-token para bootstrap)"
+    fatal 11 "missing --token (or --pairing-token for bootstrap)"
 fi
 SERVER="${SERVER%/}"
 
@@ -154,7 +153,7 @@ case "$SERVER" in
             HOSTPORT=${HOSTPORT%%/*}
             SNI=${HOSTPORT%%:*}
             case "$HOSTPORT" in *:*) : ;; *) HOSTPORT="$HOSTPORT:443" ;; esac
-            info "derivando NETPULSE_SERVER_FP del certificado de $SERVER"
+            info "deriving NETPULSE_SERVER_FP from the certificate of $SERVER"
             if command -v openssl >/dev/null 2>&1; then
                 SERVER_FP=$(echo | openssl s_client -connect "$HOSTPORT" -servername "$SNI" 2>/dev/null \
                     | openssl x509 -pubkey -noout 2>/dev/null \
@@ -162,7 +161,7 @@ case "$SERVER" in
                     | { command -v sha256sum >/dev/null 2>&1 && sha256sum || shasum -a 256; } \
                     | cut -d' ' -f1)
             fi
-            [ -n "$SERVER_FP" ] || fatal 14 "servidor HTTPS sin --server-fp y no pude derivarlo (¿openssl disponible? ¿SNI correcto?). Obtén el SPKI sha256 del cert y repite con --server-fp X"
+            [ -n "$SERVER_FP" ] || fatal 14 "HTTPS server without --server-fp and could not derive it (is openssl available? is the SNI right?). Get the sha256 SPKI of the certificate and retry with --server-fp X"
             ok "NETPULSE_SERVER_FP=$SERVER_FP"
         fi
         ;;
@@ -175,7 +174,7 @@ esac
 # pública en el router (dropbear: /etc/dropbear/authorized_keys).
 ssh $SSH_IDENT_ARGS -o ConnectTimeout=8 -o BatchMode=yes "$SSH" true || {
     PUB="${SSH_KEY:-~/.ssh/id_ed25519.pub}"
-    fatal 13 "sin SSH por clave a $SSH (el instalador es no interactivo: la contraseña no vale). Autoriza la clave pública en el router y repite: ssh-copy-id -i $PUB $SSH"
+    fatal 13 "no key-based SSH to $SSH (the installer is not interactive, a password is no use). Authorize the public key on the router and retry: ssh-copy-id -i $PUB $SSH"
 }
 
 # Preflight del canal (#1654): el router tiene que alcanzar el MISMO $SERVER
@@ -184,9 +183,9 @@ ssh $SSH_IDENT_ARGS -o ConnectTimeout=8 -o BatchMode=yes "$SSH" true || {
 # al final, con el agente ya instalado y sin poder conectar. Se comprueba sin
 # validar el certificado a propósito: de la identidad del servidor se encarga
 # el pinning SPKI (NETPULSE_SERVER_FP).
-info "comprobando que $HOST alcanza $SERVER"
+info "checking that $HOST reaches $SERVER"
 ssh $SSH_IDENT_ARGS "$SSH" "if command -v curl >/dev/null 2>&1; then curl -fsSk --connect-timeout 5 -m 10 -o /dev/null '$SERVER/api/health'; elif command -v wget >/dev/null 2>&1; then wget -q --no-check-certificate -T 10 -O /dev/null '$SERVER/api/health'; else exit 3; fi" || {
-    fatal 15 "el router no alcanza $SERVER/api/health. Comprueba que ese host y puerto son accesibles desde la red del router. Si el servidor tiene TLS activado la URL es https, y el router debe llegar a ese puerto. Para usar otra URL en los agentes, define NETPULSE_AGENT_URL en el servidor (por ejemplo la de la LAN)"
+    fatal 15 "the router cannot reach $SERVER/api/health. Check that the host and the port are reachable from the router network. With TLS on the server the URL is https and the router must reach that port. To use another URL in the agents, set NETPULSE_AGENT_URL on the server (the LAN one, for instance)"
 }
 
 # ----------------------------------------------------- netgrip handoff --
@@ -194,7 +193,7 @@ ssh $SSH_IDENT_ARGS "$SSH" "if command -v curl >/dev/null 2>&1; then curl -fsSk
 # instala el standalone. Se le entrega la config (sin pisar la existente) y
 # opcionalmente se actualiza el propio NetGrip (--update-netgrip).
 if ssh $SSH_IDENT_ARGS "$SSH" '[ -x /usr/sbin/netgrip ] || [ -f /etc/init.d/netgrip ]'; then
-    info "NetGrip detectado en $HOST: el agente embebido ya cubre este router"
+    info "NetGrip found on $HOST, its embedded agent already covers this router"
     # Token line igual que el flujo normal
     if [ -n "$PAIRING_TOKEN" ]; then
         HANDOFF_TOKEN="NETPULSE_PAIRING_TOKEN=$PAIRING_TOKEN"
@@ -216,9 +215,9 @@ if [ ! -f "\$NG_ENV" ]; then
         echo "NETPULSE_ENABLED=1"
     } > "\$NG_ENV"
     chmod 600 "\$NG_ENV"
-    echo "config-escrita"
+    echo "config-written"
 else
-    echo "config-existente-conservada"
+    echo "existing-config-kept"
 fi
 HANDOFF
 
@@ -227,14 +226,14 @@ HANDOFF
         CUR=$(ssh $SSH_IDENT_ARGS "$SSH" "(apk info netgrip 2>/dev/null || opkg status netgrip 2>/dev/null | sed -n 's/^Version: //p') | head -1")
         if command -v curl >/dev/null 2>&1; then FETCH="curl -fsSL --retry 3 --connect-timeout 10"
         elif command -v wget >/dev/null 2>&1; then FETCH="wget -q -O-"
-        else fatal 21 "necesito curl o wget"; fi
+        else fatal 21 "curl or wget is required"; fi
         NG_TAG=$($FETCH "https://api.github.com/repos/gnacho/netgrip/releases/latest" \
-            | grep -oE '"tag_name"[[:space:]]*:[[:space:]]*"[^"]*"' | head -1 | cut -d'"' -f4) || fatal 41 "no pude resolver la última release de NetGrip"
+            | grep -oE '"tag_name"[[:space:]]*:[[:space:]]*"[^"]*"' | head -1 | cut -d'"' -f4) || fatal 41 "could not resolve the latest NetGrip release"
         NG_VER=$(echo "$NG_TAG" | sed 's/^v//')
         ARCH=$(ssh $SSH_IDENT_ARGS "$SSH" uname -m)
         case "$ARCH" in
             aarch64|arm64) NG_ARCH=arm64 ;;
-            *) fatal 20 "NetGrip solo publica builds arm64 (router: $ARCH)" ;;
+            *) fatal 20 "NetGrip only publishes arm64 builds (router: $ARCH)" ;;
         esac
         if ssh $SSH_IDENT_ARGS "$SSH" command -v apk >/dev/null 2>&1; then
             NG_ASSET="netgrip-${NG_VER}-r1-${NG_ARCH}.apk"; NG_INST="apk add --allow-untrusted /tmp/netgrip-update.pkg"
@@ -242,30 +241,30 @@ HANDOFF
             NG_ASSET="netgrip_${NG_VER}-1_aarch64_cortex-a53.ipk"; NG_INST="opkg install /tmp/netgrip-update.pkg"
         fi
         NG_URL="https://github.com/gnacho/netgrip/releases/download/${NG_TAG}/${NG_ASSET}"
-        info "actualizando NetGrip a $NG_TAG (instalado: ${CUR:-desconocido})"
+        info "updating NetGrip to $NG_TAG (installed: ${CUR:-unknown})"
         if [ -n "$CUR" ] && [ "$NETGRIP_FORCE" -ne 1 ]; then
             CUR_V=$(echo "$CUR" | sed 's/^netgrip-//; s/ description:.*//; s/-r[0-9]*$//')
             if [ "$CUR_V" = "$NG_VER" ]; then
-                ok "NetGrip ya está en $NG_VER; nada que hacer (usa --force para reinstalar)"
+                ok "NetGrip is already on $NG_VER, nothing to do (use --force to reinstall)"
                 ssh $SSH_IDENT_ARGS "$SSH" "/etc/init.d/netgrip restart >/dev/null 2>&1 || true"
-                ok "agente embebido rearmado (slug $SLUG)"
+                ok "embedded agent rearmed (slug $SLUG)"
                 exit 0
             fi
             OLDEST=$(printf '%s\n%s\n' "$CUR_V" "$NG_VER" | sort -V | head -1)
             if [ "$OLDEST" = "$NG_VER" ]; then
-                warn "la release $NG_TAG es MÁS VIEJA que la instalada ($CUR_V): router con build no liberada"
-                fatal 43 "downgrade rechazado (usa --force si de verdad lo quieres)"
+                warn "release $NG_TAG is OLDER than the installed one ($CUR_V), the router runs an unreleased build"
+                fatal 43 "downgrade refused (use --force if you really want it)"
             fi
         fi
-        $FETCH "$NG_URL" -o "$TMP/netgrip-update.pkg" || fatal 42 "descarga falló: $NG_URL"
+        $FETCH "$NG_URL" -o "$TMP/netgrip-update.pkg" || fatal 42 "download failed: $NG_URL"
         scp -Oq $SSH_IDENT_ARGS "$TMP/netgrip-update.pkg" "$SSH:/tmp/netgrip-update.pkg"
         ssh $SSH_IDENT_ARGS "$SSH" "$NG_INST && rm -f /tmp/netgrip-update.pkg"
-        ok "NetGrip actualizado a $NG_TAG"
+        ok "NetGrip updated to $NG_TAG"
     fi
 
     ssh $SSH_IDENT_ARGS "$SSH" "/etc/init.d/netgrip restart >/dev/null 2>&1 || true"
-    ok "agente embebido de NetGrip rearmado (server $SERVER, slug $SLUG)"
-    info "el agente standalone NO se instala en routers con NetGrip"
+    ok "NetGrip embedded agent rearmed (server $SERVER, slug $SLUG)"
+    info "the standalone agent is NOT installed on routers running NetGrip"
     exit 0
 fi
 
@@ -273,16 +272,16 @@ fi
 BIN_DST="/usr/sbin/$BIN_NAME"
 [ "$USE_TMP" -eq 1 ] && BIN_DST="/tmp/$BIN_NAME"
 
-TMP=$(mktemp -d) || fatal 34 "mktemp falló"
+TMP=$(mktemp -d) || fatal 34 "mktemp failed"
 cleanup() { rm -rf "$TMP"; }
 trap cleanup EXIT INT TERM
 
 if [ -n "$BINARY" ]; then
-    [ -f "$BINARY" ] || fatal 30 "binario local no encontrado: $BINARY"
+    [ -f "$BINARY" ] || fatal 30 "local binary not found: $BINARY"
     cp "$BINARY" "$TMP/$BIN_NAME"
-    info "usando binario local: $BINARY"
+    info "using the local binary: $BINARY"
 else
-    ARCH=$(ssh $SSH_IDENT_ARGS "$SSH" uname -m) || fatal 31 "no pude detectar la arquitectura de $HOST"
+    ARCH=$(ssh $SSH_IDENT_ARGS "$SSH" uname -m) || fatal 31 "could not detect the architecture of $HOST"
     case "$ARCH" in
         aarch64|arm64) GOARCH=arm64 ;;
         armv7l|armv7)  GOARCH=armv7 ;;
@@ -295,15 +294,15 @@ else
             case "$END" in
                 1) GOARCH=mipsle ;;
                 2) GOARCH=mips ;;
-                *) fatal 20 "no pude detectar el endianness MIPS de $HOST" ;;
+                *) fatal 20 "could not detect the MIPS endianness of $HOST" ;;
             esac ;;
-        *) fatal 20 "arquitectura no soportada: $ARCH (release: arm64, armv7, mipsle, mips)" ;;
+        *) fatal 20 "unsupported architecture: $ARCH (releases: arm64, armv7, mipsle, mips)" ;;
     esac
     if command -v curl >/dev/null 2>&1; then FETCH="curl -fsSL --retry 3 --connect-timeout 10"
     elif command -v wget >/dev/null 2>&1; then FETCH="wget -q -O-"
-    else fatal 21 "necesito curl o wget"; fi
+    else fatal 21 "curl or wget is required"; fi
     fetch_to() { $FETCH "$1" > "$2"; }
-    command -v sha256sum >/dev/null 2>&1 || fatal 21 "falta sha256sum"
+    command -v sha256sum >/dev/null 2>&1 || fatal 21 "sha256sum is missing"
     # ------------------------------------------------------------- server --
     # #1367: el binario sale del PROPIO server con la arch detectada arriba.
     # Antes el one-liner pre-descargaba sin ?arch= y el handler defaulteaba
@@ -315,7 +314,7 @@ else
     if [ -z "$NETPULSE_VERSION" ] && [ -n "$TOKEN" ] && command -v curl >/dev/null 2>&1; then
         CA_ARGS=""
         [ -n "$CA_FILE" ] && CA_ARGS="--cacert $CA_FILE"
-        info "descargando netpulse-agent ($GOARCH) de $SERVER"
+        info "downloading netpulse-agent ($GOARCH) from $SERVER"
         if curl -fsSL $CA_ARGS --connect-timeout 10 --retry 3 \
                 -H "Authorization: Bearer $TOKEN" -D "$TMP/headers" \
                 "$SERVER/api/agents/$SLUG/binary?arch=$GOARCH" -o "$TMP/$BIN_NAME" \
@@ -323,23 +322,23 @@ else
             SUM_REF=$(grep -i '^x-checksum-sha256:' "$TMP/headers" | tr -d '\r' | awk '{print $2}')
             if [ -n "$SUM_REF" ]; then
                 SUM_FILE=$(sha256sum "$TMP/$BIN_NAME" | awk '{print $1}')
-                [ "$SUM_FILE" = "$SUM_REF" ] || fatal 33 "sha256 NO COINCIDE (server, arch $GOARCH)"
-                ok "sha256 verificado (server)"
+                [ "$SUM_FILE" = "$SUM_REF" ] || fatal 33 "sha256 MISMATCH (server, arch $GOARCH)"
+                ok "sha256 verified (server)"
             else
-                warn "el server no envió X-Checksum-Sha256; sin verificación de suma"
+                warn "the server sent no X-Checksum-Sha256, no checksum verification"
             fi
         else
-            warn "descarga del server falló; pruebo con la release de GitHub"
+            warn "download from the server failed, trying the GitHub release"
             rm -f "$TMP/$BIN_NAME"
         fi
     fi
 
     if [ ! -s "$TMP/$BIN_NAME" ]; then
         if [ -z "$NETPULSE_VERSION" ]; then
-            info "resolviendo última release"
+            info "resolving the latest release"
             NETPULSE_VERSION=$($FETCH "https://api.github.com/repos/$GH_REPO/releases/latest" \
                 | grep -oE '"tag_name"[[:space:]]*:[[:space:]]*"[^"]*"' | head -1 | cut -d'"' -f4) \
-                || fatal 31 "no pude resolver la última release; usa --version=X.Y.Z"
+                || fatal 31 "could not resolve the latest release, use --version=X.Y.Z"
         fi
         VERSION_NORM=$(echo "$NETPULSE_VERSION" | sed 's/^v//')
         case "$NETPULSE_VERSION" in
@@ -349,20 +348,20 @@ else
         ASSET="${BIN_NAME}_${VERSION_NORM}_linux_${GOARCH}.tar.gz"
         BASE_URL="https://github.com/$GH_REPO/releases/download/$NETPULSE_TAG"
         info "descargando $ASSET"
-        fetch_to "$BASE_URL/$ASSET" "$TMP/$ASSET" || fatal 32 "descarga falló: $BASE_URL/$ASSET"
-        fetch_to "$BASE_URL/checksums.txt" "$TMP/checksums.txt" || fatal 32 "checksums.txt no está en $NETPULSE_VERSION"
+        fetch_to "$BASE_URL/$ASSET" "$TMP/$ASSET" || fatal 32 "download failed: $BASE_URL/$ASSET"
+        fetch_to "$BASE_URL/checksums.txt" "$TMP/checksums.txt" || fatal 32 "checksums.txt is not in $NETPULSE_VERSION"
         SUM_FILE=$(sha256sum "$TMP/$ASSET" | awk '{print $1}')
         SUM_REF=$(grep "  $ASSET\$" "$TMP/checksums.txt" | awk '{print $1}')
-        [ -n "$SUM_REF" ] || fatal 33 "$ASSET no está en checksums.txt"
-        [ "$SUM_FILE" = "$SUM_REF" ] || fatal 33 "sha256 NO COINCIDE para $ASSET"
-        ok "sha256 verificado"
+        [ -n "$SUM_REF" ] || fatal 33 "$ASSET is not in checksums.txt"
+        [ "$SUM_FILE" = "$SUM_REF" ] || fatal 33 "sha256 MISMATCH for $ASSET"
+        ok "sha256 verified"
         tar -xzf "$TMP/$ASSET" -C "$TMP"
     fi
 fi
-[ -s "$TMP/$BIN_NAME" ] || fatal 34 "no hay binario que instalar"
+[ -s "$TMP/$BIN_NAME" ] || fatal 34 "no binary to install"
 
 # ------------------------------------------------------------------ install --
-info "copiando binario → $SSH:$BIN_DST"
+info "copying the binary to $SSH:$BIN_DST"
 # Reinstalación: si hay una versión previa en marcha, parar el servicio ANTES
 # del scp — el proceso vivo tiene el binario abierto y la copia falla con
 # "Text file busy". El servicio se reactiva al final (enable + restart).
@@ -376,13 +375,13 @@ ssh $SSH_IDENT_ARGS "$SSH" "/etc/init.d/$INIT_NAME stop >/dev/null 2>&1 || true"
 # salida. Aquí cualquier fallo aborta con el código y el motivo a la vista.
 BIN_TMP="$BIN_DST.new"
 scp -Oq $SSH_IDENT_ARGS "$TMP/$BIN_NAME" "$SSH:$BIN_TMP" \
-    || fatal 35 "no pude copiar el binario a $BIN_TMP en el router (revisa espacio libre con 'df -h /' y que $BIN_DST sea escribible)"
+    || fatal 35 "could not copy the binary to $BIN_TMP on the router (check free space with 'df -h /' and that $BIN_DST is writable)"
 ssh $SSH_IDENT_ARGS "$SSH" "chmod 0755 $BIN_TMP && mv -f $BIN_TMP $BIN_DST" \
-    || { ssh $SSH_IDENT_ARGS "$SSH" "rm -f $BIN_TMP" || true; fatal 36 "copié $BIN_TMP pero no pude moverlo a $BIN_DST en el router"; }
-ok "binario en $BIN_DST"
+    || { ssh $SSH_IDENT_ARGS "$SSH" "rm -f $BIN_TMP" || true; fatal 36 "copied $BIN_TMP but could not move it to $BIN_DST on the router"; }
+ok "binary at $BIN_DST"
 
 # Config (chmod 600: el token solo lo lee root)
-info "escribiendo $ENV_FILE (chmod 600)"
+info "writing $ENV_FILE (chmod 600)"
 # Construir la línea de token: PAIRING_TOKEN (bootstrap) o TOKEN (normal)
 if [ -n "$PAIRING_TOKEN" ]; then
     TOKEN_LINE="NETPULSE_PAIRING_TOKEN=$PAIRING_TOKEN"
@@ -423,10 +422,10 @@ EOF
 if [ -n "$USER_VARS" ]; then
     printf '%s\n' "$USER_VARS" | ssh $SSH_IDENT_ARGS "$SSH" "cat >> $ENV_FILE"
 fi
-ok "config escrita"
+ok "config written"
 
 # Servicio procd (respawn + self-heal del binario tras sysupgrade)
-info "instalando servicio procd"
+info "installing the procd service"
 SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
 if [ -f "$SCRIPT_DIR/agent/deploy/$INIT_NAME.init" ]; then
     scp -Oq $SSH_IDENT_ARGS "$SCRIPT_DIR/agent/deploy/$INIT_NAME.init" "$SSH:$INIT_DST"
@@ -458,7 +457,7 @@ selfheal_binary() {
         https|HTTPS) ;;
         *)
             [ "${NETPULSE_ALLOW_INSECURE_COMMANDS:-}" = "1" ] || {
-                logger -t netpulse-agent "self-heal: HTTP sin NETPULSE_ALLOW_INSECURE_COMMANDS=1, binario no descargado"
+                logger -t netpulse-agent "self-heal: HTTP without NETPULSE_ALLOW_INSECURE_COMMANDS=1, binary not downloaded"
                 return 1
             }
             ;;
@@ -477,7 +476,7 @@ selfheal_binary() {
     esac
     local url tmp hdr digest sum
     url="${NETPULSE_SERVER%/}/api/agents/${NETPULSE_SLUG}/binary?arch=${ARCH}"
-    logger -t netpulse-agent "self-heal: binario ausente, descargando de $NETPULSE_SERVER"
+    logger -t netpulse-agent "self-heal: binary missing, downloading from $NETPULSE_SERVER"
     tmp=/tmp/netpulse-agent.$$
     hdr=/tmp/netpulse-agent.hdr.$$
     if command -v curl >/dev/null 2>&1; then
@@ -489,19 +488,19 @@ selfheal_binary() {
     rm -f "$hdr"
     case "$digest" in
         ""|*[!0123456789abcdefABCDEF]*)
-            logger -t netpulse-agent "self-heal: sin X-Checksum-Sha256 válido, binario descartado"
+            logger -t netpulse-agent "self-heal: no valid X-Checksum-Sha256, binary discarded"
             rm -f "$tmp"
             return 1 ;;
     esac
-    [ "${#digest}" -eq 64 ] || { logger -t netpulse-agent "self-heal: digest con longitud inválida, binario descartado"; rm -f "$tmp"; return 1; }
+    [ "${#digest}" -eq 64 ] || { logger -t netpulse-agent "self-heal: digest with invalid length, binary discarded"; rm -f "$tmp"; return 1; }
     sum=$(sha256sum "$tmp" 2>/dev/null | awk '{print $1}')
     if [ -z "$sum" ] || [ "$(printf '%s' "$sum" | tr 'A-F' 'a-f')" != "$(printf '%s' "$digest" | tr 'A-F' 'a-f')" ]; then
-        logger -t netpulse-agent "self-heal: SHA-256 no coincide, binario descartado"
+        logger -t netpulse-agent "self-heal: SHA-256 mismatch, binary discarded"
         rm -f "$tmp"
         return 1
     fi
     chmod 0755 "$tmp" && mv "$tmp" /usr/sbin/netpulse-agent || { rm -f "$tmp"; return 1; }
-    logger -t netpulse-agent "self-heal: binario restaurado"
+    logger -t netpulse-agent "self-heal: binary restored"
     BIN=/usr/sbin/netpulse-agent
     return 0
 }
@@ -514,12 +513,12 @@ cleanup_stale_watchdog_cron() {
     [ -f /usr/sbin/netpulse-watchdog ] && return 0
     crontab -l 2>/dev/null | grep -q netpulse-watchdog || return 0
     ( crontab -l 2>/dev/null | grep -v netpulse-watchdog ) | crontab - 2>/dev/null || true
-    logger -t netpulse-agent "watchdog cron huérfano retirado (#879)"
+    logger -t netpulse-agent "orphan watchdog cron entry removed (#879)"
 }
 
 start_service() {
     cleanup_stale_watchdog_cron
-    selfheal_binary || logger -t netpulse-agent "self-heal: no se pudo restaurar el binario"
+    selfheal_binary || logger -t netpulse-agent "self-heal: could not restore the binary"
     procd_open_instance netpulse-agent
     procd_set_param command "$BIN"
     procd_set_param respawn "${respawn_threshold:-3600}" "${respawn_timeout:-5}" "${respawn_retry:-5}"
@@ -531,7 +530,7 @@ start_service() {
 INITEOF
 fi
 ssh $SSH_IDENT_ARGS "$SSH" "chmod 0755 $INIT_DST && $INIT_DST enable && $INIT_DST restart"
-ok "servicio $INIT_NAME habilitado y arrancado"
+ok "service $INIT_NAME enabled and started"
 
 # ------------------------------------------------------- sysupgrade (#1476) --
 # OpenWrt solo conserva en una actualización de imagen los conffiles de los
@@ -540,9 +539,9 @@ ok "servicio $INIT_NAME habilitado y arrancado"
 # ficheros sueltos: sin esta lista desaparecen al actualizar y el self-heal del
 # init nunca llega a correr, porque lo que se pierde es el punto de entrada.
 # Mismo gesto que el flujo owut (firmware.EnsureStackPreserved), idempotente.
-info "preservando el agente en /etc/sysupgrade.conf (#1476)"
+info "preserving the agent in /etc/sysupgrade.conf (#1476)"
 ssh $SSH_IDENT_ARGS "$SSH" "P=/etc/sysupgrade.conf; touch \$P; ensure() { grep -qxF \"\$1\" \$P 2>/dev/null || echo \"\$1\" >> \$P; }; ensure /usr/sbin/$BIN_NAME; ensure $ENV_FILE; ensure $INIT_DST; for f in /etc/rc.d/*$INIT_NAME*; do [ -e \"\$f\" ] && ensure \"\$f\"; done; true" \
-    || warn "no pude actualizar /etc/sysupgrade.conf: el agente no sobrevivirá a una actualización de firmware"
+    || warn "could not update /etc/sysupgrade.conf, the agent will not survive a firmware upgrade"
 
 # ------------------------------------------------- lldpd en puertos físicos (#1369) --
 # lldpd bound al bridge (br-lan) no recibe vecinos en varios targets
@@ -556,14 +555,14 @@ ssh $SSH_IDENT_ARGS "$SSH" "P=/etc/sysupgrade.conf; touch \$P; ensure() { grep -
 if ssh $SSH_IDENT_ARGS "$SSH" "command -v lldpcli >/dev/null 2>&1"; then
     LLDP_IF=$(ssh $SSH_IDENT_ARGS "$SSH" "uci -q get lldpd.config.interface 2>/dev/null")
     if printf '%s' "$LLDP_IF" | grep -qE '(^|,)[[:space:]]*(lan|wan|eth)'; then
-        ok "lldpd ya escucha en puertos físicos (${LLDP_IF:-auto})"
+        ok "lldpd already listens on physical ports (${LLDP_IF:-auto})"
     else
         ssh $SSH_IDENT_ARGS "$SSH" "uci set lldpd.config.interface='lan*,wan' && uci commit lldpd && /etc/init.d/lldpd restart >/dev/null 2>&1" \
-            && ok "lldpd reconfigurado: escucha en puertos físicos (lan*,wan)${LLDP_IF:+ - antes: $LLDP_IF}" \
-            || warn "no se pudo reconfigurar lldpd; a mano: uci set lldpd.config.interface='lan*,wan' && uci commit lldpd && /etc/init.d/lldpd restart"
+            && ok "lldpd reconfigured, listening on physical ports (lan*,wan)${LLDP_IF:+ - before: $LLDP_IF}" \
+            || warn "could not reconfigure lldpd, by hand: uci set lldpd.config.interface='lan*,wan' && uci commit lldpd && /etc/init.d/lldpd restart"
     fi
 else
-    info "lldpd no instalado: sin evidencia LLDP directa (con 'opkg install lldpd' la activas; reejecuta este instalador y lo deja en puertos físicos)"
+    info "lldpd not installed, no direct LLDP evidence (with 'opkg install lldpd' you enable it, then run this installer again and it moves it to the physical ports)"
 fi
 
 # Watchdog cron: NO se instala (#851). Si el agente crashea en bucle, un
@@ -577,19 +576,19 @@ ssh $SSH_IDENT_ARGS "$SSH" "
         sed -i '/netpulse-watchdog/d' /etc/crontabs/root
     fi
 "
-ok "watchdog cron no instalado (legacy limpiado)"
+ok "watchdog cron not installed (legacy entry removed)"
 
 sleep 2
 if ssh $SSH_IDENT_ARGS "$SSH" "logread -e $INIT_NAME" 2>/dev/null | tail -2 | grep -q .; then
-    info "últimas líneas de syslog:"
+    info "last syslog lines:"
     ssh $SSH_IDENT_ARGS "$SSH" "logread -e $INIT_NAME | tail -2" || true
 fi
 
-printf '\n%s================ %s instalado ================%s\n' "$C_G" "$BIN_NAME" "$C_0"
+printf '\n%s================ %s installed ================%s\n' "$C_G" "$BIN_NAME" "$C_0"
 printf 'Router:   %s (slug: %s)\n' "$HOST" "$SLUG"
-printf 'Binario:  %s%s\n' "$BIN_DST" "$( [ "$USE_TMP" -eq 1 ] && echo '  (variante /tmp: se pierde al reiniciar — reejecuta el instalador tras un reboot)' || true)"
-printf 'Config:   %s (chmod 600; edítalo y haz /etc/init.d/%s restart)\n' "$ENV_FILE" "$INIT_NAME"
-printf 'Servidor: %s\n' "$SERVER"
+printf 'Binary:   %s%s\n' "$BIN_DST" "$( [ "$USE_TMP" -eq 1 ] && echo '  (/tmp variant: lost on reboot, run the installer again after one)' || true)"
+printf 'Config:   %s (chmod 600, edit it and run /etc/init.d/%s restart)\n' "$ENV_FILE" "$INIT_NAME"
+printf 'Server:   %s\n' "$SERVER"
 printf 'Logs:     ssh %s logread -e %s\n' "$SSH" "$INIT_NAME"
-printf 'Verifica: GET %s/api/agents (last_seen + versión en unos 15 s)\n' "$SERVER"
+printf 'Check:    GET %s/api/agents (last_seen + version within 15 s)\n' "$SERVER"
 printf '%s================================================%s\n\n' "$C_G" "$C_0"

+ 1 - 1
server-go/internal/alertlang/alertlang.go

@@ -74,7 +74,7 @@ func SetLocalesFS(f fs.FS) {
 			supported[e.Name()] = true
 		}
 	}
-	log.Printf("[netpulse] alertlang: idiomas disponibles para push: %v", keys(supported))
+	log.Printf("[netpulse] alertlang: languages available for push: %v", keys(supported))
 }
 
 func keys(m map[string]bool) []string {

+ 5 - 5
server-go/internal/db/db.go

@@ -838,27 +838,27 @@ func (d *DB) Maintenance() {
 	}
 	for _, q := range steps {
 		if _, err := d.Exec(q, cutoff); err != nil {
-			log.Printf("[netpulse] error en mantenimiento DB: %v", err)
+			log.Printf("[netpulse] DB maintenance error: %v", err)
 		}
 	}
 	if _, err := d.Exec("DELETE FROM sessions WHERE expires_at < ?", NowMS()); err != nil {
-		log.Printf("[netpulse] error en mantenimiento DB: %v", err)
+		log.Printf("[netpulse] DB maintenance error: %v", err)
 	}
 	// Atributos de dispositivos que no se ven desde hace 90 días (se fueron
 	// para siempre): sin esta purga device_attrib crece sin límite y alimenta
 	// el listado de dispositivos offline (issue #206).
 	attribCutoff := NowMS() - AttribRetentionMS
 	if _, err := d.Exec("DELETE FROM device_attrib WHERE last_seen < ?", attribCutoff); err != nil {
-		log.Printf("[netpulse] error en mantenimiento DB: %v", err)
+		log.Printf("[netpulse] DB maintenance error: %v", err)
 	}
 	// Purga de buckets > 1 año (el raw ya se purgó arriba; daily nunca).
 	bucketCutoff := NowMS() - BucketsRetentionMS
 	if _, err := d.Exec("DELETE FROM metrics_buckets WHERE bucket_ts < ?", bucketCutoff); err != nil {
-		log.Printf("[netpulse] error en mantenimiento DB: %v", err)
+		log.Printf("[netpulse] DB maintenance error: %v", err)
 	}
 	if !d.rollbackJournal {
 		if _, err := d.Exec("PRAGMA wal_checkpoint(TRUNCATE)"); err != nil {
-			log.Printf("[netpulse] error en mantenimiento DB: %v", err)
+			log.Printf("[netpulse] DB maintenance error: %v", err)
 		}
 	}
 }

+ 1 - 1
server-go/internal/discover/discover.go

@@ -390,7 +390,7 @@ func Routers(ctx context.Context, db *sql.DB, keyPath string, force bool) Respon
 	// #1893: el barrido abre y cierra TCP/22 en todo el /24 sin autenticar, que
 	// en dropbear aparece como "Exit before auth". Una sola línea por barrido
 	// basta para atribuir ese tráfico (y descartar que sea un sondeo de flota).
-	log.Printf("[netpulse:discover] barrido %s: %d de %d hosts con el 22 abierto", subnet, len(alive), len(hosts))
+	log.Printf("[netpulse:discover] sweep %s: %d of %d hosts with port 22 open", subnet, len(alive), len(hosts))
 
 	// #1895: "ya añadido" no puede ser una comparación de cadenas en crudo. El
 	// alta admite un nombre DNS o una IP con puerto y el barrido solo ve IPs,

+ 1 - 1
server-go/internal/firmware/recurrence.go

@@ -267,6 +267,6 @@ func recKVSet(db *sql.DB, key, val string) {
 	if _, err := db.Exec(
 		`INSERT INTO kv (key, value) VALUES (?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value`,
 		key, val); err != nil {
-		log.Printf("[firmware] kv set %s: %v", key, err)
+		log.Printf("[netpulse:firmware] kv set %s: %v", key, err)
 	}
 }

+ 1 - 1
server-go/internal/firmware/releases.go

@@ -301,7 +301,7 @@ func NewReleasesRefresher(db *sql.DB, base string) *ReleasesRefresher {
 		base:   base,
 		stop:   make(chan struct{}),
 		now:    time.Now,
-		logf:   func(f string, a ...any) { log.Printf("[firmware] "+f, a...) },
+		logf:   func(f string, a ...any) { log.Printf("[netpulse:firmware] "+f, a...) },
 	}
 }
 

+ 1 - 1
server-go/internal/firmware/scheduler.go

@@ -39,7 +39,7 @@ func NewScheduler(store *Store, launcher Launcher) *Scheduler {
 		store:    store,
 		launcher: launcher,
 		now:      time.Now,
-		logf:     func(f string, a ...any) { log.Printf("[firmware] "+f, a...) },
+		logf:     func(f string, a ...any) { log.Printf("[netpulse:firmware] "+f, a...) },
 		stop:     make(chan struct{}),
 	}
 }

+ 4 - 4
server-go/internal/httpapi/agent.go

@@ -327,7 +327,7 @@ func (s *server) handleIngestAgent(w http.ResponseWriter, r *http.Request) {
 	// perder la muestra recién recibida.
 	if s.channelPlan != nil && p.Data.Wireless != nil && len(p.Data.Wireless.Scans) > 0 {
 		if err := s.channelPlan.SaveScan(p.Router, p.Ts, p.Data.Wireless.Scans); err != nil {
-			log.Printf("[netpulse] error guardando scans de %s: %v", p.Router, err)
+			log.Printf("[netpulse] error saving scans from %s: %v", p.Router, err)
 		}
 		// #1358: con el scan recién guardado, reevalúa impostores de SSID
 		// (BSSID ajeno anunciando un SSID de la flota). Solo adaptadores que
@@ -346,7 +346,7 @@ func (s *server) handleIngestAgent(w http.ResponseWriter, r *http.Request) {
 	// vacia".
 	if s.channelPlan != nil && p.Data.Wireless != nil && len(p.Data.Wireless.ScanOutcomes) > 0 {
 		if err := s.channelPlan.SaveScanOutcomes(p.Router, p.Ts, p.Data.Wireless.ScanOutcomes); err != nil {
-			log.Printf("[netpulse] error guardando scanOutcomes de %s: %v", p.Router, err)
+			log.Printf("[netpulse] error saving scanOutcomes from %s: %v", p.Router, err)
 		}
 	}
 	// #1214: survey crudo del agente para la lente "Ahora" en unidades
@@ -1249,7 +1249,7 @@ func (s *server) handleAgentReinstall(w http.ResponseWriter, r *http.Request) {
 	// #1894: al journal SIEMPRE, éxito o fallo, para que el servidor tenga el
 	// rastro aunque el operador cierre la pestaña.
 	if tail := outputTail(scriptOut, 4000); tail != "" {
-		log.Printf("netpulse:agent reinstall %s: installation script output:\n%s", slug, tail)
+		log.Printf("[netpulse:agent] reinstall %s: installation script output:\n%s", slug, tail)
 	}
 	if err != nil {
 		writeJSON(w, http.StatusBadGateway, map[string]any{
@@ -1419,7 +1419,7 @@ func (s *server) handleAgentUninstall(w http.ResponseWriter, r *http.Request) {
 	// había pasado dentro de la unidad.
 	out, err := runScript(s.pool, host, uninstall.Script(), 60*time.Second)
 	if tail := outputTail(out, 4000); tail != "" {
-		log.Printf("netpulse:agent uninstall %s: uninstall script output:\n%s", slug, tail)
+		log.Printf("[netpulse:agent] uninstall %s: uninstall script output:\n%s", slug, tail)
 	}
 	if err != nil {
 		writeJSON(w, http.StatusBadGateway, map[string]any{

+ 3 - 3
server-go/internal/httpapi/beacon.go

@@ -140,11 +140,11 @@ func (s *server) ingestBeacon(src string, raw []byte) {
 	}
 	var p beaconPacket
 	if err := json.Unmarshal(raw, &p); err != nil {
-		log.Printf("[netpulse:beacon] datagrama malformado desde %s (%d B)", src, len(raw))
+		log.Printf("[netpulse:beacon] malformed datagram from %s (%d B)", src, len(raw))
 		return
 	}
 	if p.V != 1 {
-		log.Printf("[netpulse:beacon] esquema v%d no soportado desde %s", p.V, src)
+		log.Printf("[netpulse:beacon] unsupported schema v%d from %s", p.V, src)
 		return
 	}
 	// ANUNCIO de descubrimiento (#291): broadcast sin token pero con
@@ -363,7 +363,7 @@ func (s *server) handleBeaconEvent(p beaconPacket) {
 		ev.Type = alerts.TypeLinkUp
 		ev.Vars = map[string]string{"port": portName}
 	default:
-		log.Printf("[netpulse:beacon] evento desconocido %q de %s", p.Ev, p.Slug)
+		log.Printf("[netpulse:beacon] unknown event %q from %s", p.Ev, p.Slug)
 		return
 	}
 	eng.Emit(ev)

+ 2 - 2
server-go/internal/httpapi/discovery.go

@@ -175,7 +175,7 @@ func (s *server) answerDiscovery(pc net.PacketConn, src net.Addr) {
 	if resp.Autoenroll {
 		tok, err := s.getAutoenrollToken()
 		if err != nil {
-			log.Printf("[netpulse:discovery] token de alta no disponible: %v", err)
+			log.Printf("[netpulse:discover] onboarding token unavailable: %v", err)
 			return
 		}
 		resp.PairingToken = tok
@@ -185,6 +185,6 @@ func (s *server) answerDiscovery(pc net.PacketConn, src net.Addr) {
 		return
 	}
 	if _, err := conn.Write(payload); err != nil {
-		log.Printf("[netpulse:discovery] respuesta a %s: %v", host, err)
+		log.Printf("[netpulse:discover] response to %s: %v", host, err)
 	}
 }

+ 4 - 4
server-go/internal/httpapi/firmware_owut.go

@@ -345,7 +345,7 @@ func (s *server) runOwutUpgrade(id int64, routerID, host, target, origin string,
 	// #761: antes de flashear, asegurar que el stack presente (netgrip /
 	// agente) sobrevive al update (ASU no puede empaquetarlos: sin feed).
 	if err := firmware.EnsureStackPreserved(s.pool, host); err != nil {
-		log.Printf("[firmware] preserve-stack %s failed (continuing): %v", routerID, err)
+		log.Printf("[netpulse:firmware] preserve-stack %s failed (continuing): %v", routerID, err)
 	}
 	start := time.Now()
 	exit, out, err := firmware.RunOwutUpgrade(s.pool, host, cmd)
@@ -363,7 +363,7 @@ func (s *server) runOwutUpgrade(id int64, routerID, host, target, origin string,
 		if strings.TrimSpace(msg) == "" {
 			msg = fmt.Sprintf("owut terminó sin salida (exit %d)", exit)
 		}
-		log.Printf("[firmware] owut upgrade %s failed (exit %d): %s", routerID, exit, msg)
+		log.Printf("[netpulse:firmware] owut upgrade %s failed (exit %d): %s", routerID, exit, msg)
 		_ = s.firmware.SetStatus(id, "failed", msg, "")
 		s.emitFirmwareResult(routerID, from, target, origin, false, msg)
 	}
@@ -380,7 +380,7 @@ func (s *server) runOwutInstallImage(id int64, routerID, host, target string) {
 	}
 	_ = s.firmware.SetStatus(id, "running", "", "")
 	if err := firmware.EnsureStackPreserved(s.pool, host); err != nil {
-		log.Printf("[firmware] preserve-stack %s failed (continuing): %v", routerID, err)
+		log.Printf("[netpulse:firmware] preserve-stack %s failed (continuing): %v", routerID, err)
 	}
 	start := time.Now()
 	exit, out, err := firmware.RunOwutUpgrade(s.pool, host, firmware.OwutInstallCmd())
@@ -414,7 +414,7 @@ func (s *server) runOwutInstallImage(id int64, routerID, host, target string) {
 		if strings.Contains(out, "Image file") && strings.Contains(out, "does not exist") {
 			msg = "No hay imagen descargada en el router: ejecuta antes Descargar imagen (owut download) y revisa su salida."
 		}
-		log.Printf("[firmware] owut install %s failed (exit %d): %s", routerID, exit, owutTail(out, err))
+		log.Printf("[netpulse:firmware] owut install %s failed (exit %d): %s", routerID, exit, owutTail(out, err))
 		_ = s.firmware.SetStatus(id, "failed", msg, "")
 		s.emitFirmwareResult(routerID, from, target, "manual", false, msg)
 	}

+ 2 - 2
server-go/internal/httpapi/firmware_sweep.go

@@ -103,7 +103,7 @@ func (s *server) firmwareSweepRouter(routerID, host string) {
 		return
 	}
 	if err := kvSetStr(s.db.DB, fwSweepCheckedKey(routerID), strconv.FormatInt(time.Now().Unix(), 10)); err != nil {
-		log.Printf("[firmware] sweep %s: could not mark check: %v", routerID, err)
+		log.Printf("[netpulse:firmware] sweep %s: could not mark check: %v", routerID, err)
 		return
 	}
 
@@ -118,7 +118,7 @@ func (s *server) firmwareSweepRouter(routerID, host string) {
 		return // ya avisada: una alerta por router+versión (#1777)
 	}
 	if err := kvSetStr(s.db.DB, fwSweepAlertedKey(routerID), status.VersionTo); err != nil {
-		log.Printf("[firmware] sweep %s: no pude guardar el dedup: %v", routerID, err)
+		log.Printf("[netpulse:firmware] sweep %s: could not save the dedup: %v", routerID, err)
 	}
 	s.emitFirmwareAvailable(routerID, installed, status.VersionTo)
 }

+ 2 - 2
server-go/internal/httpapi/racks.go

@@ -256,9 +256,9 @@ func (s *server) handleRacksGet(w http.ResponseWriter, r *http.Request) {
 	hints := s.buildRackHints(r.Context(), mounts)
 	if s.adapter.Mode() == "live" {
 		if res, err := rack.SyncDetectedCables(s.db.DB, hints); err != nil {
-			log.Printf("[rack] sync detected cables: %v", err)
+			log.Printf("[netpulse:rack] sync detected cables: %v", err)
 		} else if res.Removed > 0 || len(res.Created) > 0 {
-			log.Printf("[rack] sync detected cables: %d creados, %d retirados", len(res.Created), res.Removed)
+			log.Printf("[netpulse:rack] sync detected cables: %d created, %d removed", len(res.Created), res.Removed)
 		}
 	}
 	cables, err := rack.ListCables(s.db.DB)

+ 1 - 1
server-go/internal/httpapi/server.go

@@ -395,7 +395,7 @@ func NewHandler(d Deps) http.Handler {
 		if la, err := s.startBeaconListener(d.Config.BeaconListen); err != nil {
 			log.Printf("[netpulse] warning: UDP beacon failed to start on %s (%v)", d.Config.BeaconListen, err)
 		} else {
-			log.Printf("[netpulse] beacon UDP escuchando en %s", la)
+			log.Printf("[netpulse] beacon UDP listening on %s", la)
 		}
 	}
 	// #639: sondeo HTTP de consola RTLPlayground para beacons external. El

+ 2 - 2
server-go/internal/mqttpub/manager.go

@@ -47,7 +47,7 @@ func (m *Manager) Start() {
 func (m *Manager) startLocked() {
 	if !m.cfg.Enabled || m.demo || m.snapshot == nil {
 		if m.cfg.Enabled && m.demo {
-			log.Printf("[mqtt] disabled in demo mode")
+			log.Printf("[netpulse:mqtt] disabled in demo mode")
 		}
 		return
 	}
@@ -77,7 +77,7 @@ func (m *Manager) stopLocked() {
 		select {
 		case <-m.done:
 		case <-time.After(shutdownWait):
-			log.Printf("[mqtt] publisher shutdown timed out after %s; starting the new one anyway", shutdownWait)
+			log.Printf("[netpulse:mqtt] publisher shutdown timed out after %s; starting the new one anyway", shutdownWait)
 		}
 		m.done = nil
 	}

+ 6 - 6
server-go/internal/mqttpub/mqttpub.go

@@ -158,7 +158,7 @@ func (p *Publisher) Enabled() bool { return p.cfg.Enabled && !p.demo && p.snapsh
 func (p *Publisher) Start(ctx context.Context) {
 	if !p.Enabled() {
 		if p.cfg.Enabled && p.demo {
-			log.Printf("[mqtt] disabled in demo mode")
+			log.Printf("[netpulse:mqtt] disabled in demo mode")
 		}
 		return
 	}
@@ -175,7 +175,7 @@ func (p *Publisher) Run(ctx context.Context) {
 		}
 		client, err := p.dial(ctx)
 		if err != nil {
-			log.Printf("[mqtt] connect to %s:%d failed: %v", p.cfg.Host, p.cfg.Port, err)
+			log.Printf("[netpulse:mqtt] connect to %s:%d failed: %v", p.cfg.Host, p.cfg.Port, err)
 			if !sleepCtx(ctx, backoff) {
 				return
 			}
@@ -186,7 +186,7 @@ func (p *Publisher) Run(ctx context.Context) {
 			continue
 		}
 		backoff = initialBackoff
-		log.Printf("[mqtt] connected to %s:%d as instance %q", p.cfg.Host, p.cfg.Port, p.cfg.Instance)
+		log.Printf("[netpulse:mqtt] connected to %s:%d as instance %q", p.cfg.Host, p.cfg.Port, p.cfg.Instance)
 
 		p.loop(ctx, client)
 
@@ -215,7 +215,7 @@ func (p *Publisher) dial(ctx context.Context) (*mq.Client, error) {
 			p.publishCycle(c)
 		}),
 		mq.WithOnConnectionLost(func(_ *mq.Client, err error) {
-			log.Printf("[mqtt] connection lost: %v", err)
+			log.Printf("[netpulse:mqtt] connection lost: %v", err)
 		}),
 	}
 	if opt, ok := tlsOption(p.cfg); ok {
@@ -246,7 +246,7 @@ func (p *Publisher) loop(ctx context.Context, client *mq.Client) {
 			return
 		case <-t.C:
 			if n := client.GetStats().ReconnectCount; n > loggedReconnects {
-				log.Printf("[mqtt] client reconnected %d time(s): broker connection unstable", n)
+				log.Printf("[netpulse:mqtt] client reconnected %d time(s): broker connection unstable", n)
 				loggedReconnects = n
 			}
 			if client.IsConnected() {
@@ -341,7 +341,7 @@ func publishWithTimeout(client *mq.Client, topic string, payload []byte, retain
 		opts = append(opts, mq.WithRetain(true))
 	}
 	if err := client.Publish(ctx, topic, payload, opts...).Wait(ctx); err != nil {
-		log.Printf("[mqtt] publish %s: %v", topic, err)
+		log.Printf("[netpulse:mqtt] publish %s: %v", topic, err)
 	}
 }
 

+ 3 - 3
server-go/internal/mqttpub/mqttpub_ha.go

@@ -139,7 +139,7 @@ func routerSetKey(ov *adapters.Overview) string {
 func (p *Publisher) publishStatus(client *mq.Client, ov *adapters.Overview) {
 	payload, err := json.Marshal(buildStatus(p.cfg.Instance, p.version, ov))
 	if err != nil {
-		log.Printf("[mqtt] marshal status: %v", err)
+		log.Printf("[netpulse:mqtt] marshal status: %v", err)
 		return
 	}
 	publish(client, statusTopic(p.cfg.Instance), payload, true)
@@ -155,7 +155,7 @@ func (p *Publisher) publishRouters(client *mq.Client, ov *adapters.Overview) {
 		}
 		payload, err := json.Marshal(buildRouterState(r))
 		if err != nil {
-			log.Printf("[mqtt] marshal router %s: %v", r.ID, err)
+			log.Printf("[netpulse:mqtt] marshal router %s: %v", r.ID, err)
 			continue
 		}
 		publish(client, topic, payload, true)
@@ -194,7 +194,7 @@ func (p *Publisher) publishDiscovery(client *mq.Client) {
 			var err error
 			payload, err = json.Marshal(e.config)
 			if err != nil {
-				log.Printf("[mqtt] marshal discovery %s: %v", e.objectID, err)
+				log.Printf("[netpulse:mqtt] marshal discovery %s: %v", e.objectID, err)
 				continue
 			}
 		}

+ 5 - 5
server-go/internal/poller/poller.go

@@ -153,7 +153,7 @@ func (p *Poller) Stop() {
 func (p *Poller) tick() {
 	defer func() {
 		if rec := recover(); rec != nil {
-			log.Printf("[netpulse] error en tick del poller: %v\n%s", rec, debug.Stack())
+			log.Printf("[netpulse] poller tick error: %v\n%s", rec, debug.Stack())
 		}
 	}()
 	ctx := context.Background()
@@ -163,7 +163,7 @@ func (p *Poller) tick() {
 	overview, err := p.adapter.GetOverview(ctx)
 	if err != nil || overview == nil {
 		if err != nil {
-			log.Printf("[netpulse] error en tick del poller: %v", err)
+			log.Printf("[netpulse] poller tick error: %v", err)
 		}
 		return
 	}
@@ -212,7 +212,7 @@ func (p *Poller) persist(overview *adapters.Overview) {
 			"INSERT INTO metrics (router_id, ts, cpu, ram, temp, latency_ms, rx_bps, tx_bps) VALUES (?, ?, ?, ?, ?, ?, ?, ?)",
 			row.RouterID, ts, row.CPU, row.RAM, row.Temp, row.LatencyMs, row.RxBps, row.TxBps,
 		); err != nil {
-			log.Printf("[netpulse] error en tick del poller (metrics): %v", err)
+			log.Printf("[netpulse] poller tick error (metrics): %v", err)
 		}
 	}
 	p.mu.RLock()
@@ -223,7 +223,7 @@ func (p *Poller) persist(overview *adapters.Overview) {
 			"INSERT INTO adguard_stats (ts, queries, blocked) VALUES (?, ?, ?)",
 			ts, ag.Queries24h, ag.Blocked24h,
 		); err != nil {
-			log.Printf("[netpulse] error en tick del poller (adguard_stats): %v", err)
+			log.Printf("[netpulse] poller tick error (adguard_stats): %v", err)
 		}
 	}
 	p.persistWireGuard(overview, ts)
@@ -261,7 +261,7 @@ func (p *Poller) persistWireGuard(overview *adapters.Overview, ts int64) {
 		return
 	}
 	if err := p.db.WGSeries.RecordSamples(wg.RouterID, time.UnixMilli(ts), samples); err != nil {
-		log.Printf("[netpulse] error en tick del poller (wg peers): %v", err)
+		log.Printf("[netpulse] poller tick error (wg peers): %v", err)
 		return
 	}
 	p.wgMu.Lock()

+ 2 - 2
server-go/internal/pve/instances.go

@@ -47,7 +47,7 @@ func LoadInstances(db *sql.DB) []Instance {
 	if err := db.QueryRow("SELECT value FROM kv WHERE key = ?", kvInstances).Scan(&raw); err == nil && strings.TrimSpace(raw) != "" {
 		var list []Instance
 		if err := json.Unmarshal([]byte(raw), &list); err != nil {
-			log.Printf("[pve] instances corruptas, se regeneran: %v", err)
+			log.Printf("[netpulse:pve] corrupt instances, regenerating: %v", err)
 		} else {
 			return list
 		}
@@ -62,7 +62,7 @@ func LoadInstances(db *sql.DB) []Instance {
 	}
 	list := []Instance{{ID: "default", Name: "Proxmox", Config: Config{URL: url, TokenID: tokenID, Secret: secret}}}
 	if err := SaveInstances(db, list); err != nil {
-		log.Printf("[pve] legacy migration: %v", err)
+		log.Printf("[netpulse:pve] legacy migration: %v", err)
 		return list // devolverla igual: funciona aunque no persista
 	}
 	for _, k := range []string{"proxmox_url", "proxmox_token_id", "proxmox_token_secret"} {

+ 1 - 1
server-go/internal/reinstall/init_selfheal_1857_test.go

@@ -72,7 +72,7 @@ func TestInitSkipsStartWhenTheBinaryIsMissing(t *testing.T) {
 	if strings.Contains(out, "OPEN") {
 		t.Errorf("registro la instancia sin binario:\n%s", out)
 	}
-	if !strings.Contains(out, "self-heal: no se pudo restaurar el binario; el servicio no arranca") {
+	if !strings.Contains(out, "self-heal: could not restore the binary, the service will not start") {
 		t.Errorf("no dijo por que no arranca:\n%s", out)
 	}
 }

+ 4 - 4
server-go/internal/reinstall/messages_1737_test.go

@@ -19,10 +19,10 @@ func TestScriptExplainsItsFailures(t *testing.T) {
 	)
 
 	for _, want := range []string{
-		`no pude descargar el binario de $SERVER (curl)`,
-		`no pude descargar el binario de $SERVER (wget)`,
-		`el paquete .ipk no se pudo instalar`,
-		`el paquete .apk no se pudo instalar`,
+		`could not download the binary from $SERVER (curl)`,
+		`could not download the binary from $SERVER (wget)`,
+		`the .ipk package did not install`,
+		`the .apk package did not install`,
 	} {
 		if !strings.Contains(s, want) {
 			t.Errorf("el script no explica el fallo: %q", want)

+ 32 - 32
server-go/internal/reinstall/reinstall.go

@@ -148,10 +148,10 @@ write_env() {
 NETPULSE_SERVER=$SERVER
 NETPULSE_SLUG=$SLUG
 NETPULSE_TOKEN=$TOKEN
-# NETPULSE_SERVER_FP=<sha256>    # pin SPKI del server (https); lo rellena el instalador
+# NETPULSE_SERVER_FP=<sha256>    # server SPKI pin (https), filled by the installer
 # NETPULSE_INTERVAL=30           # segundos entre pushes
-# NETPULSE_SCAN_INTERVAL: "0" = sin scans periódicos (bajo demanda desde
-# "Análisis de canales"); "30m" u otro valor los reactiva.
+# NETPULSE_SCAN_INTERVAL: "0" = no periodic scans (on demand from
+# "Channel analysis"), "30m" or another value re-enables them.
 NETPULSE_SCAN_INTERVAL=$SCAN_VALUE
 ` + func() string {
 		wanLine := "# NETPULSE_WAN_TARGET=1.1.1.1    # solo si este equipo es el gateway"
@@ -179,7 +179,7 @@ mv -f "$ENV_TMP" "$ENV_FILE" || return 1
 }
 if ! write_env; then
 	rm -f "$ENV_TMP"
-	warn "no pude escribir $ENV_FILE; se queda el anterior"
+	warn "could not write $ENV_FILE, keeping the previous one"
 fi
 `
 }
@@ -327,11 +327,11 @@ case "$ARCH" in
 		case "$(head -c 6 /bin/sh | tail -c 1 | tr '\001\002' '12')" in
 			1) GOARCH=mipsle; SHA256="` + digests["mipsle"] + `" ;;
 			2) GOARCH=mips;  SHA256="` + digests["mips"] + `" ;;
-			*) echo "no pude detectar el endianness de $ARCH" >&2; exit 20 ;;
+			*) echo "could not detect the endianness of $ARCH" >&2; exit 20 ;;
 		esac ;;
-	*) echo "arch no soportado: $ARCH" >&2; exit 20 ;;
+	*) echo "unsupported arch: $ARCH" >&2; exit 20 ;;
 esac
-say "arquitectura $ARCH ($GOARCH)"
+say "architecture $ARCH ($GOARCH)"
 
 # #1476: si el router habla opkg o apk, instala el paquete que sirve el propio
 # servidor. Deja binario, init y /etc/config/netpulse-agent, que es conffile y
@@ -354,7 +354,7 @@ if command -v opkg >/dev/null 2>&1; then
 	if [ -s /tmp/netpulse-agent.ipk ] && opkg install --force-reinstall /tmp/netpulse-agent.ipk >/dev/null 2>&1; then
 		PKG_OK=1
 	else
-		echo "netpulse-agent: el paquete .ipk no se pudo instalar; sigo con los ficheros sueltos" >&2
+		echo "netpulse-agent: the .ipk package did not install, continuing with the loose files" >&2
 	fi
 	rm -f /tmp/netpulse-agent.ipk
 elif command -v apk >/dev/null 2>&1; then
@@ -362,29 +362,29 @@ elif command -v apk >/dev/null 2>&1; then
 	if [ -s /tmp/netpulse-agent.apk ] && apk add --allow-untrusted /tmp/netpulse-agent.apk >/dev/null 2>&1; then
 		PKG_OK=1
 	else
-		echo "netpulse-agent: el paquete .apk no se pudo instalar; sigo con los ficheros sueltos" >&2
+		echo "netpulse-agent: the .apk package did not install, continuing with the loose files" >&2
 	fi
 	rm -f /tmp/netpulse-agent.apk
 fi
-if [ "$PKG_OK" = "1" ]; then say "paquete instalado"; else say "sin paquete; instalo el binario suelto"; fi
+if [ "$PKG_OK" = "1" ]; then say "package installed"; else say "no package, installing the loose binary"; fi
 if [ "$PKG_OK" != "1" ]; then
 # Descargar el binario del propio server (auth por token)
 # #1737: sin estos mensajes el fallo llega como "Process exited with status
 # 1" y nada mas. wget -q no imprime su motivo, asi que la descarga fallida
 # por wget era completamente muda.
 if command -v curl >/dev/null 2>&1; then
-	curl -fsSL $CURL_TLS --connect-timeout 10 -m 600 -H "Authorization: Bearer $TOKEN" "$SERVER/api/agents/$SLUG/binary?arch=$GOARCH" -o /tmp/netpulse-agent.new || { echo "netpulse-agent: no pude descargar el binario de $SERVER (curl)" >&2; exit 22; }
+	curl -fsSL $CURL_TLS --connect-timeout 10 -m 600 -H "Authorization: Bearer $TOKEN" "$SERVER/api/agents/$SLUG/binary?arch=$GOARCH" -o /tmp/netpulse-agent.new || { echo "netpulse-agent: could not download the binary from $SERVER (curl)" >&2; exit 22; }
 else
-	wget -q $WGET_TLS -T 60 -O /tmp/netpulse-agent.new --header="Authorization: Bearer $TOKEN" "$SERVER/api/agents/$SLUG/binary?arch=$GOARCH" || { echo "netpulse-agent: no pude descargar el binario de $SERVER (wget)" >&2; exit 22; }
+	wget -q $WGET_TLS -T 60 -O /tmp/netpulse-agent.new --header="Authorization: Bearer $TOKEN" "$SERVER/api/agents/$SLUG/binary?arch=$GOARCH" || { echo "netpulse-agent: could not download the binary from $SERVER (wget)" >&2; exit 22; }
 fi
 
 # Verificación sha256 contra el digest embebido (#463); vacío = sin verificar
 if [ -n "$SHA256" ]; then
 	GOT=$(sha256sum /tmp/netpulse-agent.new | awk '{print $1}')
-	[ "$GOT" = "$SHA256" ] || { echo "sha256 no coincide (esperado $SHA256, obtenido $GOT)" >&2; exit 21; }
+	[ "$GOT" = "$SHA256" ] || { echo "sha256 mismatch (want $SHA256, got $GOT)" >&2; exit 21; }
 fi
 chmod 0755 /tmp/netpulse-agent.new
-say "binario descargado y verificado"
+say "binary downloaded and verified"
 # #1853: el servicio se para AQUI, con el binario ya descargado y verificado.
 # Pararlo antes dejaba el router sin agente si la descarga fallaba. Hay que
 # pararlo igualmente: /tmp es tmpfs y /usr es overlay, asi que mv escribe el
@@ -392,7 +392,7 @@ say "binario descargado y verificado"
 # vuelve a arrancar el anterior en vez de dejarlo caido.
 [ -f "$INIT" ] && "$INIT" stop >/dev/null 2>&1 || true
 if ! mv -f /tmp/netpulse-agent.new "$BIN"; then
-	echo "netpulse-agent: no pude reemplazar $BIN; vuelvo a arrancar el agente anterior" >&2
+	echo "netpulse-agent: could not replace $BIN, restarting the previous agent" >&2
 	[ -f "$INIT" ] && "$INIT" start >/dev/null 2>&1 || true
 	exit 23
 fi
@@ -431,7 +431,7 @@ selfheal_binary() {
 		https|HTTPS) ;;
 		*)
 			[ "${NETPULSE_ALLOW_INSECURE_COMMANDS:-}" = "1" ] || {
-				logger -t netpulse-agent "self-heal: HTTP sin NETPULSE_ALLOW_INSECURE_COMMANDS=1, binario no descargado"
+				logger -t netpulse-agent "self-heal: HTTP without NETPULSE_ALLOW_INSECURE_COMMANDS=1, binary not downloaded"
 				return 1
 			}
 			;;
@@ -450,7 +450,7 @@ selfheal_binary() {
 	esac
 	local url tmp hdr digest sum
 	url="${NETPULSE_SERVER%/}/api/agents/${NETPULSE_SLUG}/binary?arch=${ARCH}"
-	logger -t netpulse-agent "self-heal: binario ausente, descargando de $NETPULSE_SERVER"
+	logger -t netpulse-agent "self-heal: binary missing, downloading from $NETPULSE_SERVER"
 	tmp=/tmp/netpulse-agent.$$
 	hdr=/tmp/netpulse-agent.hdr.$$
 	local ctls="" wtls=""
@@ -464,19 +464,19 @@ selfheal_binary() {
 	rm -f "$hdr"
 	case "$digest" in
 		""|*[!0123456789abcdefABCDEF]*)
-			logger -t netpulse-agent "self-heal: sin X-Checksum-Sha256 válido, binario descartado"
+			logger -t netpulse-agent "self-heal: no valid X-Checksum-Sha256, binary discarded"
 			rm -f "$tmp"
 			return 1 ;;
 	esac
-	[ "${#digest}" -eq 64 ] || { logger -t netpulse-agent "self-heal: digest con longitud inválida, binario descartado"; rm -f "$tmp"; return 1; }
+	[ "${#digest}" -eq 64 ] || { logger -t netpulse-agent "self-heal: digest with invalid length, binary discarded"; rm -f "$tmp"; return 1; }
 	sum=$(sha256sum "$tmp" 2>/dev/null | awk '{print $1}')
 	if [ -z "$sum" ] || [ "$(printf '%s' "$sum" | tr 'A-F' 'a-f')" != "$(printf '%s' "$digest" | tr 'A-F' 'a-f')" ]; then
-		logger -t netpulse-agent "self-heal: SHA-256 no coincide, binario descartado"
+		logger -t netpulse-agent "self-heal: SHA-256 mismatch, binary discarded"
 		rm -f "$tmp"
 		return 1
 	fi
 	chmod 0755 "$tmp" && mv "$tmp" /usr/sbin/netpulse-agent || { rm -f "$tmp"; return 1; }
-	logger -t netpulse-agent "self-heal: binario restaurado"
+	logger -t netpulse-agent "self-heal: binary restored"
 	BIN=/usr/sbin/netpulse-agent
 	return 0
 }
@@ -489,7 +489,7 @@ cleanup_stale_watchdog_cron() {
 	[ -f /usr/sbin/netpulse-watchdog ] && return 0
 	crontab -l 2>/dev/null | grep -q netpulse-watchdog || return 0
 	( crontab -l 2>/dev/null | grep -v netpulse-watchdog ) | crontab - 2>/dev/null || true
-	logger -t netpulse-agent "watchdog cron huérfano retirado (#879)"
+	logger -t netpulse-agent "orphan watchdog cron entry removed (#879)"
 }
 
 # #1857: si el binario no está y el self-heal no lo trae, no se registra la
@@ -499,7 +499,7 @@ cleanup_stale_watchdog_cron() {
 start_service() {
 	cleanup_stale_watchdog_cron
 	if ! selfheal_binary; then
-		logger -t netpulse-agent "self-heal: no se pudo restaurar el binario; el servicio no arranca"
+		logger -t netpulse-agent "self-heal: could not restore the binary, the service will not start"
 		return 0
 	fi
 	procd_open_instance netpulse-agent
@@ -512,30 +512,30 @@ start_service() {
 }
 INITEOF
 then
-	chmod 0755 "$INIT_TMP" && mv -f "$INIT_TMP" "$INIT" || { rm -f "$INIT_TMP"; warn "no pude instalar $INIT"; }
+	chmod 0755 "$INIT_TMP" && mv -f "$INIT_TMP" "$INIT" || { rm -f "$INIT_TMP"; warn "could not install $INIT"; }
 else
 	rm -f "$INIT_TMP"
-	warn "no pude preparar $INIT"
+	warn "could not prepare $INIT"
 fi
 fi
 
 # #851: el watchdog cron YA NO se instala (un reinicio a ciegas de un crash
 # loop no arregla nada y ensucia el log; la detección es el dead-man del
 # servidor). Si el router viene de una instalación que sí lo tenía, limpiarlo.
-rm -f /usr/sbin/netpulse-watchdog || warn "no pude borrar /usr/sbin/netpulse-watchdog"
+rm -f /usr/sbin/netpulse-watchdog || warn "could not remove /usr/sbin/netpulse-watchdog"
 if [ -f /etc/crontabs/root ]; then
-	sed -i '/netpulse-watchdog/d' /etc/crontabs/root || warn "no pude limpiar el cron del watchdog"
+	sed -i '/netpulse-watchdog/d' /etc/crontabs/root || warn "could not clean the watchdog cron entry"
 fi
 
 # #1853: de aqui al final nada puede abortar en silencio: el binario nuevo ya
 # esta en su sitio y el servicio sigue parado, asi que se avisa y se arranca.
-"$INIT" enable >/dev/null 2>&1 || warn "no pude habilitar $INIT"
+"$INIT" enable >/dev/null 2>&1 || warn "could not enable $INIT"
 ` + preserveOnSysupgrade + `
 if ! "$INIT" restart >/dev/null 2>&1; then
-	warn "el agente no arranco tras el reinstall; revisa $INIT"
+	warn "the agent did not start after the reinstall, check $INIT"
 	exit 24
 fi
-say "agente arrancado"
+say "agent started"
 `
 }
 
@@ -551,7 +551,7 @@ set -e
 ENV_FILE=/etc/netpulse-agent.env
 INIT=/etc/init.d/netpulse-agent
 # El env debe existir: el router ya tenía el agente instalado.
-[ -f "$ENV_FILE" ] || { echo "netpulse-agent.env no existe; token no actualizado" >&2; exit 30; }
+[ -f "$ENV_FILE" ] || { echo "netpulse-agent.env does not exist, token not updated" >&2; exit 30; }
 # Conservar el server y el slug del env existente para no romper la config.
 SERVER=$(sed -n 's/^NETPULSE_SERVER=//p' "$ENV_FILE" | head -n1)
 SLUG=$(sed -n 's/^NETPULSE_SLUG=//p' "$ENV_FILE" | head -n1)
@@ -562,7 +562,7 @@ SLUG=$(sed -n 's/^NETPULSE_SLUG=//p' "$ENV_FILE" | head -n1)
 # aplica una vez emparejado.
 FP=$(sed -n 's/^NETPULSE_SERVER_FP=//p' "$ENV_FILE" | head -n1)
 USER_VARS=$(grep -E '^NETPULSE_[A-Z0-9_]+=' "$ENV_FILE" | grep -vE '^NETPULSE_(SERVER|SLUG|TOKEN|SERVER_FP|PAIRING_TOKEN)=') || true
-[ -n "$SLUG" ] || { echo "netpulse-agent.env sin NETPULSE_SLUG" >&2; exit 31; }
+[ -n "$SLUG" ] || { echo "netpulse-agent.env has no NETPULSE_SLUG" >&2; exit 31; }
 umask 077
 cat > "$ENV_FILE.tmp" <<EOF
 NETPULSE_SERVER=$SERVER

+ 3 - 3
server-go/internal/reinstall/reinstall_progress_1894_test.go

@@ -12,9 +12,9 @@ func TestScriptProgress_1894(t *testing.T) {
 	s := scriptForTest()
 	for _, want := range []string{
 		`say() { echo "netpulse-agent: $*"; }`,
-		`say "arquitectura $ARCH ($GOARCH)"`,
-		`say "binario descargado y verificado"`,
-		`say "agente arrancado"`,
+		`say "architecture $ARCH ($GOARCH)"`,
+		`say "binary downloaded and verified"`,
+		`say "agent started"`,
 	} {
 		if !strings.Contains(s, want) {
 			t.Fatalf("el script no lleva %q", want)

+ 5 - 5
server-go/internal/reinstall/robust_1853_test.go

@@ -19,7 +19,7 @@ func TestScriptStopsOnlyOnceItCanInstall(t *testing.T) {
 	)
 
 	download := strings.Index(s, "/binary?arch=$GOARCH")
-	digest := strings.Index(s, "sha256 no coincide")
+	digest := strings.Index(s, "sha256 mismatch")
 	stop := strings.Index(s, `"$INIT" stop`)
 	replace := strings.Index(s, `mv -f /tmp/netpulse-agent.new "$BIN"`)
 	if download < 0 || digest < 0 || stop < 0 || replace < 0 {
@@ -29,7 +29,7 @@ func TestScriptStopsOnlyOnceItCanInstall(t *testing.T) {
 		t.Errorf("orden incorrecto: download=%d digest=%d stop=%d replace=%d", download, digest, stop, replace)
 	}
 
-	if !strings.Contains(s, "vuelvo a arrancar el agente anterior") {
+	if !strings.Contains(s, "restarting the previous agent") {
 		t.Error("el fallo al reemplazar el binario debe avisar del rollback")
 	}
 	if !strings.Contains(s, `"$INIT" start`) {
@@ -41,9 +41,9 @@ func TestScriptStopsOnlyOnceItCanInstall(t *testing.T) {
 
 	// Los diagnosticos tienen que ir a stderr: el servidor solo captura stderr.
 	for _, want := range []string{
-		`sha256 no coincide (esperado $SHA256, obtenido $GOT)" >&2`,
-		`no pude detectar el endianness de $ARCH" >&2`,
-		`arch no soportado: $ARCH" >&2`,
+		`sha256 mismatch (want $SHA256, got $GOT)" >&2`,
+		`could not detect the endianness of $ARCH" >&2`,
+		`unsupported arch: $ARCH" >&2`,
 	} {
 		if !strings.Contains(s, want) {
 			t.Errorf("mensaje sin stderr: %s", want)

+ 1 - 1
server-go/internal/reinstall/scan_default_test.go

@@ -24,7 +24,7 @@ func envBlockForTest(t *testing.T) string {
 	if start < 0 {
 		t.Fatal("no encuentro el bloque de env en el script")
 	}
-	marker := "warn \"no pude escribir $ENV_FILE; se queda el anterior\"\nfi"
+	marker := "warn \"could not write $ENV_FILE, keeping the previous one\"\nfi"
 	end := strings.Index(s[start:], marker)
 	if end < 0 {
 		t.Fatal("el bloque de env no termina con el guard de write_env")

+ 6 - 6
server-go/internal/reinstall/script_test.go

@@ -50,7 +50,7 @@ func TestScriptEnvDocumentsDefaults(t *testing.T) {
 	s := scriptForTest()
 	for _, want := range []string{
 		"# NETPULSE_INTERVAL=30",
-		`# NETPULSE_SCAN_INTERVAL: "0" = sin scans periódicos`,
+		`# NETPULSE_SCAN_INTERVAL: "0" = no periodic scans`,
 		"NETPULSE_SCAN_INTERVAL=$SCAN_VALUE",
 		"# NETPULSE_WAN_TARGET=1.1.1.1",
 		"# NETPULSE_GW_TARGET=192.168.8.1",
@@ -146,8 +146,8 @@ func TestScriptSelfHealInit(t *testing.T) {
 	for _, want := range []string{
 		"selfheal_binary()",
 		`url="${NETPULSE_SERVER%/}/api/agents/${NETPULSE_SLUG}/binary?arch=${ARCH}"`,
-		"logger -t netpulse-agent \"self-heal: binario restaurado\"",
-		"self-heal: no se pudo restaurar el binario; el servicio no arranca",
+		"logger -t netpulse-agent \"self-heal: binary restored\"",
+		"self-heal: could not restore the binary, the service will not start",
 	} {
 		if !strings.Contains(s, want) {
 			t.Errorf("init sin self-heal: falta %q", want)
@@ -267,8 +267,8 @@ func TestScriptSelfHealVerifiesDigest(t *testing.T) {
 	for _, want := range []string{
 		"x-checksum-sha256:",
 		`sha256sum "$tmp"`,
-		"self-heal: sin X-Checksum-Sha256 válido, binario descartado",
-		"self-heal: SHA-256 no coincide, binario descartado",
+		"self-heal: no valid X-Checksum-Sha256, binary discarded",
+		"self-heal: SHA-256 mismatch, binary discarded",
 	} {
 		if !strings.Contains(s, want) {
 			t.Errorf("init embebido sin %q en el self-heal", want)
@@ -279,7 +279,7 @@ func TestScriptSelfHealVerifiesDigest(t *testing.T) {
 func TestSelfHealRequiresHTTPSOrExplicitOptIn(t *testing.T) {
 	want := []string{
 		`[ "${NETPULSE_ALLOW_INSECURE_COMMANDS:-}" = "1" ]`,
-		"self-heal: HTTP sin NETPULSE_ALLOW_INSECURE_COMMANDS=1, binario no descargado",
+		"self-heal: HTTP without NETPULSE_ALLOW_INSECURE_COMMANDS=1, binary not downloaded",
 	}
 	generated := scriptForTest()
 	for _, w := range want {

+ 3 - 3
server-go/internal/reinstall/tail_1855_test.go

@@ -22,11 +22,11 @@ func TestScriptSurvivesAFailedConfigStep(t *testing.T) {
 	for _, want := range []string{
 		`ENV_TMP="$ENV_FILE.new.$$"`,
 		`mv -f "$ENV_TMP" "$ENV_FILE" || return 1`,
-		`warn "no pude escribir $ENV_FILE; se queda el anterior"`,
+		`warn "could not write $ENV_FILE, keeping the previous one"`,
 		`INIT_TMP="/tmp/netpulse-agent.init.$$"`,
-		`warn "no pude instalar $INIT"`,
+		`warn "could not install $INIT"`,
 		`rm -f /usr/sbin/netpulse-watchdog || warn`,
-		`"$INIT" enable >/dev/null 2>&1 || warn "no pude habilitar $INIT"`,
+		`"$INIT" enable >/dev/null 2>&1 || warn "could not enable $INIT"`,
 		`if ! "$INIT" restart >/dev/null 2>&1; then`,
 		`exit 24`,
 	} {

+ 3 - 3
server-go/internal/routerstore/routerstore.go

@@ -666,10 +666,10 @@ func EnsureInitialRouters(db *sql.DB, cfg *config.Config) []adapters.RouterConfi
 				IsGateway: r.Type == "glinet" || i == 0,
 			})
 			if err != nil {
-				log.Printf("[netpulse] error sembrando router %s: %v", r.Host, err)
+				log.Printf("[netpulse] error seeding router %s: %v", r.Host, err)
 			}
 		}
-		log.Printf("[netpulse] routers sembrados desde ROUTERS_JSON (%d)", len(cfg.Routers))
+		log.Printf("[netpulse] routers seeded from ROUTERS_JSON (%d)", len(cfg.Routers))
 		return ListRouters(db)
 	}
 
@@ -689,7 +689,7 @@ func EnsureInitialRouters(db *sql.DB, cfg *config.Config) []adapters.RouterConfi
 	}
 	created, err := AddRouter(db, AddInput{Name: name, Host: gwIP, Type: typ, IsGateway: true})
 	if err != nil {
-		log.Printf("[netpulse] error creando gateway autodetectado: %v", err)
+		log.Printf("[netpulse] error creating the autodetected gateway: %v", err)
 		return ListRouters(db)
 	}
 	if model == "" {

+ 2 - 2
server-go/internal/speedtest/scheduler.go

@@ -134,7 +134,7 @@ func NewScheduler(store *Store, db *sql.DB, runner Runner) *Scheduler {
 	return &Scheduler{
 		store: store, db: db, runner: runner,
 		now:  time.Now,
-		logf: func(f string, a ...any) { log.Printf("[speedtest] "+f, a...) },
+		logf: func(f string, a ...any) { log.Printf("[netpulse:speedtest] "+f, a...) },
 	}
 }
 
@@ -733,6 +733,6 @@ func kvSet(db *sql.DB, key, val string) {
 	if _, err := db.Exec(
 		`INSERT INTO kv (key, value) VALUES (?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value`,
 		key, val); err != nil {
-		log.Printf("[speedtest] kv set %s: %v", key, err)
+		log.Printf("[netpulse:speedtest] kv set %s: %v", key, err)
 	}
 }

+ 1 - 1
server-go/internal/sshkey/knownhosts.go

@@ -139,7 +139,7 @@ func SanitizeKnownHosts(khPath string) (int, error) {
 	if dropped == 0 {
 		return 0, nil
 	}
-	log.Printf("[netpulse:ssh] known_hosts %s: %d línea(s) ilegible(s) descartada(s), la primera en la %d (#2014)", khPath, dropped, firstBad)
+	log.Printf("[netpulse:ssh] known_hosts %s: %d unreadable line(s) dropped, first on line %d (#2014)", khPath, dropped, firstBad)
 	if err := replaceKnownHostsLocked(khPath, []byte(strings.Join(keep, "\n")+"\n")); err != nil {
 		return 0, err
 	}

+ 2 - 2
server-go/internal/sshkey/sshkey.go

@@ -54,7 +54,7 @@ func EnsureKeypair(keyPath string) error {
 		if privateParses(keyPath) {
 			return nil
 		}
-		log.Printf("[netpulse] sshkey: la clave en %s no es legible por crypto/ssh (formato externo, tipicamente Dropbear de OpenWrt 21.02); se respalda como .bak.<epoch> y se regenera en proceso (#1701)", keyPath)
+		log.Printf("[netpulse] sshkey: crypto/ssh cannot read the key at %s (foreign format, usually Dropbear on OpenWrt 21.02), backing it up as .bak.<epoch> and regenerating it in process (#1701)", keyPath)
 		bak := fmt.Sprintf("%s.bak.%d", keyPath, time.Now().Unix())
 		if err := os.Rename(keyPath, bak); err != nil {
 			return err
@@ -338,7 +338,7 @@ func scanHostKeys(host string) ([]khEntry, error) {
 	}
 	entries, perr := parseKnownHosts(string(out))
 	if perr == nil {
-		log.Printf("[netpulse:ssh] ssh-keyscan %s: %d clave(s) de host", host, len(entries))
+		log.Printf("[netpulse:ssh] ssh-keyscan %s: %d host key(s)", host, len(entries))
 	}
 	return entries, perr
 }

+ 2 - 2
server-go/internal/updater/autosched.go

@@ -77,7 +77,7 @@ func NewScheduler(db *sql.DB, ua CheckerApplier) *Scheduler {
 		ua:  ua,
 		now: time.Now,
 		logf: func(f string, a ...any) {
-			log.Printf("[autoupdate] "+f, a...)
+			log.Printf("[netpulse:autoupdate] "+f, a...)
 		},
 	}
 }
@@ -413,7 +413,7 @@ func setAutoKv(db *sql.DB, key, val string) {
 	if _, err := db.Exec(
 		`INSERT INTO kv (key, value) VALUES (?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value`,
 		autoKvPrefix+key, val); err != nil {
-		log.Printf("[autoupdate] kv set %s: %v", key, err)
+		log.Printf("[netpulse:autoupdate] kv set %s: %v", key, err)
 	}
 }
 

+ 6 - 6
server-go/internal/updater/history.go

@@ -50,7 +50,7 @@ func (u *Updater) recordStart(from string, to *string, initiatedBy string) int64
 		 VALUES (?, ?, ?, ?, ?, ?, ?, 'running')`,
 		newEventID(), time.Now().UnixMilli(), "apply", u.mode, from, to, initiatedBy)
 	if err != nil {
-		fmt.Printf("[netpulse] no se pudo registrar el historial de update: %v\n", err)
+		fmt.Printf("[netpulse] could not record the update history: %v\n", err)
 		return -1
 	}
 	id, _ := res.LastInsertId()
@@ -70,7 +70,7 @@ func (u *Updater) finishHistory(id int64, status, errStr string, dur time.Durati
 	if _, err := u.db.Exec(
 		`UPDATE update_history SET status = ?, duration_ms = ?, error = ? WHERE id = ?`,
 		status, ms, errVal, id); err != nil {
-		fmt.Printf("[netpulse] no se pudo finalizar el historial de update: %v\n", err)
+		fmt.Printf("[netpulse] could not finish the update history: %v\n", err)
 	}
 }
 
@@ -83,7 +83,7 @@ func (u *Updater) finalizeInterrupted() {
 	msg := "interrupted_by_restart"
 	if _, err := u.db.Exec(
 		`UPDATE update_history SET status = 'failed', error = ? WHERE status = 'running'`, msg); err != nil {
-		fmt.Printf("[netpulse] no se pudo finalizar historial interrumpido: %v\n", err)
+		fmt.Printf("[netpulse] could not finish the interrupted history entry: %v\n", err)
 	}
 }
 
@@ -103,11 +103,11 @@ func (u *Updater) markInterruptedAsSuccess(to string) {
 		                AND version_to = ?
 		              ORDER BY ts DESC LIMIT 1)`, to)
 	if err != nil {
-		fmt.Printf("[netpulse] no se pudo re-marcar el historial de update: %v\n", err)
+		fmt.Printf("[netpulse] could not re-mark the update history: %v\n", err)
 		return
 	}
 	if n, _ := res.RowsAffected(); n > 0 {
-		fmt.Printf("[netpulse] historial: apply estable a %s registrado como éxito\n", to)
+		fmt.Printf("[netpulse] history: stable apply to %s recorded as successful\n", to)
 	}
 }
 
@@ -165,6 +165,6 @@ func (u *Updater) updateHistoryTarget(id int64, to string) {
 		return
 	}
 	if _, err := u.db.Exec(`UPDATE update_history SET version_to = ? WHERE id = ?`, to, id); err != nil {
-		fmt.Printf("[netpulse] no se pudo rectificar el target del historial: %v\n", err)
+		fmt.Printf("[netpulse] could not correct the history target: %v\n", err)
 	}
 }

+ 2 - 2
server-go/internal/updater/pending.go

@@ -40,7 +40,7 @@ func (u *Updater) persistPendingApply(from string, to *string) {
 	if _, err := u.db.Exec(
 		`INSERT INTO kv (key, value) VALUES (?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value`,
 		pendingApplyKey, string(data)); err != nil {
-		fmt.Printf("[netpulse] no se pudo persistir el marcador de update: %v\n", err)
+		fmt.Printf("[netpulse] could not persist the update marker: %v\n", err)
 	}
 }
 
@@ -113,7 +113,7 @@ func (u *Updater) loadStablePending() {
 	}
 	marker := readAppliedMarker(u.appliedMarkerPath())
 	if marker == "" || (p.To != "" && marker != strings.TrimSpace(p.To)) {
-		fmt.Printf("[netpulse] apply estable sin marcador de éxito (marker=%q, target=%q); no se confirma\n", marker, p.To)
+		fmt.Printf("[netpulse] stable apply without a success marker (marker=%q, target=%q), not confirming\n", marker, p.To)
 		return
 	}
 	_ = os.Remove(u.appliedMarkerPath())

+ 6 - 6
server-go/internal/updater/stable.go

@@ -109,7 +109,7 @@ func (u *Updater) applyStable(historyID int64, tag string, startedAt time.Time)
 		u.mu.Unlock()
 		u.finishHistory(historyID, "failed", code, time.Since(startedAt))
 		u.clearPendingApply()
-		fmt.Printf("[netpulse:update] apply estable fallido: %s\n", code)
+		fmt.Printf("[netpulse:update] stable apply failed: %s\n", code)
 	}
 
 	if u.dataDir == "" {
@@ -123,7 +123,7 @@ func (u *Updater) applyStable(historyID int64, tag string, startedAt time.Time)
 	u.setStepLocked("download")
 	u.broadcastLocked()
 	u.mu.Unlock()
-	fmt.Printf("[netpulse:update] estable: descargando %s (%s)\n", asset, tag)
+	fmt.Printf("[netpulse:update] stable: downloading %s (%s)\n", asset, tag)
 
 	staging := filepath.Join(u.dataDir, "updates")
 	_ = os.RemoveAll(staging) // restos de intentos previos
@@ -139,12 +139,12 @@ func (u *Updater) applyStable(historyID int64, tag string, startedAt time.Time)
 	tgz := filepath.Join(staging, asset)
 	base := fmt.Sprintf("%s/%s/releases/download/%s", downloadBase, u.repo, tag)
 	if err := downloadToFile(base+"/"+asset, tgz); err != nil {
-		fmt.Printf("[netpulse:update] descarga de %s falló: %v\n", asset, err)
+		fmt.Printf("[netpulse:update] download of %s failed: %v\n", asset, err)
 		fail("stable_download_failed")
 		return
 	}
 	if err := downloadToFile(base+"/checksums.txt", filepath.Join(staging, "checksums.txt")); err != nil {
-		fmt.Printf("[netpulse:update] descarga de checksums.txt falló: %v\n", err)
+		fmt.Printf("[netpulse:update] download of checksums.txt failed: %v\n", err)
 		fail("stable_download_failed")
 		return
 	}
@@ -165,7 +165,7 @@ func (u *Updater) applyStable(historyID int64, tag string, startedAt time.Time)
 		return
 	}
 	if !strings.EqualFold(want, got) {
-		fmt.Printf("[netpulse:update] sha256 mismatch del tarball: want %s got %s\n", want, got)
+		fmt.Printf("[netpulse:update] tarball sha256 mismatch: want %s got %s\n", want, got)
 		fail("stable_checksum_mismatch")
 		return
 	}
@@ -204,7 +204,7 @@ func (u *Updater) applyStable(historyID int64, tag string, startedAt time.Time)
 	u.setStepLocked("restart")
 	u.broadcastLocked()
 	u.mu.Unlock()
-	fmt.Printf("[netpulse:update] estable %s en escena; esperando swap+restart (unidad root)\n", tag)
+	fmt.Printf("[netpulse:update] stable %s staged, waiting for swap+restart (root unit)\n", tag)
 
 	// En producción el helper reinicia el servicio y el proceso muere aquí
 	// con el binario nuevo. En tests, Stop() desbloquea sin marcar nada

+ 2 - 2
server-go/internal/updater/updater.go

@@ -576,7 +576,7 @@ func (u *Updater) Check(ctx context.Context) Status {
 		u.compareURL = ""
 	}
 	if u.updateAvail {
-		fmt.Printf("[netpulse] nueva versión disponible: %s → %s (%s)\n", current, latest, latestMsg)
+		fmt.Printf("[netpulse] new version available: %s → %s (%s)\n", current, latest, latestMsg)
 	}
 	return u.statusLocked()
 }
@@ -727,7 +727,7 @@ func (u *Updater) ApplyBy(initiatedBy string) bool {
 		u.broadcastLocked()
 		u.mu.Unlock()
 		u.finishHistory(historyID, "failed", code, time.Since(startedAt))
-		fmt.Printf("[netpulse] no se pudo copiar update.sh: %v\n", err)
+		fmt.Printf("[netpulse] could not copy update.sh: %v\n", err)
 		return false
 	}