From b15adb7762b6caaecaa83637abfcf5fdb4802092 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 2 Sep 2013 13:16:24 +0200 Subject: Remove "contrib" plugins These days, sites such as "Nagios Exchange" are a much better place for publishing plugins not maintained by the Plugins Development Team. --- contrib/aix/check_io | 69 ---------------------------------------------------- 1 file changed, 69 deletions(-) delete mode 100644 contrib/aix/check_io (limited to 'contrib/aix/check_io') diff --git a/contrib/aix/check_io b/contrib/aix/check_io deleted file mode 100644 index 58b25f6d..00000000 --- a/contrib/aix/check_io +++ /dev/null @@ -1,69 +0,0 @@ -#! /bin/sh - -#================================================================= -# -# I/O Checker (KBPS) -# This Script uses iostat to monitor disk io -# Useful for notifications of disk thrashing. -# -# Authors: TheRocker -# SpEnTBoY -# -# Email: therocker@pawprints.2y.net -# lonny@abyss.za.org -# -#================================================================ - -NUMBER1=`rsh $1 -l root iostat -d | grep -e "hdisk" | tr -s ' ' | cut -d' ' -f2 | sort -2 -r | cut -c1 | line` -NUMBER2=`rsh $1 -l root iostat -d | grep -e "hdisk" | tr -s ' ' | cut -d' ' -f2 | sort -2 -r | cut -c2 | line` -TMPFILE=/tmp/iotest.hndl -TMPTOO=/tmp/iotwo.hndl - -#=========================================================== -# -# We do an evaluation on $NUMBER1 and $NUMBER2 to see if -# disk io is exceeding 40%. -# -#=========================================================== - -if [ "$NUMBER1" -gt 4 ] && [ "$NUMBER2" -gt 0 ] -then - - `rsh $1 -l root iostat -d | grep -v cd0 | tr -s ' '| cut -d' ' -f1,2 | grep -e "4[0-9]." >> $TMPFILE` - -#==================================================================== -# -# Of course, there may be more than one hard disk on the node -# so we use this bit of code to report on more than one instance -# of excessive disk IO. -# -#==================================================================== - - LINES=`wc -l /tmp/iotest.hndl | cut -c8` - LINESCTL=`wc -l /tmp/iotest.hndl | cut -c8 ` - echo "WARNING!!! Disk I/O Exceeding 40% on --> \c" - - while [ $LINESCTL != 0 ] - do - - cat $TMPFILE | tail -$LINESCTL > $TMPTOO - cat $TMPTOO > $TMPFILE - LINESCTL=$(( $LINESCTL -1 )) - LINES=$(( $LINES -1 )) - DATA=`head -1 /tmp/iotest.hndl` - echo "( $DATA ) " - - - done - echo "\n" - - rm -f $TMPFILE - rm -f $TMPTOO - exit 1 - -else - - print "No Disk I/O Exceeding 40%...OK" - exit 0 - -fi -- cgit v1.2.3-74-g34f1