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 /manifests/nagios_plugin | |
parent | 05126fc24983ec3735eea1d56971aafc5b9c317b (diff) | |
download | puppet-backupninja-1e5db13e9c103b93fcdbd3983099c734358f524c.tar.gz puppet-backupninja-1e5db13e9c103b93fcdbd3983099c734358f524c.tar.bz2 |
check_backupninja_duplicity.py nagios script
Diffstat (limited to 'manifests/nagios_plugin')
-rw-r--r-- | manifests/nagios_plugin/duplicity.pp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/nagios_plugin/duplicity.pp b/manifests/nagios_plugin/duplicity.pp new file mode 100644 index 0000000..93b0989 --- /dev/null +++ b/manifests/nagios_plugin/duplicity.pp @@ -0,0 +1,22 @@ +class backupninja::nagios_plugin::duplicity { + case ::operatingsystem { + 'Debian': { package { 'python-argparse': ensure => installed, } } + 'Ubuntu': { package { 'python-argh': ensure => installed, } } + default: { + notify {'Backupninja-Duplicity Nagios check needs python-argparse to be installed !':} } + } + + nagios::plugin { 'check_backupninja_duplicity.py': + source => 'backupninja/nagios_plugins/duplicity/check_backupninja_duplicity.py' + } + + # deploy helper script + file { '/usr/lib/nagios/plugins/backupninja_duplicity_freshness.sh': + source => 'puppet:///modules/backupninja/nagios_plugins/duplicity/backupninja_duplicity_freshness.sh', + mode => '0755', + owner => 'nagios', + group => 'nagios', + } + +} + |