switch-scraper.env.example 990 B

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