ssh_alert_setup
Configure, inspect, or validate CPU, memory, and disk alert thresholds on remote servers. Use set, get, or check to manage resource monitoring.
Instructions
Configures and evaluates CPU, memory, and disk usage alert thresholds for a remote server. The action parameter selects: set writes the threshold config to /etc/ssh-manager-alerts.json on the remote host (mutating, may need write access to /etc, and is blocked on readonly servers); get reads back that config; check reads current metrics and compares them to stored thresholds. get and check are read-only. enabled defaults to true; check errors if no config exists yet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action: set thresholds, get config, or check current metrics against thresholds | |
| server | Yes | Server name | |
| enabled | No | Enable or disable alerts (default: true) | |
| cpuThreshold | No | CPU usage threshold percentage (e.g., 80) | |
| diskThreshold | No | Disk usage threshold percentage (e.g., 85) | |
| memoryThreshold | No | Memory usage threshold percentage (e.g., 90) |