Skip to content

Linux memory over SSH (ssh_memory) ​

Reads /proc/meminfo over SSH. Memory in use is the total minus MemAvailable, the kernel's own estimate of what can be used without swapping, so page cache is not counted as used. On kernels before 3.14, which have no MemAvailable, free memory plus buffers and cache stands in for it.

Channels ​

KeyNameUnitDefault limits
used_pctMemory used%warning above 90, error above 97
used_bytesMemory usedBnone
available_bytesMemory availableBnone
total_bytesMemory totalBnone
swap_used_pctSwap used%warning above 50, error above 90. Unknown when there is no swap.
swap_used_bytesSwap usedBnone

Parameters ​

ParameterDefaultMeaning
port22TCP port of the SSH server.

Suggested interval: 60 seconds. Credential: SSH. Discovery adds it to a Linux host that accepts the SSH credential.

On the target ​

An SSH account that can run cat /proc/meminfo, which every account can. The command run is exactly cat /proc/meminfo. See Linux over SSH. The first connection records the host key; see ssh_disk.

Failures ​

MessageMeaning
/proc/meminfo has no MemTotal (is the target a Linux host?) (kind protocol)Not Linux, or an unusual /proc.
SSH errorsAs for ssh_disk.

AGPL-3.0-only