From 8e233f74d3e218de01003a88a4e34d681001f712 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 3 Sep 2014 11:37:35 +0200 Subject: Move files around --- nagios-check-raid-gdth | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100755 nagios-check-raid-gdth (limited to 'nagios-check-raid-gdth') diff --git a/nagios-check-raid-gdth b/nagios-check-raid-gdth deleted file mode 100755 index a57639d..0000000 --- a/nagios-check-raid-gdth +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -# really quick and dirty - -# my %ERRORS = ( OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => -1 ); - -if ! [ -e "/root/gdth-status-all-ok" ] ; then - echo "/root/gdth-status-all-ok not found." >&2 - exit -1 -fi -if ! [ -e "/proc/scsi/gdth/0" ] ; then - echo "/proc/scsi/gdth/0 not found." >&2 - exit -1 -fi -if diff /root/gdth-status-all-ok /proc/scsi/gdth/0 > /dev/null; then - echo "Raid status matches known-good copy." - exit 0 -else - echo "Raid status does NOT match known-good copy. RAID FAILED?" - exit 2 -fi -- cgit v1.2.3