Rsync for collectd
Sapan Bhatia [Fri, 8 Nov 2013 01:50:27 +0000 (20:50 -0500)]
collectd-rsync.py [new file with mode: 0644]

diff --git a/collectd-rsync.py b/collectd-rsync.py
new file mode 100644 (file)
index 0000000..4b0f8d6
--- /dev/null
@@ -0,0 +1,10 @@
+---
+- hosts: princeton-vicci
+  user: root
+
+  tasks:
+       - name: disable lsyncd
+      service: name=lsyncd state=stopped enabled=no
+
+    - name: rsync collectd data
+         cron: name="run rrdagg" minute=*/5 job="rsync -e \"/usr/bin/ssh -i /etc/bibmon -o StrictHostKeyChecking=no\" -r -v /usr/var/lib/collectd/rrd/ root@sabertooth.cs.princeton.edu:/usr/var/lib/collectd/rrd/ 2>&1 >> /var/log/collectd-rsync.log"