thruk_stale_checks
Identify monitoring checks that have stopped running, revealing false green states to prevent undetected outages.
Instructions
Surface checks that stopped running (the dangerous "false green").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of rows scanned per object type (max 5000, default 500). | |
| 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, 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. | |
| grace_seconds | No | Absolute grace (seconds) added on top of interval*factor / passive_max_age_s to avoid boundary flapping (default 60). | |
| include_hosts | No | Also run the same logic over /hosts host checks (default true). | |
| include_disabled | No | Report active checks with active_checks_enabled=0 as reason=disabled (default true). | |
| staleness_factor | No | Multiplier on the active check_interval before a check is considered stale (now - last_check > interval*factor + grace_seconds). | |
| passive_max_age_s | No | Max age in seconds of a passive check's last result before reason=stale_passive (default 3600). | |
| latency_threshold_s | No | Latency in seconds above which a check is flagged with reason=high_latency. |