Agent Configuration
Reference of the AsPeekIt agent configuration: file location, main settings, environment variable overrides, collection modules, software inventory, API keys and the data payload.
Configuration File Location
The agent reads a YAML file at a platform-specific default path, written by the installers. Pass -config to use another file. Missing keys keep their defaults.
- Linux and macOS: /etc/idp-agent/agent.yaml
- Windows: C:\ProgramData\idp-agent\agent.yaml
- Override: idp-agent -config /path/to/agent.yaml
- Other flags: -version (print the version), -once (one collection, then exit), -dry-run (collect but do not send), -output <file> (write the collected JSON to a file instead of sending). No enrollment and no certificate request happen with -dry-run or -output.
Main Settings
agent_id and backend_url are required, and so is a credential: api_key, a non-empty api_key_file or an enrollment_token. The complete commented example is agent/configs/agent.yaml.example in the repository.
Note: Invalid numeric values (zero or negative intervals and timeouts) are replaced with their defaults and a warning is logged.
agent_id: "web-01" # unique and stable; never reused across discovery zones
agent_name: "" # display name
backend_url: "https://idp.example.com"
api_key: "idpk_..." # zone key or dedicated key; empty to enroll with a token
enrollment_token: "" # see Agent Enrollment & mTLS
api_key_file: "/var/lib/idp-agent/api_key" # Windows: C:\ProgramData\idp-agent\api_key
collection_interval_seconds: 300
send_timeout_seconds: 30
retry_count: 3
retry_delay_seconds: 5
command_poll_seconds: 60 # poll of on-demand scans ("Scan now")
features:
system_collection: true
process_collection: true
network_collection: true
application_collection: true
container_collection: true
certificate_collection: false # the installers write true
package_collection: true
image_scan: false # install.sh --image-scan
log_level: "info"
log_format: "text" # or "json"
log_file: "" # empty: stderr (journald on Linux)
tls_ca_file: "" # private CA of the platform
tls_cert_file: "" # manual client certificate (disables the automatic mTLS)
tls_key_file: ""
tls_skip_verify: false
mtls:
auto: true # see Automatic Agent mTLS
dir: "/var/lib/idp-agent/mtls"
certificate_paths: []
process_min_memory_bytes: 0
process_exclude_users: []
network_exclude_interfaces: []
network_connections_max: 10000
docker_host: ""
security:
fim:
enabled: false
interval_minutes: 5
baseline_path: "/var/lib/idp-agent/fim-baseline.json"Environment Variable Overrides
A fixed set of settings can be overridden with IDP_* environment variables, which win over the file. There are no variables for the collection interval or the features toggles other than the image scan.
Note: install.sh --image-scan uses exactly this mechanism: it sets IDP_IMAGE_SCAN and the IDP_TRIVY_* variables through an environment file loaded by a systemd drop-in, so agent.yaml is never edited for it.
IDP_AGENT_ID # agent_id
IDP_AGENT_NAME # agent_name
IDP_BACKEND_URL # backend_url
IDP_API_KEY # api_key
IDP_ENROLLMENT_TOKEN # enrollment_token
IDP_API_KEY_FILE # api_key_file
IDP_COMMAND_POLL_SECONDS
IDP_LOG_LEVEL
IDP_DOCKER_HOST
IDP_IMAGE_SCAN # true/1 or false (features.image_scan)
IDP_TRIVY_PATH # trivy.path
IDP_TRIVY_SERVER_URL # trivy.server_url
IDP_TRIVY_TOKEN # trivy.token
IDP_FIM_BASELINE_PATH # security.fim.baseline_path
IDP_TLS_CA_FILE
IDP_TLS_CERT_FILE
IDP_TLS_KEY_FILE
IDP_TLS_SKIP_VERIFY # true/1
IDP_MTLS_AUTO # mtls.auto
IDP_MTLS_DIR # mtls.dirCollection Modules
Each features.* flag turns one collector on or off. Disabling unused collectors reduces CPU and memory usage during collection cycles.
- system_collection: operating system, hostname, uptime, CPU, memory and disks; on Linux also the kernel and reboot data (see Agent Installation (Linux)), on Windows the pending reboot
- process_collection: running processes with PID, name, command line (secrets redacted) and owner; process_min_memory_bytes and process_exclude_users filter them
- network_collection: network interfaces and TCP connections (network_exclude_interfaces, at most network_connections_max connections, default 10000). The sockets of the agent itself and of its child processes (reports, on-demand commands, trivy image scans) are left out: the agent talking to the platform is not a dependency of the host
- application_collection: known applications (nginx, PostgreSQL, Redis, Tomcat, Java, Python...) recognized from the running processes, with owning user, listening ports and Tomcat webapps; on Linux also the application version and where it came from (version_source, see Application Version Detection)
- container_collection: Docker containers and the images they run, with their digest (docker_host or IDP_DOCKER_HOST to point to another daemon)
- certificate_collection: TLS certificates found under certificate_paths (the OS default certificate directories when empty), with subject, issuer, validity and days until expiry
- package_collection: on Linux the installed system packages (dpkg, rpm, apk) with exact versions, source package and distribution; on Windows the installed programs and hotfixes; on every OS the language packages (pip, npm, gem, composer, cargo, Go binaries) and the CMS web applications. Used for vulnerability matching
- image_scan: Trivy scan of the images of running containers (see Agent Installation (Linux) > Container Image Scan)
Note: Connections reported by the agents become network dependencies. A connection-tracked dependency that is not seen again for DEPENDENCY_CONNECTION_TTL_HOURS (default 24, <= 0 never expires) is deactivated by an hourly backend task; long-lived connections are re-seen on every report and an expired edge seen again is reactivated.
System Package Inventory (Linux)
The package module reports every installed Linux system package so that vulnerabilities can be computed on what is really installed. It is enabled by default and controlled by features.package_collection. Versions are reported verbatim and never normalized (the epoch is kept, e.g. 1:9.6p1-3ubuntu13.2), together with architecture, source package, ecosystem and a package URL (purl). The distribution (ID, VERSION_ID, VERSION_CODENAME) is read from /etc/os-release, falling back to /usr/lib/os-release. The module makes no Internet calls and never uses a shell.
- dpkg (Debian, Ubuntu): reads /var/lib/dpkg/status directly, no command is run. Only installed packages are reported; removed packages with leftover config files and half-installed packages are skipped
- rpm (RHEL, Rocky, Alma, Fedora, SUSE): runs rpm -qa with a fixed query format when an rpm database is present (/var/lib/rpm or /usr/lib/sysimage/rpm). The command is killed after features.package_rpm_timeout_seconds (default 60); gpg-pubkey pseudo-packages are excluded
- apk (Alpine): reads /lib/apk/db/installed directly, no command is run; the origin is reported as the source package
- Partial failures: if one source fails (unreadable file, rpm timeout), packages from the other sources are still sent and the error appears in the report errors
- Upgrade candidates (packages.candidates, enabled by default): after reading the databases the agent asks the package manager which upgrades the local indexes already hold, without refreshing them and without network: apt-get -s -o Debug::NoLocking=1 dist-upgrade, dnf -q check-update --cacheonly (yum -q check-update -C when dnf is missing) and apk version --no-network -l '<'. Commands run with LC_ALL=C, no shell and a timeout of packages.candidates.timeout_seconds (default 60). Each upgradable package gets candidate_version and candidate_origin (the repository, e.g. Ubuntu:24.04/noble-security; for apt the first origin ending in -security is preferred; apk reports none)
- Candidate coverage: the result is reported as the packages:candidates scope. A failed query (timeout, missing cache) never alters the packages: the error is added to the report errors as packages: candidates: ... and the scope is failed. Indexes older than packages.candidates.stale_index_days (default 7), or not found, make it partial with a reason starting with "indici datati"; the candidates are still sent
- Limit: at most 50000 packages per report; beyond that the list is truncated and an error is reported
- Compression: agent data bodies larger than 64 KB are sent gzip-compressed (Content-Encoding: gzip). The backend caps every agent data body (decompressed gzip or uncompressed) at AGENT_MAX_DECOMPRESSED_BYTES (default 32 MiB) and answers 413 above it
Note: Each package carries a purl such as pkg:deb/ubuntu/openssh-server@1:9.6p1-3ubuntu13.2?arch=amd64&distro=ubuntu-24.04. For rpm the epoch is a purl qualifier (epoch=1), following the purl specification, while the version field keeps the full epoch:version-release.
Warning: Upgrade the AsPeekIt backend before the agents. An upgraded agent sends gzip-compressed bodies above 64 KB, which an older backend rejects with a non-retryable 400, so every large report would be lost until the backend is upgraded.
features:
package_collection: true # set to false to disable the package inventory
package_rpm_timeout_seconds: 60 # rpm -qa timeout; values <= 0 use the default (60)
packages:
candidates:
enabled: true # false: no command is run, scope skipped
timeout_seconds: 60 # per command; values <= 0 use the default (60)
stale_index_days: 7 # older indexes make packages:candidates partialApplication Version Detection
On Linux the applications module reports the version of every application it recognizes from a process, so that software installed outside the package managers (e.g. a Tomcat unpacked in /opt) can be matched against vulnerabilities. For each application it first runs the version command of the application pattern; if the command gives no version, it takes the version of the system package that owns the application file. The result goes in version, and version_source tells which source was used: command or package. The version is reported as found, never normalized. On Windows and macOS no probe runs and version stays empty.
- Command source (version_source: command): the pattern command is run on the process executable through /proc/<pid>/exe, e.g. nginx -v, postgres --version, redis-server --version, sshd -V. The version is extracted from the combined stdout and stderr (at most 64 KiB) with the pattern regex; the exit code is ignored
- Applications that run inside a JVM or the Erlang VM are not asked their runtime version: Tomcat runs org.apache.catalina.util.ServerInfo from <catalina.home>/lib/catalina.jar (home from -Dcatalina.home=, then -Dcatalina.base=), Elasticsearch runs org.elasticsearch.Version from <home>/lib (home from -Des.path.home= or --module-path), RabbitMQ runs <home>/sbin/rabbitmqctl version (home from -pa <home>/ebin, RABBITMQ_HOME or ERL_LIBS). When the home cannot be found nothing is run
- Package source (version_source: package): the owner of the application file (the executable, or catalina.jar, bin/elasticsearch, sbin/rabbitmqctl) is looked up in /var/lib/dpkg/info/*.list (usrmerge aliases such as /sbin and /usr/sbin are both tried) and its Version is read verbatim from /var/lib/dpkg/status; on rpm systems rpm -qf is run with a 5 second timeout and the version is reported as [epoch:]version-release. apk is not used. A deleted (replaced) executable has no package fallback
- Security: commands are run directly, never through a shell, with an empty stdin, / as working directory and a clean environment (PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, LANG=C, LC_ALL=C, HOME=/). A root agent runs the command with the effective UID and GID of the process and no supplementary groups, so a user who starts their own binary never gets it executed as root; a non-root agent runs commands only for processes of its own user; since it cannot read /proc/<pid>/exe of other users, their applications get no version at all
- Containers: processes in a mount namespace different from the agent one (e.g. containers) are not probed at all, neither command nor package
- Requirements: version detection needs the agent to run as root in the host mount namespace. A non-root agent cannot read /proc/<pid>/exe of other users, and a sandboxed agent (systemd ProtectSystem, ProtectHome, ReadOnlyPaths, PrivateTmp or any other directive that creates a private mount namespace) sees every host process in a different mount namespace, so neither the command nor the package fallback runs. With the default hardened non-root systemd unit of the Linux installation guide, applications are reported without version; a containerized agent gets no versions either
- Executable check: the command and the package fallback are used only when the executable name matches the pattern (e.g. nginx, postgres, mysqld or mariadbd, java, beam.smp), so a process that merely mentions an application, such as vim /etc/haproxy/haproxy.cfg, never triggers a command
- Timeouts and budget: each command is killed (with any child process) after 5 seconds and the package fallback is tried; the whole probe has a budget of 30 seconds per cycle. When the budget runs out the remaining applications are sent without version and the report errors contain application: version probe budget of 30s exhausted (N applications without version). A failing single command is not an error
- Cache: results are kept between cycles, keyed by the SHA-256 and mtime of the executed program, the credentials it runs with, the resolved command and the fallback file; the program is re-hashed only when its device, inode, size or mtime change, so an updated binary is probed again. An empty outcome is retried after one hour; the cache holds at most 1024 entries
- Supported patterns: nginx, Apache HTTP Server, HAProxy, Tomcat, Node.js, PHP-FPM, PostgreSQL, MySQL/MariaDB, MongoDB, Redis, RabbitMQ, Elasticsearch, OpenSSH server, plus the generic java and python runtimes (category runtime), which only take Java and Python processes not already recognized by a more specific pattern
Note: Example: { "id": "tomcat", "name": "Apache Tomcat", "category": "app_server", "version": "9.0.85", "version_source": "command", "process_pid": 4242, "process_name": "java", "user": "tomcat", "webapps": [ { "name": "ROOT", "context_path": "/", "base_path": "/opt/tomcat/webapps/ROOT" } ] }. The backend stores version_source and webapps in the attributes of the application asset.
Installed Programs and Hotfixes (Windows)
On Windows the package module also reports the installed programs and the installed hotfixes (KB updates), so that vulnerabilities can be computed on Windows servers too. It is controlled by the same features.package_collection flag; there is no separate switch. Programs are read directly from the registry and hotfixes from WMI through COM: no PowerShell, no shell, no external command and no Internet calls. On Linux and macOS this part is not registered (with log_level: debug the agent logs that it is not supported).
- Registry keys read: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall (64-bit view), HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall (32-bit programs) and HKU\<SID>\Software\Microsoft\Windows\CurrentVersion\Uninstall for every loaded user profile (the HKU\*_Classes hives are skipped)
- Reported fields: name (DisplayName), version (DisplayVersion, verbatim, never normalized), publisher, install_location, arch and ecosystem windows; each program carries a purl such as pkg:generic/7-Zip%2023.01%20%28x64%29@23.01?arch=x64
- Exclusions: entries without a DisplayName and entries flagged SystemComponent = 1 (hidden system components) are not reported. The same program (name, version, arch) found under several keys or users is reported once
- Architecture: programs under WOW6432Node are x86; programs in the native key and in per-user keys get the agent architecture (x64 for the windows/amd64 build)
- Hotfixes: queried from WMI Win32_QuickFixEngineering and reported in system.hotfixes as hotfix_id and installed_on (YYYY-MM-DD, empty when Windows does not record a readable date). The query is abandoned after features.package_hotfix_timeout_seconds (default 60; values <= 0 use the default)
- Partial failures: a missing Uninstall key is not an error; an unreadable key, a WMI error or a WMI timeout is reported in the report errors without discarding the programs or hotfixes already collected
- Limit: Linux packages and Windows programs share the limit of 50000 entries per report; beyond that the programs are truncated and an error is reported
features:
package_collection: true # Linux packages, Windows programs and hotfixes
package_hotfix_timeout_seconds: 60 # WMI hotfix query timeout; values <= 0 use the default (60)Language Package Inventory
The package module also reports the application dependencies installed under a set of root directories (pip, npm, gem, composer, cargo and the modules embedded in Go binaries), each with the absolute path of the manifest or binary it was found in, so that a vulnerable library can be located on disk. It is controlled by the same features.package_collection flag. Manifests are parsed in place: no command, shell or interpreter (Python, Node, Ruby) is ever run and no Internet call is made. Entries are appended to packages[] with ecosystem pypi, npm, gem, composer, cargo or golang, name and version verbatim, path and purl.
- pip: <name>.dist-info/METADATA and <name>.egg-info/PKG-INFO (Name and Version headers); purl pkg:pypi/flask-login@0.6.3 (name lower-cased, _ replaced by -)
- npm: node_modules/<pkg>/package.json and node_modules/@scope/<pkg>/package.json; other package.json files (project roots, files inside a package) are ignored. Scoped purl: pkg:npm/%40babel/core@7.24.0
- gem: specifications/*.gemspec and specifications/default/*.gemspec (s.name and s.version are read as text, the gemspec is never evaluated)
- composer: vendor/composer/installed.json, Composer 2 and Composer 1 formats, one entry per installed package; purl pkg:composer/monolog/monolog@3.5.0
- cargo: .crates2.json, one entry per installed crate (cargo install)
- Go binaries: executable regular files between 1 KiB and 512 MiB (exec bit on Linux, .exe on Windows) are read with the Go build info reader; the main module, every dependency (its replacement when replaced) and stdlib with the Go toolchain version (e.g. go1.22.1) are reported. Files that are not Go binaries are ignored silently
- Default roots: /usr/lib, /usr/local/lib, /opt, /srv, /var/www, /home on Linux and other Unix systems; C:\Program Files and C:\inetpub on Windows. A root that does not exist is skipped; a root that is a symlink is resolved once
- Symlinks: during the walk no symlink is followed or read, so the scan never leaves a root and never loops (pnpm packages stay reachable through node_modules/.pnpm, within max_depth)
- Mounts (Linux): directories mounted from nfs, nfs4, cifs, smb3, smbfs, autofs, ceph, 9p, afs, lustre, gpfs, glusterfs, ncpfs, davfs, fuse* (e.g. sshfs), proc, sysfs, devtmpfs, devpts, cgroup and cgroup2 are skipped, as is a root that lies on such a filesystem (read from /proc/self/mountinfo)
- excludes: an absolute path skips that directory and its whole subtree; any other entry is a glob matched against directory names (e.g. .cache). Excluded directories do not make the scan partial
- Limits: max_depth (default 8) prunes directories that deep below a root and the scan continues elsewhere; max_files (default 200000 entries across all roots), time_budget_seconds (default 120 for the whole scan) and the 50000 packages per report limit stop the scan. Values <= 0 use the defaults
- Partial results: when a limit is hit, the packages found so far are sent and the report errors contain language_packages: partial: <cause>, e.g. partial: max_depth 8 exceeded (12 directories not scanned), partial: max_files limit of 200000 reached, partial: time budget of 2m0s exceeded or partial: package limit of 50000 reached
- Other errors: unreadable directories and manifests are skipped and counted; manifests that cannot be parsed, lack a name or version, or exceed 8 MiB are reported as N malformed language manifests skipped
Note: Go modules use the module path as namespace and name, e.g. pkg:golang/github.com/spf13/cobra@v1.8.0. A root in the configuration that is not an absolute path is ignored with a warning in the agent log.
packages:
language:
roots: [] # absolute paths; empty uses the OS defaults
excludes: ["/srv/backup", ".cache"]
max_depth: 8
max_files: 200000
time_budget_seconds: 120Web Applications (webapps)
The webapps collector inventories the WordPress, Joomla and Nextcloud installations found under the web roots, with their plugins, themes, extensions and apps. Files are read in place (at most 1 MiB each): no PHP, wp-cli or occ is run, no site is contacted over HTTP, wp-config.php is never read and no symlink is followed. Entries are appended to packages[] with ecosystem wordpress, wordpress-plugin, wordpress-theme, joomla, joomla-extension, nextcloud or nextcloud-app; path is the instance root and install_location the directory of the plugin, theme, extension or app.
- webapps.enabled (default true): with false the report carries one skipped packages:webapps coverage entry, reason "disabled by configuration"
- webapps.roots: absolute directories to search; the default is /var/www, /srv and /usr/share/nginx on Linux, C:\inetpub on Windows. A root that is not an absolute path is ignored with a warning in the agent log
- webapps.excludes: absolute directories (skipped with their subtree) or globs matched against directory names
- webapps.max_depth (default 6), webapps.max_dirs (default 100000 directories across all roots) and webapps.time_budget_seconds (default 60): a limit hit sends what was found so far and makes the coverage partial. Values <= 0 use the defaults
- Coverage: one packages:<ecosystem>:<root> entry per root and per each of the 7 ecosystems, with the same rules as the language packages (root not found ok, excluded or on a network mount skipped, unreadable failed, limits or malformed manifests partial)
- At most 20000 web application components per report, within the 50000 packages limit
Note: See Security & Compliance > Web Applications for the detection rules of each CMS.
webapps:
enabled: true
roots: ["/var/www", "/srv", "/usr/share/nginx"]
excludes: ["/var/www/backup"]
max_depth: 6
max_dirs: 100000
time_budget_seconds: 60Data Payload Structure
Each collection cycle produces a JSON payload that the agent sends to the AsPeekIt API. The payload contains one top-level key per enabled module; the packages module adds both packages and distro. Understanding this structure is useful for debugging and for verifying that the agent is collecting the expected data.
Note: On Windows, packages[] holds the installed programs and system carries the hotfixes, for example: { "system": { "hostname": "win-srv-01", "hotfixes": [ { "hotfix_id": "KB5034439", "installed_on": "2024-01-09" } ] }, "packages": [ { "name": "7-Zip 23.01 (x64)", "version": "23.01", "arch": "x64", "ecosystem": "windows", "publisher": "Igor Pavlov", "install_location": "C:\\Program Files\\7-Zip\\", "purl": "pkg:generic/7-Zip%2023.01%20%28x64%29@23.01?arch=x64" } ] }. installed_on is empty when Windows does not record a readable date. Language packages also go in packages[] and carry the path of their manifest or Go binary, for example: { "name": "Flask_Login", "version": "0.6.3", "ecosystem": "pypi", "path": "/srv/app/venv/lib/python3.11/site-packages/Flask_Login-0.6.3.dist-info/METADATA", "purl": "pkg:pypi/flask-login@0.6.3" }.
{
"agent_id": "agent-001",
"timestamp": "2025-01-15T10:30:00Z",
"system": {
"hostname": "web-prod-01",
"os": "Ubuntu 22.04.3 LTS",
"kernel": "5.15.0-91-generic",
"cpu_count": 4,
"memory_total_mb": 8192,
"uptime_seconds": 1209600
},
"processes": [
{ "pid": 1234, "name": "nginx", "command": "nginx: master process", "user": "www-data", "ports": [80, 443] }
],
"network": [
{ "interface": "eth0", "ips": ["10.0.1.15"], "mac": "02:42:ac:11:00:02", "status": "up" }
],
"applications": [
{ "id": "nginx", "name": "Nginx", "category": "web_server", "version": "1.24.0", "version_source": "command", "process_pid": 1234, "process_name": "nginx", "user": "root", "listen_ports": [80, 443] },
{ "id": "postgresql", "name": "PostgreSQL", "category": "database", "version": "15.4-1.pgdg22.04+1", "version_source": "package", "process_pid": 2210, "process_name": "postgres", "user": "postgres", "listen_ports": [5432] }
],
"containers": [
{ "id": "a1b2c3d4e5f6", "image": "redis:7-alpine", "state": "running", "ports": ["6379/tcp"] }
],
"certificates": [
{ "subject": "CN=web-prod-01.example.com", "issuer": "CN=Let's Encrypt R3", "expiry": "2025-04-15T00:00:00Z", "days_remaining": 90 }
],
"distro": { "id": "ubuntu", "version_id": "22.04", "version_codename": "jammy" },
"packages": [
{ "name": "openssh-server", "version": "1:8.9p1-3ubuntu0.6", "arch": "amd64", "source_name": "openssh", "source_version": "1:8.9p1-3ubuntu0.6", "ecosystem": "deb", "purl": "pkg:deb/ubuntu/openssh-server@1:8.9p1-3ubuntu0.6?arch=amd64&distro=ubuntu-22.04", "candidate_version": "1:8.9p1-3ubuntu0.10", "candidate_origin": "Ubuntu:22.04/jammy-security" }
]
}API Key Management
Agent API keys start with idpk_ and are managed on the Agents page (Discovery section, manager role or above). AsPeekIt stores only their SHA-256 hash and an 8-character prefix: the full key is shown once, in the dialog after creation.
- Zone keys: "Zone keys" on a zone. A zone key is not bound to an agent; the installers use it. It authenticates the agents of that zone that have no key of their own (and registers new agent ids only with AGENT_ALLOW_ENV_KEY_ENROLLMENT=true).
- Dedicated keys: "Set dedicated key" / "Manage dedicated key" on an agent card. A dedicated key authenticates only that agent, and once an agent has a key of its own, zone keys are refused for it (the card shows Auth: Dedicated key). Agents also get their own key automatically with an enrollment token or with their first mTLS certificate.
- Revoking: the key is marked inactive (DELETE /api/v1/agent/api-keys/{id}/) and refused immediately. Creating and revoking a key are written to the audit log (agent_key.created, agent_key.revoked).
- Expiry: the API accepts an optional expires_at when creating a key (POST /api/v1/agent/api-keys/ with name, environment, agent); expired keys are refused with 401 "API key expired or inactive".
Warning: A lost key cannot be shown again: create a new one and update the agent configuration.
Collection Interval Recommendations
The collection_interval_seconds setting controls how frequently the agent collects and reports data, measured in seconds. Shorter intervals provide more up-to-date information but increase CPU usage on the host and API traffic to AsPeekIt.
- 60 seconds: Real-time monitoring of highly dynamic hosts (high resource usage)
- 300 seconds (default): Good balance for most production servers
- 600 seconds: Suitable for stable infrastructure with infrequent changes
- 900-1800 seconds: Low-overhead option for development or staging environments
Note: Collections run one at a time in the agent main loop, so a slow cycle is never overlapped by the next one. An on-demand scan ("Scan now" on the Agents page, picked up by the command poll every command_poll_seconds) starts a full collection and send immediately and restarts the interval.