From 5b37f0dd4a60cc987ebc38fd7433fb987c6b1771 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Wed, 17 Sep 2003 19:05:49 +0000 Subject: Plugins obsolete from main check_disk and check_ping git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@738 f882894a-f735-0410-b71e-b25c423dba1c --- contrib/aix/check_dsk | 62 --------------------------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 contrib/aix/check_dsk (limited to 'contrib/aix/check_dsk') diff --git a/contrib/aix/check_dsk b/contrib/aix/check_dsk deleted file mode 100644 index c8ddb3f8..00000000 --- a/contrib/aix/check_dsk +++ /dev/null @@ -1,62 +0,0 @@ -#! /bin/sh - -#====================================================================== -# Disk Checker utility -# -# Simple little script that checks the status of all partitions -# on a node's hard disks. It will produce a warning alert and list -# the offending filesystems in nagios. -# -# Authors: SpEnTBoY -# TheRocker -# -# Email: lonny@abyss.za.org -# therocker@pawprints.2y.net -#===================================================================== - -NUMBER=`rsh $1 -l root df -kP | grep -v ":" | grep -E "9[0-9]%" | tr -s ' '| cut -d' ' -f5 | cut -c1-2 | line` -TMPFILE=/tmp/tmp.hndl -TMPTOO=/tmp/two.hndl - -if [ "$NUMBER" -gt 90 ] -then - - `rsh $1 -l root df -kP |grep -v ":" | grep -E "9[0-9]%" | tr -s ' '| cut -d' ' -f6,5 >> $TMPFILE` - - LINES=`wc -l /tmp/tmp.hndl | cut -c8` - LINESCTL=`wc -l /tmp/tmp.hndl | cut -c8 ` - echo "Filesystems over 90% --> \c" - -#====================================================================== -# You'll see this one in a few our shell scripts. Just chcecking for -# multiple occurances of the warnign condition. We gotta list 'em all -#====================================================================== - - while [ $LINESCTL != 0 ] - do - - cat $TMPFILE | tail -$LINESCTL > $TMPTOO - cat $TMPTOO > $TMPFILE - LINESCTL=$(( $LINESCTL -1 )) - LINES=$(( $LINES -1 )) - DATA=`head -1 /tmp/tmp.hndl` - echo "( $DATA ) \c" - - - done - echo "\n" - -#=============================================================== -# Clean up all those nasty tmp files that suck up valuable -# disk realestate. -#=============================================================== - - rm -f $TMPFILE - rm -f $TMPTOO - exit 1 - -else - - echo "No Filesystems over 90%... OK" - exit 0 -fi -- cgit v1.2.3-74-g34f1