Nagios plugin for Duplicity backups

This plugin can be used to check results of Duplicity backups from Nagios.

💡
Set Nagios service parameter max_check_attempts to 1 for proper operation.
Duplicity backup statistics output example
--------------[ Backup Statistics ]--------------
StartTime 1589934609.17 (Wed May 20 02:30:09 2020)
EndTime 1589934611.97 (Wed May 20 02:30:11 2020)
ElapsedTime 2.80 (2.80 seconds)
SourceFiles 13106
SourceFileSize 1012789998 (966 MB)
NewFiles 5
NewFileSize 114206 (112 KB)
DeletedFiles 0
ChangedFiles 0
ChangedFileSize 0 (0 bytes)
ChangedDeltaSize 0 (0 bytes)
DeltaEntries 5
RawDeltaSize 77342 (75.5 KB)
TotalDestinationSizeChange 23197 (22.7 KB)
Errors 0
-------------------------------------------------
  
USAGE: ./check_duplicity -l <path> [-c | -w]
-l <path> : Duplicity log file path (required)
-c : return critical if errors
-w : return warning if errors
``

Github Repo