diff options
author | varac <varacanero@zeromail.org> | 2013-01-24 12:08:24 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-01-24 12:08:24 +0100 |
commit | 1e5db13e9c103b93fcdbd3983099c734358f524c (patch) | |
tree | 2fca4bcb7c74ab6a4459888d7456097844fd54b2 /files/nagios_plugins/duplicity/README.md | |
parent | 05126fc24983ec3735eea1d56971aafc5b9c317b (diff) | |
download | puppet-backupninja-1e5db13e9c103b93fcdbd3983099c734358f524c.tar.gz puppet-backupninja-1e5db13e9c103b93fcdbd3983099c734358f524c.tar.bz2 |
check_backupninja_duplicity.py nagios script
Diffstat (limited to 'files/nagios_plugins/duplicity/README.md')
-rw-r--r-- | files/nagios_plugins/duplicity/README.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/files/nagios_plugins/duplicity/README.md b/files/nagios_plugins/duplicity/README.md new file mode 100644 index 0000000..1cd349a --- /dev/null +++ b/files/nagios_plugins/duplicity/README.md @@ -0,0 +1,24 @@ +duplicity-backup-status +======================= + +Backupninja generates duplicity configfiles, this nagios plugin can check their freshness. Currently only the config files generated by backupninja can be parsed and we depend on that. + +## Prerequisites + +Make sure you have python-argparse installed (yes an extra dependency, getopt doubles the amount of code, so I gave up on that). The Python script will look for the duplicity_freshness.sh shell script in /usr/local/lib/nagios/plugins/ or /usr/lib/nagios/plugins/ make sure you copy it there and make executable. + +## Getting started + +Run the python script from your nagios. Don't forget to specify some extras like when warnings or criticalities should be emerged. + +- -w WARNINC Number of hours allowed for incremential backup warning level default 28 +- -W WARNFULL Number of hours allowed for incremential backup critical level default 40 +- -c CRITINC Number of days allowed for full backup warning level default 52 +- -C CRITFULL Number of days allowed for full backup critical level default 60 + + +## TODO: + +- make it cuter, tidy up +- make it more robust +- support other config backends as backupninja - this can be done by writing more scripts like backupninja_duplicity_freshness.sh and parsing an extra parameter |