Skip to main content

Linux

Agentless

Synopsis

Creates a collector that connects to Linux servers via SSH to gather system metrics and performance data. Supports both password and private key authentication methods, with configurable connection parameters and debug options.

Schema

- id: <numeric>
name: <string>
description: <string>
type: linux
tags: <string[]>
pipelines: <pipeline[]>
status: <boolean>
properties:
protocol: <string>
address: <string>
port: <numeric>
username: <string>
password: <string>
private_key: <string>
passphrase: <string>
timeout: <numeric>

Configuration

The following are the minimum requirements to define the device.

Device

FieldRequiredDefaultDescription
idYUnique identifier
nameYDevice name
descriptionN-Optional description
typeYMust be linux
tagsN-Optional tags
pipelinesN-Optional pre-processor pipelines
statusNtrueEnable/disable the device

Connection

FieldRequiredDefaultDescription
protocolN"ssh"Connection protocol (only ssh supported)
addressYTarget server address
portN22SSH port number
usernameYSSH username
passwordN-SSH password (if not using private key)
private_keyN-Path to SSH private key file
passphraseN-Private key passphrase (if required)

Advanced Configuration

The following settings can be used to fine tune the collector's behavior.

Performance

FieldRequiredDefaultDescription
timeoutN30SSH connection timeout in seconds

Examples

The following are commonly used configuration types.

Passwords

Passwords can be used for authentication:

- id: 1
name: linux_server
type: linux
properties:
address: "192.168.1.100"
username: "admin"
password: "secret"

Private Keys

SSH keys can be used for authentication:

- id: 2
name: secure_linux
type: linux
properties:
address: "10.0.0.50"
port: 2222
username: "monitor"
private_key: "/path/to/private_key"
passphrase: "key_password"
warning

The private key file must be readable by the service user, and have appropriate permissions (600 or more restrictive).