#! /bin/sh # !!! Make sure the user running this script is a member of the 'nagios' group # to be able to access /usr/nagios/libexec/ # check codespeak svnhotsync /usr/nagios/libexec/check_procs -a "/admin/bin/svn-sync-repo.py codespeak.net:" -c 2: 2>&1>/dev/null if [ $? -ne "0" ]; then echo "starting new svnhotsync for codespeak" /admin/bin/svnhotsync.py codespeak.net:/svn /mnt/backup/svn /etc/svnhotsync/hotsync fi