Introduction¶
The DeepSeek Harness (DSH) plugin ecosystem prioritizes integration and ease of use. In development or operations scenarios, checking server status often requires switching terminals or opening separate monitoring panels. dsh-server-monitor, as a standalone read-only monitoring plugin, addresses the need to view Linux server resources and container status directly within the DSH sidebar. It features independent SSH configuration and credential management, not relying on connection settings from other plugins like dsh-remote-workspace.
Plugin Overview¶
Maintained by GooDAnDReaDY and licensed under MIT, this plugin provides a visual server monitoring panel for DSH. It supports Linux, macOS, BSD, and Windows OpenSSH environments. The plugin automatically collects system and container data from target hosts and supports running maintenance scripts and viewing logs.
Core Features¶
SSH Server Management¶
Supports adding and managing SSH configurations for various systems:
* Authentication Methods: Supports SSH private keys (inline or server-side path) as well as password authentication.
* Key Generation: Ed25519 key pairs can be generated directly within the interface. The generated private key is saved locally on the DSH host, and the public key can be copied to the target server for use.
* Configuration Import: Supports importing host configurations from ~/.ssh/config.
System & Container Monitoring¶
Data refreshes every 15 seconds while the plugin is visible in the sidebar, displaying the following information:
* System Resources: Host info, CPU, Memory, Swap, and Disk usage.
* Processes & Network: Running process list, network interfaces, and listening port data.
* Container Management: Status cards for Docker and Podman, supporting start, stop, and restart actions, as well as a log viewing modal.
* Activity Trends: Displays resource activity trends over the past hour in line charts.
System Operations Tools¶
- Log Viewing: Integrates
journalctl, supports filtering by unit and priority (err..emerg), and provides a one-click “AI Analysis Diagnosis” export function. - Maintenance Manual: Provides a library of code snippets and custom scripts, supporting execution across servers by tags (e.g.,
#prod). - Terminal Interaction: Provides an interactive terminal session based on loopback xterm.
Installation and Activation¶
In the DSH web profile environment, execute the following command to install the plugin:
dsh plugin --profile web add @goodandready/dsh-server-monitor
After installation, follow the CLI prompts to add servers, select authentication methods, and test connections. Once installed, you can open “Server Monitor” in the DSH sidebar.
Configuration Guide¶
Polling Interval¶
In the plugin settings card, you can configure the background data collection interval via pollIntervalSec. The following values are supported:
* 10, 30, 60, 300 (seconds).
* Other values will default to 30 seconds.
SSH Configuration Items¶
The plugin manages an independent SSH configuration file. The main configuration items are as follows:
| Field | Type | Default Value | Description |
|---|---|---|---|
host |
string | - | Linux host address (accessible to DSH) |
port |
number | 22 | SSH port |
username |
string | root | Remote account (restricted permissions recommended) |
authType |
string | key | Authentication type: key or password |
privateKeyPath |
string | - | Optional key path (on DSH host) |
shell |
string | posix | Shell type: posix or powershell (for Windows) |
tags |
list | [] | Tags, used for filtering the server list |
Credentials and Key Storage¶
- Key Path: SSH keys generated via the interface are saved to
~/.dsh/keys/id_ed25519_dsh. - Permission Security: On POSIX systems, the key directory permissions are
0700, and file permissions are0600. Credentials are stored in the plugin’s private vault and are never written to DSH global settings or returned to the browser.
Environment Requirements and Notes¶
Runtime Environment¶
- DSH Profile: Requires a DSH web profile with the plugin installed.
- Network Access: The DSH process must be able to access the target host via SSH.
- Permission Requirements: The remote account needs permission to run read-only system commands; corresponding permissions are required to query Docker/Podman data.
- Dependencies: Runtime depends on
ssh2(v1.17.0 or higher).
Pure JavaScript Implementation¶
The plugin does not require C/C++ compilers or Python build toolchains to be installed on the host machine. Although ssh2 includes optional native acceleration modules, the plugin has a pure JavaScript fallback mechanism, allowing it to run normally in environments without native build tools.
Offline Environment¶
When installing via .tgz in a disconnected or isolated environment, ensure that ssh2 and its transitive dependencies exist in the local package manager storage.
Summary¶
dsh-server-monitor provides a complete, integrated server monitoring and lightweight operations solution for DeepSeek Harness. Through independent credential management and rich visualization components, it allows users to complete most tasks ranging from resource viewing to fault diagnosis directly within the DSH interface.