ssh_alert_setup
Set, retrieve, or check CPU, memory, and disk usage alert thresholds on a remote server for 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 |
|---|---|---|---|
| server | Yes | Server name | |
| action | Yes | Action: set thresholds, get config, or check current metrics against thresholds | |
| cpuThreshold | No | CPU usage threshold percentage (e.g., 80) | |
| memoryThreshold | No | Memory usage threshold percentage (e.g., 90) | |
| diskThreshold | No | Disk usage threshold percentage (e.g., 85) | |
| enabled | No | Enable or disable alerts (default: true) |