aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorAntoine Beaupre <anarcat@koumbit.org>2009-01-13 16:08:28 -0500
committerAntoine Beaupre <anarcat@koumbit.org>2009-01-13 16:08:28 -0500
commit55c60873a76c0e95737785a5d78516f9beef7f33 (patch)
tree273ab3285a57c37f3eb0c4962fd1d2e7760122d1 /manifests
parent7a2b7798c8680499ddcb7bd57433d2a3f981e924 (diff)
downloadpuppet-backupninja-55c60873a76c0e95737785a5d78516f9beef7f33.tar.gz
puppet-backupninja-55c60873a76c0e95737785a5d78516f9beef7f33.tar.bz2
rewrite nagios check scripts in perl
Diffstat (limited to 'manifests')
-rw-r--r--manifests/server.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index 4284ffa..9b08b22 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -25,12 +25,12 @@ class backupninja::server {
file { "/usr/local/bin/checkbackups":
ensure => "present",
- content => template("backupninja/checkbackups.sh"),
+ source => "puppet://$servername/backupninja/checkbackups.pl",
mode => 0755, owner => root, group => root,
}
cron { checkbackups:
- command => "/usr/local/bin/checkbackups.sh | /usr/sbin/send_nsca -H nagios.koumbit.net -c /etc/send_nsca.cfg",
+ command => "/usr/local/bin/checkbackups -d $real_backupdir | /usr/sbin/send_nsca -H nagios.koumbit.net -c /etc/send_nsca.cfg | grep -v 'sent to host successfully'",
user => "root",
hour => "8-23",
minute => 59,