Get Backup Stats
get_backup_statsSummarize backup health across Oxidized nodes: counts by status, group, model, success rate, plus lists of failed, never backed up, and stale nodes. Optionally filter by group or model.
Instructions
Summarise backup health across Oxidized nodes.
Computed from the node list (oxidized-web's own stats JSON is not usable): counts per last-run status, per group and per model, the success rate, and lists of failed nodes, nodes never backed up and stale nodes. Optionally limited to one group or model, filtered by Oxidized itself.
"Stale" means Oxidized has not attempted a backup within the threshold (e.g. it is not polling the node); nodes that are attempted but keep failing are listed under failed_nodes instead. Oxidized does not expose the time of the last successful backup, and its run history is kept in memory only (reset on restart). Right after trigger_node_backup a node briefly shows as never backed up, because Oxidized clears its last run while it is queued.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | Only include nodes in this group (exact, case-sensitive name) | |
| model | No | Only include nodes of this Oxidized model (e.g. 'IOS') | |
| max_listed | No | Maximum nodes listed in each of the failed/never/stale lists | |
| stale_hours | No | Report nodes whose last backup attempt (successful or not) is older than this many hours |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||