OS Collection
Agentless operating system discovery across your Linux fleet via SSH
Parascope's OS collector bridges the gap between what your infrastructure platforms know (VMs, containers, bare metal) and what's actually running inside those machines. It connects via SSH, runs a self-contained collection script, and reports back operating system configuration, software inventory, security posture, and runtime metrics, all without installing agents on your targets.
Why OS Collection Matters
Infrastructure platforms like Proxmox, OpenStack, and Kubernetes track resources from the outside (CPU allocation, memory limits, network attachments). But they can't tell you:
- What Linux distribution and kernel version is actually running
- Which packages are installed and whether security updates are pending
- What services are listening on the network
- Whether SSH is configured securely
- Which TLS certificates are deployed and when they expire
- What containers are running inside the VM
- What physical network neighbors are connected via LLDP
OS collection answers these questions across your entire fleet, creating a rich layer of CI data that connects to infrastructure CIs you already track.
Architecture
The OS collector runs on your appliance. Parascope resolves each ruleset to its targets in the cloud. The appliance's agent fetches the result from the control plane over NATS, with a signed request and a signed reply, and hands it to the OS collector as a file. The collector connects to each target over SSH and publishes what it finds for processing.
Key design principles:
- Agentless: No software installed on targets. A self-contained bash script is streamed via SSH and executed in memory
- Minimal footprint: Only standard Linux tools required (bash, awk, grep, sed, df, uname, ss, ip). Optional tools like
lldpctlandopensslenable additional sections - Safe execution: Script writes nothing to disk on the target (except
/tmp), and missing tools or permissions result in empty fields rather than failures - Resolved in the cloud: Parascope evaluates the ruleset filters. The appliance receives a list of targets, and never lists CIs, evaluates a filter or holds a tenant API key
- Appliance key: The OS collector connects with the SSH user and key configured on the appliance. The target list carries no password, private key or other secret
CI Types Created
The OS collector creates four distinct CI types, each serving a specific purpose in your infrastructure model.
os.linux: Operating System Instance
The primary CI representing a Linux installation on a host. Contains comprehensive OS-level data organized into change-tracked configuration and point-in-time metrics.
Configuration (tracked in change history):
| Category | Data Collected |
|---|---|
| Identity | Distribution, version, kernel, hostname, architecture, timezone |
| Hardware | CPU model and core count, total memory, swap, virtualization type, block devices, network devices |
| Network | Interfaces with IP addresses, routes, DNS resolvers, listening ports with process names, LLDP neighbors |
| Software | Full package inventory (dpkg/rpm), systemd services with states |
| Security | Pending security updates, SSH daemon config, user accounts with sudo status, SELinux/AppArmor status, SSH host key fingerprints |
| Parent link | Reference to hosting CI (VM, container, or bare metal node) |
Metrics (point-in-time, not tracked):
| Metric | Description |
|---|---|
| CPU usage | Current CPU utilization percentage |
| Memory usage | Used memory in MB |
| Swap usage | Used swap in MB |
| Filesystems | Mount points with capacity and usage |
| Uptime | Seconds since last boot |
| Load average | 1, 5, and 15-minute load averages |
Relationships: Each os.linux CI has a runs_on relationship to its parent infrastructure CI (e.g., proxmox.vm, openstack.instance).
os.software: Promoted Software
Not every installed package becomes a CI. The promotion engine identifies operationally significant software (services with listening ports, active daemons, and known infrastructure components) and promotes them to dedicated CIs.
Software CIs are deduplicated across the fleet: one CI per unique (software name, version, package type) combination, with per-host instance records tracking where it runs.
CI-level fields (shared identity):
| Field | Example |
|---|---|
| Software name | nginx |
| Version | 1.24.0-2ubuntu1 |
| Package type | dpkg, rpm, apk |
| Promotion reasons | listening_port, active_daemon, known_pattern |
Per-host instance fields:
| Field | Example |
|---|---|
| Service state | running, stopped, disabled |
| Listening ports | [{port: 80, protocol: tcp}, {port: 443, protocol: tcp}] |
| Systemd units | ["nginx.service"] |
| Memory RSS | 128.5 MB |
| Available update | 1.24.1-2ubuntu1 (if security update pending) |
This two-tier model means you can answer both "What version of nginx exists in our fleet?" (CI level) and "Which specific hosts run nginx, and is the service healthy?" (instance level).
os.certificate: X.509 Certificates
TLS certificates discovered in standard paths (/etc/ssl, /etc/pki, etc.) are parsed and deduplicated by SHA-256 fingerprint. One CI per unique certificate, with per-host instance records tracking file locations.
CI-level fields:
| Field | Description |
|---|---|
| Subject CN | Common name (e.g., *.example.com) |
| SANs | Subject alternative names |
| Issuer | Certificate authority |
| Validity period | Not before / not after dates |
| Fingerprint | SHA-256 fingerprint (deduplication key) |
| Key details | Key type (RSA, EC) and size (2048, 4096) |
Per-host instance fields:
| Field | Description |
|---|---|
| Host CI | Reference to the os.linux CI |
| File path | Where the certificate was found on disk |
os.container: Container Instances
Docker and Podman containers discovered on hosts are tracked as individual CIs with a runs_on relationship to their host os.linux CI.
Key fields:
| Field | Description |
|---|---|
| Container name | Raw name from the runtime |
| Stable name | Normalized name (Ceph FSID prefixes stripped) |
| Image and tag | Container image reference |
| State | running, exited, paused, etc. |
| Runtime | docker or podman |
| Port bindings | Host-to-container port mappings |
| Labels | Container labels/metadata |
| Network mode | bridge, host, none, etc. |
| Host CI | Reference to hosting os.linux CI |
Ceph container stable naming: Cephadm containers include the cluster FSID in their name (e.g., ceph-28ea88f2-1234-5678-abcd-ef0123456789-osd-2). The collector strips this prefix to produce a stable name (osd-2@hostname) that persists across cluster rebuilds.
What Gets Collected
The collection script runs the independent sections below, each gathering a specific category of data. A ruleset can switch sections off (see Collected sections); os_identity, ssh_host_keys, network and listeners always run.
| Section | What It Collects | Tools Used |
|---|---|---|
| os_identity | Distribution, version, kernel, hostname, architecture, timezone | /etc/os-release, uname |
| packages | Full package inventory with names, versions, architectures | dpkg-query or rpm -qa |
| services | Systemd unit states (running, enabled, disabled) | systemctl |
| network | Interfaces, IP addresses, routes, DNS resolvers | ip -j addr, ip -j route, /etc/resolv.conf |
| filesystems | Mount points with capacity and usage | df |
| resource_usage | CPU model/count, memory, swap, uptime, load average | /proc/cpuinfo, /proc/meminfo |
| listeners | Listening TCP/UDP ports with owning process names | ss -tlnp, ss -ulnp |
| certificates | X.509 certs in standard paths | openssl x509 |
| patch_status | Pending security and regular updates | apt list --upgradable or dnf updateinfo |
| security_baseline | SSH config, user accounts, sudo access, SELinux/AppArmor | /etc/ssh/sshd_config, /etc/passwd |
| hardware | Virtualization type, DMI info, CPU topology, block/network devices | /sys/class/, systemd-detect-virt |
| containers | Docker/Podman containers with config and state | docker ps/podman ps with JSON output |
| lldp | LLDP neighbors with remote system, port, and chassis IDs | lldpctl -f json0 |
| ssh_host_keys | SSH host key fingerprints from /etc/ssh/ssh_host_*_key.pub | python3 (SHA256 hash) |
Collected sections
Each ruleset chooses which sections its hosts run, on the ruleset form's Collected Sections group or through the API's collect field. Every section is on for a new ruleset. The choice takes effect only on appliances from the release that carries section selection, which has not shipped yet. Until an appliance runs that release, it collects every section of every ruleset, and the behaviour below describes what changes once it does.
- Core sections are always collected.
os_identityandssh_host_keysidentify the host and pin its SSH key;networkandlistenersfeed correlation and relationships. They cannot be switched off. - A host in several rulesets collects every section any of them turns on. One appliance combines the rulesets it collects, by the address it connects to and the jump host it goes through.
- Switching a section off keeps what was already collected. Parascope stops updating that data and records no change for it, so the host's history does not record data as removed just because Parascope stopped looking at it. The host's detail page lists each section that is no longer collected and when it last was.
- Certificates, containers and software found by a switched-off section age out normally. Each one becomes inactive after the inactivity threshold (24 hours by default), unless another host still reports it, and becomes active again when the section is switched back on and it is still there.
- Software discovery needs both
packagesandservices. Switching either off pauses software discovery on the ruleset's hosts. - Switching a section back on records what changed while it was off. Data that did not change records nothing. A certificate, container or software item that went inactive records its return to active, and on a host first collected with the section off, each value is recorded once as it first appears.
How Collection Works
- Target resolution: Parascope resolves each enabled ruleset in the cloud to the active CIs of its types that match its filters (e.g., all running Proxmox VMs tagged "linux"), and reads each CI's IP address (for Proxmox VMs and containers without guest-agent addresses, the static cloud-init or container network address). A match with no IP address is counted and not sent
- Delivery: The appliance's agent asks the control plane for its targets over NATS, with a signed request. The control plane checks the request's signature and the appliance's registration, then returns a signed bundle with one entry per ruleset the appliance collects. The agent verifies the bundle and writes it to a file that no other collector on the appliance can read
- Ruleset sources: The OS collector re-reads that file every 60 seconds and keeps one source per ruleset in step with it. A change to a ruleset's targets needs no restart; a change to its settings restarts that ruleset's source and no other
- SSH connection: The collector connects to each target on the ruleset's SSH port, directly or through a jump host, as the appliance's SSH user with the appliance's key, with configurable timeouts and host key verification (see below)
- Script execution: The collection script is streamed to the target via stdin and executed as
bash -s, or assudo -n bash -sfor a ruleset whose become method issudo. No files are written to the target - Parsing: The script's JSON output is parsed into Parascope's structured format, separating config (change-tracked) from metrics (point-in-time)
- Software promotion: The promotion engine evaluates packages against behavioral signals, known patterns and the ruleset's promotion overrides
- Publishing: Results are published for processing as separate messages per CI type (
os.linux,os.software,os.certificate,os.container). Each cycle also reports the ruleset's last run, target count, success rate and any error, which the rulesets page shows - Processing: CIs are created or updated, relationships are established, and each
os.linuxCI is linked to the CI it runs on, which is what the parent's OS summary is derived from
Collection runs with bounded concurrency (default: 10 parallel SSH connections) and per-target error isolation. A failure on one host doesn't affect others. A CI's identity comes from its ruleset, so adding, removing or renaming other rulesets does not re-key it.
Delivery Timing
The agent syncs every 15 minutes, give or take 10%, as well as once at start-up and once right after the OS collector is enabled. A ruleset you create, edit, disable or delete reaches an appliance within one sync interval (at most about 16.5 minutes), and the OS collector picks up a new bundle within 60 seconds of it arriving. A ruleset that is new to the appliance, or whose settings changed, collects as soon as its source starts; a change to its targets alone is used from its next scheduled cycle. Saving a ruleset does not push it to the appliance sooner.
The appliance keeps collecting from the last bundle it received for up to 30 minutes (two sync intervals) after its last successful sync. If syncs keep failing past that, because the appliance is offline or cannot reach Parascope, the OS collector stops collecting: each cycle fails with target_bundle_stale, makes no SSH connection, and is retried on a backoff that starts at 30 seconds and doubles up to 5 minutes. So a ruleset you delete, disable or narrow is collected for at most about half an hour after the change, even on an appliance that cannot sync. Collection resumes after the first good sync.
The OS collector's health reports the bundle it holds:
| Bundle | Health |
|---|---|
| Fresh, with rulesets | Healthy, from the collection cycles |
| Fresh, with no rulesets for this appliance | Healthy and idle: no rulesets for this appliance |
| Missing or unreadable | Unhealthy: target bundle unavailable |
| Not valid | Unhealthy: target bundle invalid or target bundle inconsistent |
| More than 30 minutes since the last successful sync | Unhealthy: target bundle stale |
A bad read never changes the collector's sources, so a damaged or stale file cannot remove them; it only stops their cycles until a good bundle arrives.
SSH Host Key Verification
The OS collector pins SSH host keys so credentials are only ever sent to a host whose key matches the one Parascope already holds. Verification happens during the SSH handshake, before authentication, so a mismatched key aborts the connection with no credential sent.
How It Works
- Pinning: Every
os.linuxCI stores the host's public keys. On each connection, the stored public key is passed to the SSH client as the expected key. A mismatch aborts the handshake - First contact: A host with no stored key has nothing to pin against. What happens then is the whole point of the mode setting below: the default
rejectrefuses the connection, andtofuaccepts the presented key once, stores it, and pins it from the next cycle onward - Cross-validation: The collection script also reads host keys from
/etc/ssh/ssh_host_*_key.pubon the target. The collector compares the handshake key against the filesystem key. A mismatch is a strong indicator of a MITM attack (the handshake key differs from what the host itself reports)
Verification Modes
The verification mode is set per ruleset via its host_key_verification setting:
| Mode | First contact (no stored key) | Later connections | Credentials sent on mismatch? |
|---|---|---|---|
| reject (default) | Refused. Nothing is collected until the host has a stored key | Verified pre-auth, rejected on mismatch | No (connection aborted pre-auth) |
| tofu | Accepted once, key captured and stored | Verified pre-auth, rejected on mismatch | No (connection aborted pre-auth) |
| warn | Accepted | Compared after connecting, mismatch logged | Yes (connection proceeds) |
| disabled | Accepted | Not compared | Yes (no comparison performed) |
reject is the strictest setting, and it cannot bootstrap on its own: each host needs a stored key first (see below). tofu is the practical default for a new fleet. It is exposed to a man-in-the-middle for exactly one connection per host, on the cycle where the host is first seen, and is pinned as strictly as reject from then on. Each such acceptance is logged and counted (os_ssh_host_key_tofu_first_contact_total).
warn and disabled send credentials to an unverified host on every cycle, not just the first. Use them for diagnosis, not as a steady state.
Where These Settings Live
| Key | Purpose |
|---|---|
host_key_verification | The mode: reject (default), tofu, warn, disabled |
known_hosts_path | Path to a known_hosts file the collector reads for the targets. Leave it unset on an appliance (see Pre-Seeding Keys) |
gateway_host_keys | Pinned host keys for a jump host, keyed by algorithm |
gateway_known_hosts_path | Path to a known_hosts file the collector reads for a jump host. Leave it unset on an appliance |
Set them on the OS Collection ruleset (Settings, OS Collection, the SSH Host Keys section of the ruleset form). The ruleset carries them, with its targets, to each appliance that collects it.
The gateway fields appear on the form only when the ruleset's reachability strategy is Jump Host, and the gateway keys are entered as JSON keyed by SSH algorithm, matching the stored shape below. A ruleset that leaves the mode unset runs in reject, so it collects nothing from a host until that host has a stored key (see Pre-Seeding Keys).
Pre-Seeding Keys
On an appliance a target's pin is the key stored on its os.linux CI (see Stored Data). Only a collection writes that key; Parascope can clear it (Key Rotation) but has no way to enter one. So on an appliance the ways to pin are tofu for targets and gateway_host_keys for a jump host (below). A host Parascope has not collected yet has no CI to hold a key, and under tofu its first cycle captures the key and pins the host from then on.
To run in reject, collect in tofu first, and switch once the rulesets page shows a run after the tofu change. The switch restarts the ruleset's source, which drops the keys tofu holds in memory, so from then on each host's pin is its stored key, delivered with the sync that carries the switch. A host whose key is not stored by then is refused until a later sync delivers it (at most about 16.5 minutes), or for good if it was never collected.
Leave known_hosts_path and gateway_known_hosts_path unset on an appliance. The appliance's OS collector cannot read a file you place yourself. A stored key is used first, but a set path is the pin list for every host with no stored key, so a file the collector cannot read refuses each of them, and tofu never pins a new host. A jump host with no gateway_host_keys is refused the same way, and its hop falls back to known_hosts_path when gateway_known_hosts_path is unset.
For rulesets that reach targets through a jump host, the bastion's own key must be pre-seeded via gateway_host_keys. tofu does not cover the bastion hop: nothing stores a gateway key, so accepting one would mean accepting it unverified on every cycle rather than once. The bastion is a single long-lived host, so one ssh-keyscan from a machine that can reach it settles it:
ssh-keyscan -t ed25519 10.20.0.1It prints 10.20.0.1 ssh-ed25519 AAAA.... Enter the key, everything after the host, as {"ssh-ed25519": {"public_key": "ssh-ed25519 AAAA..."}}. Until the key is set, a jump-host ruleset is refused at the gateway, before any session opens.
This applies to a ruleset whose reachability strategy is Jump Host: the bastion hop is taken (see Reachability Strategies), and the mode set on the ruleset governs it with no separate policy for the gateway. A ruleset in reject or tofu with no pinned gateway key is refused at the bastion until the key is seeded; warn and disabled connect to it unverified, as they do for targets.
Stored Data
Host key fingerprints are stored on each os.linux CI in the ssh_host_key_fingerprints field:
{
"ssh-ed25519": {
"fingerprint": "SHA256:rNo3mjXJZLLC6R0SNbhvBjTMWCuJhK3cFlZps8HI2rI",
"public_key": "ssh-ed25519 AAAA..."
},
"ssh-rsa": {
"fingerprint": "SHA256:WRRx5bPX71T3pa7r0JIaJmgLl90JoVMOj9w9d75yseI",
"public_key": "ssh-rsa AAAA..."
},
"_connection_ip": "10.0.1.50"
}Keys from both the SSH handshake and the target's filesystem are merged. The handshake key takes precedence for its algorithm. The _connection_ip records which IP address was used for the SSH connection.
On an appliance the stored keys travel with the target list. For each target Parascope sends one public key, the strongest the host's os.linux CI holds for that IP: ed25519, then ECDSA (largest curve first), then RSA. One pin is as strict as several, because the host must present exactly the pinned key, and in the pinning modes (reject and tofu) the connection asks the host for that key's algorithm only. A key accepted under tofu is pinned in memory while that ruleset's source runs, is stored on the CI through processing, and comes back in a later target list. When two os.linux CIs share a connection IP (a re-addressed host), the pin comes from the one seen most recently, and an archived (deleted) CI supplies none.
Key Rotation
When a host's SSH keys are legitimately rotated (after a reinstall, for example), the stored key no longer matches and the connection is rejected. The stored key wins in both pinning modes: while the host's os.linux CI holds the old key, that key is the pin, and tofu does not treat the host as a first contact. A rejected key is what a man-in-the-middle looks like, and it is also what a reinstall looks like, so confirm the new key before you re-pin:
- Get the host's new fingerprint out of band: run
ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pubon its console, orssh-keyscan 10.0.1.50 | ssh-keygen -lf -from a network you trust - Forget the old key. Open the host's
os.linuxCI, find SSH Host Keys, and choose Forget host key. The section lists each stored key's algorithm and SHA256 fingerprint, computed from the stored public key, so you can see what is pinned before you clear it. The action needs theconfiguration_itemswrite permission. It is recorded in the CI's change history, and the audit log names the user who ran it. Through the API it isPOST /api/v1/configuration-items/{id}/ssh-host-keys/forget - Let a
tofuruleset pin the host again. The next sync delivers no pin for the host (within about 16.5 minutes), and the cycle after that trusts whatever key the host presents and stores it. Arejectruleset refuses the host until a key is stored, so switch that ruleset totofufor one run and back afterwards. Hosts that already have a stored key stay verified during that run; only hosts with no stored key are trusted on first contact. One narrow exception: if the ruleset's source accepted a first-contact key for this host and the next sync has not yet carried it back as a pin, the appliance keeps checking against that key in memory until the source restarts. Switching the ruleset's mode restarts it - Check the new fingerprint under SSH Host Keys against the one you got in step 1. If it does not match, forget it again and find out what answered at that address before the next cycle
Deleting the CI also forgets the key. Deleting the host's os.linux CI (DELETE /api/v1/configuration-items/{id}, which needs the configuration_items delete permission) archives it, and an archived CI supplies no pin. The next tofu cycle pins the key the host presents and brings the CI back. Forget is the smaller change: a delete also archives the CI's relationships until the host is collected again.
When two os.linux CIs share an address (a re-addressed host), the pin comes from the one seen most recently that is not archived. After you forget one, check the other: if it holds a key for the same address, that key becomes the pin.
Last resort: one cycle in warn. Use this only when you cannot reach the CI to forget its key. A warn run replaces each host's stored keys with the keys the host presents, unverified, and the strongest of them becomes its pin. For that run the collector accepts whatever key each address the ruleset matches presents. A machine answering at any of those addresses receives the collector's commands, including sudo -n when the become method is sudo, can return false data, and has its key stored as the pin. In a Jump Host ruleset the run also takes the bastion hop without verifying it, even with gateway_host_keys set. If you take this route, narrow the ruleset's filters to the one host first, switch back to tofu or reject as soon as the rulesets page shows a run after the change, and compare the stored fingerprint under SSH Host Keys with the one you got out of band. If they don't match, don't trust the host: disable the ruleset rather than switching it back, since switching back would keep the key you could not confirm as the pin. Find out what answered at that address, and forget the stored key only once you have verified the host's real key out of band. The appliance's private key does not leave the appliance: SSH key authentication sends only the public key and a signature for that session.
Older SSH Servers and RSA Keys
A connection to a pinned host offers only the pinned key's algorithm: ssh-ed25519, the matching ecdsa-sha2-nistp*, or rsa-sha2-512 and rsa-sha2-256 for an RSA key. It does not offer the SHA-1 ssh-rsa signature, which current OpenSSH refuses. An sshd older than OpenSSH 7.2 offers RSA only as ssh-rsa, so once such a host is pinned to its RSA key its connections fail before authentication with host_key_algorithm_unsupported, and the message names the pinned and offered algorithms. The rulesets page shows it as the ruleset's last error.
To fix it, upgrade sshd on the host, or give the host an ed25519 host key (ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N '', then restart sshd), and re-pin the host as described under Key Rotation.
Software Promotion Engine
With hundreds of packages installed on a typical Linux host, promoting all of them to CIs would create noise. The promotion engine identifies the packages that actually matter: the ones running services, listening on the network, or matching known infrastructure patterns.
Promotion Signals
| Signal | What It Detects | Example |
|---|---|---|
| Listening port | Package owns a process with a network socket | nginx listening on port 80 |
| Active daemon | Package has a running systemd service | postgresql with active postgresql.service |
| Known pattern | Package name matches infrastructure patterns | redis-server matches the redis pattern |
| Force promote | Explicitly configured in the ruleset | Custom internal monitoring agent |
| Unpackaged listener | Process with a port but no matching package | Unauthorized daemon (security visibility) |
The engine uses fuzzy name matching to connect packages to their processes. For example, postgresql-15 is matched to listener process postgres by stripping version suffixes and checking known aliases.
Known Infrastructure Patterns
The promotion engine recognizes over 100 infrastructure software patterns across these categories:
| Category | Examples |
|---|---|
| Web servers | nginx, apache2, httpd, caddy, traefik, envoy |
| Databases | postgresql, mysql, mariadb, mongodb, redis, memcached, etcd |
| Message queues | rabbitmq, kafka, nats-server, mosquitto |
| Container runtimes | docker, containerd, cri-o, podman |
| Monitoring | prometheus, grafana, node-exporter, telegraf, zabbix, datadog |
| DNS | bind9, unbound, coredns, dnsmasq, powerdns |
| Security | fail2ban, crowdsec, certbot |
| Storage | ceph, minio, glusterfs, nfs-kernel-server |
| CI/CD | jenkins, gitlab-runner, drone, argo |
| Virtualization | qemu, libvirt, proxmox |
Promotion Overrides
Each ruleset can configure:
- Force promote: Package names to always promote, even without behavioral signals. Use for custom or internal software
- Suppress: Package names to never promote, even if they match signals. Use to filter noisy or uninteresting software
Real-World Use Cases
Security Incident Response: "Which hosts have vulnerable package X?"
When a CVE is announced for a critical package, you need to know your exposure immediately.
Scenario: A critical vulnerability is disclosed in OpenSSL 3.0.x (CVE-2024-XXXX). Your security team needs to identify all affected hosts within minutes.
With OS collection:
- Search for
os.softwareCIs withsoftware_name = opensslto see every version deployed across your fleet - Click into each software CI to see the per-host instance list, which names the specific machines running the vulnerable version
- Check
available_versionon each instance to see if patches are already available in your package repositories - Use the
runs_onrelationship fromos.linuxto trace back to the hosting VM and the physical infrastructure beneath it
Without OS collection: You'd need to SSH into each machine manually, or maintain a separate inventory tool, or hope your vulnerability scanner has recent data.
Patch Compliance: "How many hosts have pending security updates?"
Scenario: Your compliance policy requires security patches within 30 days. You need a dashboard-ready view of patch status.
With OS collection:
- Every
os.linuxCI trackssecurity_update_count, the number of pending security updates - The
security_updatesfield lists each pending update with the available version - Filter the CI list for
os.linuxCIs wheresecurity_update_count > 0to see non-compliant hosts - Track changes over time. Parascope's change history records when security updates appear and when they get applied
Certificate Expiration Monitoring: "Which certificates expire soon?"
Scenario: An expired TLS certificate causes a production outage. You need visibility into certificate lifetimes across your fleet.
With OS collection:
- Every TLS certificate found on disk is tracked as an
os.certificateCI withnot_after(expiration date) - Certificates are deduplicated: a wildcard cert used on 10 hosts appears as one CI, with an instance record for every file path on every host
- Sort certificates by expiration date to see what's expiring next
- The instance records show exactly which hosts and file paths would be affected
Fleet Software Inventory: "What's running across our infrastructure?"
Scenario: During an architecture review, you need to understand the software landscape across 50+ Linux hosts.
With OS collection:
- Browse
os.softwareCIs to see every promoted software component across the fleet - Each software CI shows how many hosts run it (via instance count)
- Filter by promotion reason to focus on network services (
listening_port), active daemons (active_daemon), or known infrastructure (known_pattern) - Identify version sprawl: the same software at different versions across hosts
- Discover unexpected services. The
unpackaged_listenersignal catches processes listening on ports without corresponding packages
Infrastructure Drift Detection: "Is this VM configured as expected?"
Scenario: A VM was rebuilt from a template, but something isn't working. You need to compare its current state against known-good configuration.
With OS collection:
- Compare the current
os.linuxCI's configuration with its change history to see what changed - Check kernel version, installed packages, network configuration, and service states
- The IP mismatch detection in OS enrichment lists OS-reported IP addresses that the infrastructure platform doesn't list for the VM
- Compare two hosts by viewing their
os.linuxCIs side by side. Same distribution? Same kernel? Same key packages?
Container Visibility: "What containers run on this host?"
Scenario: A host managed by cephadm is having performance issues. You need to see what containers are running on it.
With OS collection:
- Each
os.containerCI shows the container's image, state, port bindings, and resource configuration - The
runs_onrelationship connects containers to their hostos.linuxCI - Ceph containers use stable naming (
osd-2@hostnameinstead ofceph-28ea88f2-...-osd-2), so CI identity persists across cluster rebuilds - Distinguish Docker vs Podman containers via the
runtimefield
Network Service Mapping: "What's listening on the network?"
Scenario: You're auditing network exposure across your fleet and need to know every listening port and what process owns it.
With OS collection:
- The
listenerssection captures every TCP and UDP listening socket with the owning process name - Promoted software CIs include their listening ports in the instance data
unpackaged_listenerpromotions flag processes with network sockets but no corresponding package (potentially unauthorized services)- Combine with network data (interfaces, routes, DNS) to build a complete picture of each host's network posture
Physical Connectivity: "What switch port is this host connected to?"
Scenario: A host is experiencing network issues and you need to identify the physical switch and port it's connected to for troubleshooting.
With OS collection:
- The
lldpsection collects LLDP neighbor data from hosts runninglldpd, showing the directly connected network switch and port - Each LLDP neighbor record includes the remote system name, chassis ID, port ID, and management IP
- Cross-reference with SNMP LLDP data collected from switches to verify both sides of the physical link agree
- LLDP neighbor changes are tracked in change history, and a neighbor change means a physical cabling change
- Field names are aligned with the SNMP LLDP collector format, enabling future cross-source correlation
Note: LLDP data requires lldpd to be installed on the target host. Hosts without lldpd will simply report an empty neighbors list.
Configuration
Collection Rulesets
Rulesets define what to collect from, how to reach it, and which appliance collects it. You can create multiple rulesets for different parts of your infrastructure (e.g., production vs staging, different network zones).
Key ruleset settings:
| Setting | Description | Default |
|---|---|---|
| Name | Unique friendly name for the ruleset | Required |
| Platform | Target OS platform | linux |
| Enabled | Whether collection runs on schedule. A disabled ruleset is sent to no appliance | true |
| Appliance | The appliance that collects the ruleset, or All appliances | All appliances |
| Target filters | CI types and filters to select targets | Required |
| Credential | Name of a stored SSH credential. Required and stored, but not applied on an appliance (see Credential Management) | Required |
| Collection interval | Seconds between scheduled collections | 86400 (24 hours) |
| SSH port | Port for SSH connections | 22 |
| Become method | none runs the collection script as the SSH user. sudo runs it with sudo -n, which needs passwordless sudo for the appliance's SSH user on every target; without it each target fails with become_failed | none |
| Reachability | Transport strategy (direct or jump host) | direct |
| Collected sections | Which sections the ruleset's hosts run. Core sections are always collected (see Collected sections) | Every section |
| Promotion overrides | Force-promote or suppress specific packages | Empty |
Binding a ruleset to an appliance. A ruleset bound to one appliance is collected by that appliance only. A ruleset left on All appliances is collected by every appliance in the tenant, so with two appliances each of its hosts is collected twice, and the ruleset form says so. Both appliances write to the same CIs, because a CI's identity comes from the ruleset, not the appliance. For a ruleset several appliances collect, the rulesets page shows the last report received. A ruleset bound to an appliance that is no longer paired (one since decommissioned, for example) is collected by no appliance, and the rulesets page shows it as Unknown appliance.
Rulesets created before the become default changed. A new ruleset defaults to none. A ruleset created earlier stored sudo, the old default, which had no effect until rulesets reached appliances and takes effect now. On a host where the appliance's SSH user lacks passwordless sudo, each target of such a ruleset fails with become_failed, and the rulesets page shows it. Switch the ruleset to none, or grant that user passwordless sudo.
Target Discovery
Targets are selected in the cloud. For each ruleset, Parascope scans the active CIs of the ruleset's CI types and keeps those that match its filters, with each CI's IP address. The preview and the target list an appliance receives come from the same selection, so a preview by someone whose data scopes cover the ruleset's CIs lists what the appliance collects, plus any matches without an IP address, which are not sent.
Filters match these fields of each CI:
id,name,type,source,source_id,ci_key,status,last_seen,created_atandupdated_at- the list fields
ip_addresses,hostnames,fqdns,tagsandrelated_sources os_enriched(whether OS collection already covers the CI), witheqandtrueorfalseattributes.name,attributes.namespace,attributes.scope_id,attributes.scope_labelandattributes.ci_typeattributes.<column>for a typed column of the ruleset's CI types, such asattributes.power_stateonproxmox.vm
Matching is case-insensitive. The operators are eq (the default when the operator is omitted), contains, like (the same as contains) and startswith. An object filter may name its operator op or operator. The list fields are compared as text, so they take only contains or like. A CI must match every filter, so a filter can't carry an OR logic. In blacklist mode the ruleset targets the CIs that do not.
A filter can target a typed column of the ruleset's CI types as attributes.<column>. The column must exist on every target type. A name shared with one of the attributes.* fields above always means that field (attributes.name is the CI name, even on a type whose table has a name column). The operators depend on the column's type:
| Column type | Operators |
|---|---|
| Text, enum, UUID, IP address | eq, contains, like, startswith |
| Boolean, integer, number | eq |
| Date and time | startswith, on the ISO text (for example 2026-10) |
A boolean column takes only true or false, an integer column a whole number, and a number column only its stored text (50.0, not 50). JSON and list columns can't be targeted. Source-payload paths such as config.status never match; Parascope refuses them when you save the ruleset.
Typed columns work in both whitelist and blacklist rulesets, and the settings form offers typed-column suggestions in both modes. Parascope evaluates them in the cloud with the column values loaded, so a typed blacklist excludes exactly the CIs whose column matches. The appliance never evaluates a filter.
In whitelist mode a name filter with contains or like also narrows the scan, which makes a large estate faster to resolve without changing which CIs match. A blacklist scans every active CI of its types and excludes those that match. Preview and delivery scan the same way.
Saving a ruleset checks every filter and refuses the save, naming the entry, when a filter is malformed or could never match. That covers an unsupported operator, a missing or empty field or value, an entry that is neither field:op:value text nor a {"field", "op", "value"} object, a field that is not one of the list fields above, an eq or startswith on a list field, a typed column that doesn't exist on every target type or isn't scalar, an operator the column's type doesn't allow, any operator other than eq on os_enriched, an op and operator that disagree, and an OR logic. A ruleset saved before these checks may still hold such a filter. It then selects no targets, the rulesets page names the problem, previewing it returns an error that names the entry, and an enabled ruleset shows as degraded until the filter is fixed. A ruleset whose typed column later disappears from a target type degrades the same way, and reaches the appliance with zero targets and invalid_target_filters.
Example: Collect from Proxmox VMs whose names start with web-
{
"targets": {
"mode": "whitelist",
"ci_types": ["proxmox.vm"],
"filters": [{ "field": "name", "op": "startswith", "value": "web-" }]
}
}Example: Collect from OpenStack instances, except those on the management network
{
"targets": {
"mode": "blacklist",
"ci_types": ["openstack.instance"],
"filters": [{ "field": "ip_addresses", "op": "contains", "value": "192.168.100." }]
}
}Example: Collect only from running Proxmox VMs
{
"targets": {
"mode": "whitelist",
"ci_types": ["proxmox.vm"],
"filters": [{ "field": "attributes.power_state", "op": "eq", "value": "running" }]
}
}Target filters match the CI's list fields and typed columns, never its source payload (raw_data), so saving or previewing a ruleset needs no raw_data:read permission, and holding that permission doesn't change which CIs a preview selects.
Delivery Limits and Capacity
Parascope does not send an appliance a truncated target list. A ruleset that cannot be resolved in full reaches the appliance with zero targets and an error, the appliance's other rulesets are unaffected, and on the ruleset's next cycle the rulesets page shows it as degraded with the reason. The one exception is a sync whose deadline passes before any ruleset resolves: that sync fails as a whole, no ruleset shows an error, and the appliance keeps collecting from the bundle it already has, within the limits under Delivery Timing.
| Error | Cause | Fix |
|---|---|---|
target_limit_exceeded | The ruleset's scan read more than 50,000 candidate CIs | Split the ruleset by CI type, or add a whitelist name contains or like filter |
bundle_size_exceeded | The appliance's target list passed its 16 MiB cap, and this ruleset was the largest left | Bind rulesets to separate appliances or narrow the filters |
resolution_deadline_exceeded | The ruleset was not resolved within the 45 seconds a sync allows (rulesets resolve in order, so every one after it fails too), or one of its queries ran past the 10-second statement timeout | Narrow the filters. A ruleset that only just misses usually resolves on a later sync |
invalid_target_filters | A malformed filter, or a typed column the ruleset's types cannot serve | Fix the filter |
invalid_targets | Targets that are not an object, a mode other than whitelist or blacklist, CI types that are not a list of names, or a CI type Parascope cannot target (unknown, or with no type table) | Fix the CI types or mode |
invalid_settings | A stored setting the appliance cannot apply, such as a become method other than sudo or none, an SSH or gateway port outside 1 to 65535, a collection interval under 60 seconds, an unknown host-key verification mode or reachability strategy, a jump_host strategy with no gateway, gateway host keys with no usable public key, or promotion overrides that are not lists of names, or (on an appliance that applies section selection) a stored collected-sections value that names an unknown section, holds a value other than true or false, switches off a section that is always collected, or switches sections off on a non-Linux ruleset. The message names each one | Correct the named settings and save the ruleset |
A cycle that ran can also report errors from individual targets: become_failed (sudo refused on the target) and host_key_algorithm_unsupported (see Older SSH Servers and RSA Keys). The rulesets page then shows the most frequent of them with a count per error, while the target count and success rate describe the run. A cycle that makes no connection at all says why, for example target_bundle_stale (see Delivery Timing) or appliance_ssh_key_unavailable (see Credential Management). The next cycle with no such error clears it.
The candidate ceiling. The 50,000 limit counts the candidates the ruleset's scan reads across all of its CI types together, not its matches. A ruleset over three types has one 50,000 budget, not three, and a blacklist counts every active CI of its types. A whitelist name filter with contains or like narrows what is read. The ceiling applies to each ruleset on its own, so splitting a large ruleset by CI type helps.
The bundle cap. An appliance's target list is capped at 16 MiB across every ruleset it collects. Past the cap, Parascope drops rulesets, largest first, until the rest fit. The dropped ruleset's message names the appliance's bundle size, the cap, the ruleset's own size and target count, and the fix. Splitting a ruleset on the same appliance does not help, because the cap is per appliance. Each target takes about 0.19 KB before its host key is known, plus one public key once it is pinned, so what fits on one appliance depends on the hosts' key type:
| Every host's key | Size per target | Targets that fit in one appliance's 16 MiB |
|---|---|---|
| Not yet known | About 0.19 KB | About 88,000 |
| ed25519 | About 0.27 KB | About 62,000 |
| ECDSA P-256 | About 0.35 KB | About 47,000 (P-384 and P-521 keys are longer, so slightly fewer) |
| RSA only, 2048 or 3072 bit | About 0.56 or 0.74 KB | About 29,000 or 22,000 |
These are two separate limits. A single ruleset never ships more than the 50,000 candidates its scan may read, and at that ceiling it takes about 9 MiB before host keys are known and about 13 MiB with ed25519 pins, so it fits on its own. The 16 MiB cap counts every ruleset an appliance collects, and it is reached first by RSA or ECDSA hosts or by several large rulesets together.
Current OpenSSH servers generate an ed25519 host key by default. Only one key per host is sent, the strongest stored, so a host that holds an ed25519 key counts as ed25519 whatever else it holds. An estate that fits on first contact can pass the cap later, as RSA or ECDSA keys are pinned, and the largest ruleset then shows bundle_size_exceeded.
A ruleset's preview warns when its matches could pass the cap, sized at the RSA worst case of about 0.74 KB per target. A preview that stopped at its match or scan limit always shows the warning, because the count it reached is already over the cap at that size.
Credential Management
On an appliance the OS collector connects to every target, and to a jump host, as the SSH user configured on the appliance's OS collector, with the SSH key stored in the appliance's vault. Set both when you enable the OS collector on the appliance, and add the matching public key to that user's authorized_keys on every target and on the jump host. The key is read at the start of every cycle, so a vault unlocked after a reboot is picked up without a restart. While the key is unavailable (the vault is locked, or no key is configured) the cycle makes no connection and fails with appliance_ssh_key_unavailable. There is no password fallback.
A ruleset's Credential is required and stored, and so is a jump host's optional gateway_credential, but neither is applied on an appliance: Parascope sends no stored credential to the appliance. The rulesets list marks every credential Not applied on appliance, and the ruleset form and the preview show a warning that names the identity each appliance uses instead, for example:
On appliance
lab-01this ruleset connects asparascopewith the appliance key, notweb-ro.
Until an appliance reports its SSH user, the warning names "the SSH user configured on the appliance's OS collector".
Reachability Strategies
| Strategy | Use Case | Configuration |
|---|---|---|
| Direct | Targets reachable from the collector's network | Default, no extra config needed |
| Jump host | Targets in isolated networks, behind a bastion | Configure the gateway host and its host keys |
Jump host example:
{
"reachability": {
"strategy": "jump_host",
"gateway": "10.20.0.1",
"gateway_port": 22,
"gateway_credential": "Bastion SSH Key"
}
}gateway_port defaults to 22, whatever the ruleset's SSH port. On an appliance the bastion hop uses the same appliance SSH user and key as the targets, so a bastion on port 22 that accepts the appliance key needs only gateway. A gateway_credential is stored and not applied, and the ruleset form's warning names it. A jump_host strategy with no gateway set reaches the appliance with zero targets and invalid_settings until a gateway is set; Parascope never connects such a ruleset directly.
Targets are reached by tunnelling through the gateway, so the bastion is a second SSH hop with its own host key. Verification there is not optional: pre-seed it with gateway_host_keys (see Pre-Seeding Keys) before switching a ruleset to Jump Host, or the first collection is refused at the gateway before any session opens. This holds for every ruleset marked Jump Host, including ones that predate the gateway host-key settings: seed the gateway key, or the next collection is refused at the bastion.
On-Demand Collection
A ruleset delivered to an appliance is collected on the appliance's schedule. There is no immediate collection of a single target: a change you save reaches the appliance within one sync interval (at most about 16.5 minutes) and is collected from the ruleset's next cycle (see Delivery Timing).
The Collect now action in a ruleset's preview does not run a collection on an appliance. It ends with a Collection error message.
OS Enrichment
When the OS collector gathers data from a host, the host's os.linux CI is linked to the parent infrastructure CI (the VM or bare metal node) it runs on. The parent's detail view derives a summary of what's running inside from that os.linux CI; if a host was rebuilt and several os.linux CIs point at it, the most recently seen one is used.
Enrichment data includes:
| Field | Description |
|---|---|
| OS summary | Distribution and kernel version (e.g., "Ubuntu 22.04.3 LTS (kernel 5.15.0-91)") |
| CPU utilization | Current CPU usage percentage |
| Memory utilization | Current memory usage percentage |
| IP mismatch | OS-reported IP addresses the infrastructure platform doesn't list for the CI |
| Last collected | When the OS data was last gathered |
This gives you at-a-glance OS information directly on VM and node detail pages, without navigating to the os.linux CI.
Monitoring
The OS collector exposes Prometheus metrics for operational visibility:
| Metric | Description |
|---|---|
os_targets_collected_total | Successful collections per ruleset |
os_targets_failed_total | Failed collections per ruleset |
os_targets_discovered | Targets discovered per ruleset |
collection_run_duration_seconds | Collection timing (P50/P95/P99) |
collector_source_health_state | Circuit breaker state (0=healthy, 1=degraded, 2=unhealthy, 3=circuit_open) |
Circuit Breaker
Each ruleset has an independent circuit breaker that prevents unhealthy rulesets from blocking healthy ones:
| State | Meaning |
|---|---|
| Healthy | Normal operation |
| Degraded | High latency detected (collections taking longer than 10s) |
| Unhealthy | Failures detected, still retrying |
| Circuit open | 3 consecutive failures; collection is skipped for 60s before retrying |
Related Documentation
- Architecture: System design overview
- Correlation Engine: Cross-system relationship discovery
- CI Types: All CI types across sources