Skip to content
Probe MCP
Get Support

Configuring the probe

Most deployments run on defaults. When you need to tune what the probe collects — turn on sFlow, enable packet capture, change SNMP communities — you edit its YAML config.

The container reads its config from /etc/probe-mcp/probe.yaml. Mount your file there (read-only) when you run the container.

Settings are resolved in this order, later winning:

  1. Compiled-in defaults
  2. The YAML file
  3. Environment variables

So you can override a single knob with an env var without editing the file. Only cloud_url and data_dir are strictly required, and both have defaults.

KeyDefault
cloud_urlhttps://probe-mcp.lanpulse.com
data_dir/var/lib/probe-mcp
log_levelinfo (debug, info, warn, error)

probe_id, probe_secret, and activation_code are normally set by activation, not by hand.

SectionKey defaultsEnabled by default?
syslogudp_port: 514, tcp_port: 514, max_msg_len: 8192Yes
snmpversion: "2c", communities: ["public"], poll_interval: 60, auto_discover: trueYes (outbound poll to UDP 161)
snmp_trapudp_port: 162 (inherits snmp.communities if empty)Yes
flow_collectorsflow_port: 6343, netflow_port: 2055, aggregation_sec: 300, top_n: 10No
discoveryinterval_sec: 300, arp_watch: true, mdns/ssdp/lldp: true, ping_sweep: falseYes (ping sweep off)
pcapinterfaces: [] (all up), bpf: "", ring_bytes: 1 GiB, snap_len: 1600No
sshmax_sessions: 5, idle_timeout_sec: 600No
tftpport: 69, ttl_sec: 300, max_kb: 1024No
livenessinterval_sec: 60, timeout_sec: 600No
reach_throughallowed_hosts: [], max_bytes: 8 MiB, timeout_sec: 8No
vaultmax_entries: 128Yes
apilisten_addr: "127.0.0.1:8080"Yes
tunnelhealth_check_sec: 30, metrics_addr: "127.0.0.1:20241"Yes
rollupinterval_sec: 60Yes
buffermax_size_mb: 256, flush_on_drain: true(always on)
retentionmax_age_hours: 168 (7 days), max_size_mb: 1024(always on)

The most common changes:

  • sFlow / NetFlow — set flow_collector.enabled: true, then point exporters at UDP 6343 / 2055. See Pointing your network at the probe.
  • Packet capture — set pcap.enabled: true and (optionally) pcap.interfaces / pcap.bpf. Capture is Linux-only and needs the CAP_NET_RAW capability.
  • SSH device CLI — set ssh.enabled: true to allow on-demand SSH sessions to devices.
  • Active discovery — set discovery.ping_sweep: true to ICMP-sweep the subnet in addition to passive discovery.

The probe binary accepts:

FlagDefaultPurpose
-config""Path to the config file.
-log-level""Override the log level (debug/info/warn/error).
-versionfalsePrint version and exit.

Handy for one-off overrides without touching the file:

Env varOverrides
ACTIVATION_CODEThe one-time activation code (first start only).
PROBE_CLOUD_URLcloud_url
PROBE_DATA_DIRdata_dir
PROBE_LOG_LEVELlog_level
PROBE_API_LISTENapi.listen_addr
PROBE_PCAP_ENABLEDpcap.enabled (1/true)
PROBE_PCAP_INTERFACESpcap.interfaces (comma-separated)
PROBE_PCAP_BPFpcap.bpf

PROBE_ID, PROBE_SECRET, and PROBE_TUNNEL_METRICS_ADDR are also honored but are normally managed by activation.