Skip to main content

SNMP Runbook

An SNMP runbook reads scalar or tabular OIDs from an SNMP-enabled device and shows the parsed values on the result screen.

When to Use​

Use SNMP for switches, routers, firewalls, printers, UPS systems, and other network devices that expose data through SNMP v1, v2c, or v3.

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 SNMP credential (community string for v1/v2c, user and auth/priv for v3). Click Create Credential Profile if none fits.
PortSNMP port. Defaults to 161.
TimeoutSeconds to wait before marking the run Failed.
Scalar / Tabular

Scalar reads one value per OID.

Tabular walks a table and returns one row per index.

OID Listing

Add one or more entries. Each entry needs:

- OID Name to label the value on the result screen.

- OID (dotted numeric form) or click Choose OID to pick from the OID picker.

Add OID GroupAvailable when Tabular is selected. Groups a set of OIDs that walk together.
Script LanguageGO or Python, for the parsing script.
Parsing ScriptTurns the raw OID values into the result values.
Add VariablePrompts the user for a value at run time. Reference it as $$$variable.name$$$ in the parsing script.

The right-side Sample Parsing Script > SNMP 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 SNMP from the top menu.
  3. Select Scalar or Tabular.
  4. Add each OID under OID Listing. For a tabular walk, use Add OID Group to group OIDs that share an index.
  5. Fill in the parsing script.
  6. Click Test to walk the device once and show the parsed values.
  7. Click Save.