Skip to main content

SSH Runbook

An SSH runbook runs a shell command over SSH on a Linux, Solaris, AIX, or any SSH-reachable host, and parses the output back into values on the result screen.

When to Use​

Use SSH when the target speaks SSH and you need to run a shell command, read a file, or capture top, df, netstat, systemctl, or any other POSIX utility output.

Fields​

FieldWhat to enter
Runbook NameA short, unique name.
DescriptionOne line on what the runbook returns.
Runbook CategoryDiagnostics, Performance Monitoring, Troubleshooting, System Management, Log Collection, Network Config, or Integration.
MonitorPick by Group, Tag, IP/Host, or Monitors.
Credential ProfileThe SSH credential. Click Create Credential Profile if none fits.
PortSSH port. Defaults to the credential profile's port (22 if not set).
TimeoutSeconds to wait before marking the run Failed.
SSH ScriptThe shell command the agent runs over SSH.
Script LanguageGO or Python, for the parsing script.
Parsing ScriptTurns the raw SSH output into the result values shown on the result screen.
Add VariablePrompts the user for a value at run time. Reference it as $$$variable.name$$$ in both scripts.

The right-side Sample Parsing Script > SSH Availability panel shows a working parser you can copy and adjust.

Steps​

  1. Open Settings > Plugin Library > Runbook and click Create Runbook Plugin.
  2. Pick SSH from the top menu (SSH is the default).
  3. Fill in the fields above.
  4. Click Test to run once against the chosen monitor.
  5. Review the raw output and parsed values. Adjust the parsing script if any value is empty.
  6. Click Save.