thruk_unreachable_vs_down
Analyzes host outages to split them into DOWN (cause) and UNREACHABLE (consequence) states within a specified time window, using filters and backends.
Instructions
Split a host outage window into DOWN (cause) vs UNREACHABLE (consequence).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Start of analysis window. Thruk relative time ("-2h", "-7d") or ISO datetime ("2026-05-20 14:00:00"). Default: last 1 hour. | -1h |
| until | No | End of the time window (same formats as since). Default: now. | |
| filter | No | Structured filter tree supporting AND/OR nesting. Two node types: leaf: {"type":"leaf", "field":"...", "op":"...", "value":...} group: {"type":"group", "operator":"and"|"or", "conditions":[...]} Available fields: custom_var, host, hostgroup Operators: eq, gte, in, lte, neq, regex Examples: # Objects in HG_AGILE: {"type":"leaf","field":"hostgroup","op":"eq","value":"HG_AGILE"} # In HG_AGILE OR with KERNEL=windows: {"type":"group","operator":"or","conditions":[ {"type":"leaf","field":"hostgroup","op":"eq","value":"HG_AGILE"}, {"type":"leaf","field":"custom_var","op":"eq","value":{"var":"KERNEL","val":"windows"}} ]} | |
| backends | No | Comma-separated backend names (sites). Omit for all backends. | |
| sample_limit | No | Maximum hosts listed in each returned host array (default 100). |