From e4415ed965fde2750d6f2faa1d71d57bdad13125 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 6 Dec 2012 10:16:46 +0000 Subject: Package reorganization: Created a new package custodian-bytemark which installs a queue-monitoring cronjob. --- bytemark/bin/custodian-queue-monitor | 7 +++++++ bytemark/cron/custodian-queue-monitor | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100755 bytemark/bin/custodian-queue-monitor create mode 100644 bytemark/cron/custodian-queue-monitor (limited to 'bytemark') diff --git a/bytemark/bin/custodian-queue-monitor b/bytemark/bin/custodian-queue-monitor new file mode 100755 index 0000000..91a0364 --- /dev/null +++ b/bytemark/bin/custodian-queue-monitor @@ -0,0 +1,7 @@ +#!/bin/sh + +if ( custodian-queue --monitor ) ; then + echo "All OK" +else + echo "Too large a queue" +fi diff --git a/bytemark/cron/custodian-queue-monitor b/bytemark/cron/custodian-queue-monitor new file mode 100644 index 0000000..db83ec8 --- /dev/null +++ b/bytemark/cron/custodian-queue-monitor @@ -0,0 +1,6 @@ +# +# Alert if our custodian queue has too many entries in it. +# +# That implies the queue isn't emptying because of either a bug or too many tests +# +*/2 09-18 * * 1-5 nobody /usr/bin/custodian-queue-monitor -- cgit v1.2.1