# switch-scraper.env — configuración del pusher externo de switches # gestionados (deploy/switch-scraper.sh). Copiar a # /opt/netpulse/switch-scraper.env con permisos 600 (root). # El timer systemd debe casar su OnUnitActiveSec con INTERVAL. # Switch a scrapear (web UI http) SWITCH_HOST="192.168.1.6" SWITCH_USER="admin" SWITCH_PASS="cambia-esta-clave" # Identidad ante NetPulse (token en /opt/netpulse/.token) AGENT_SLUG="switch16" # Servidor NetPulse y cadencia de push (segundos) NETPULSE_URL="http://127.0.0.1:3000" INTERVAL=300 # FORK: with HTTPS on (Settings > HTTPS), push over it instead - required once # plain HTTP is set to "redirect". Fetch the root once into a file this # script's user can read (the server's own copy is private to it), and check # its fingerprint against Settings > HTTPS: # curl -fsS http://127.0.0.1:3000/netpulse-ca.pem -o /opt/netpulse/netpulse-ca.pem # NETPULSE_URL="https://127.0.0.1:3443" # NETPULSE_CA="/opt/netpulse/netpulse-ca.pem"