Linuxfabrik in-house check, may not be useful for others. Checks the content of
/var/log/borg/borg.log. Known Issue and Limitation is that the calculation of the borg process runtime can be wrong.
Check Plugin Download
Check Interval Recommendation
Once a day
Can be called without parameters
usage: borgbackup [-h] [-V] [-c CRIT] [-w WARN] Checks the date and return code of the last borgbackup, according to the logfile. optional arguments: -h, --help show this help message and exit -V, --version show program's version number and exit -c CRIT, --critical CRIT Set the critical threshold for the time difference to the start of the last backup (in hours). Default: None -w WARN, --warning WARN Set the warning threshold for the time difference to the start of the last backup (in hours). Default: 24
Last Backup started 2021-06-02 23:05:07, ended 2021-06-02 23:05:43, took 36s. * Create retc: 0, State: * Prune retc: 0, State:
WARN on active borg mounts
WARN on Borg return codes > 1
WARN or CRIT if last backup start time > n hours
Perfdata / Metrics
- local variable ‚…‘ referenced before assignment
Expected behaviour of the check. If either
prune_retcis missing (and hence this error message is returned), the backup has failed in any way.