Commit 6535aaa5 authored by varac's avatar varac

sudo def for duplicity check

parent 9be6a418
......@@ -22,7 +22,13 @@ class backupninja::nagios_plugin::duplicity {
}
nagios::nrpe::command { 'check_backupninja_duplicity':
command_line => "${::nagios::nrpe::nagios_plugin_dir}/check_backupninja_duplicity"
command_line => "sudo {::nagios::nrpe::nagios_plugin_dir}/check_backupninja_duplicity.py"
}
sudo::spec {'nrpe_check_backupninja_duplicity':
ensure => present,
users => 'nagios',
hosts => 'ALL',
commands => "sudo {::nagios::nrpe::nagios_plugin_dir}/check_backupninja_duplicity.py";
}
nagios::service { "Backupninja Duplicity $::fqdn":
......@@ -34,4 +40,6 @@ class backupninja::nagios_plugin::duplicity {
# recheck every hour
retry_check_interval => '60',
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment