thruk_state_at
Retrieve the monitoring state at any past time from log archives. Filter by host, service, or custom variables to diagnose historical issues.
Instructions
Reconstruct the parc state at a past instant from /logs (post-mortem snapshot).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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, service 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. | |
| timestamp | No | Past instant to reconstruct (required). Thruk relative ("-2h") or absolute ("2026-06-16 15:45:00", interpreted as UTC). | |
| problems_only | No | Return only non-OK/UP objects (drops the OK/UP rows). Default false. |