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_queue | 67 ------------------------------------------------- 1 file changed, 67 deletions(-) delete mode 100644 contrib/aix/check_queue (limited to 'contrib/aix/check_queue') diff --git a/contrib/aix/check_queue b/contrib/aix/check_queue deleted file mode 100644 index 9f709c54..00000000 --- a/contrib/aix/check_queue +++ /dev/null @@ -1,67 +0,0 @@ -#! /bin/sh - -#=============================================================== -# Print Queue Checker -# -# The print queue checker simply looks for an occurance of a -# DOWN queue. A note of warning, if you use remote queues in -# AIX to redirect print jobs from the AIX queue to an NT print -# server that print through DLC rather than IP, it will be very -# s - l - o - w. But it will work. -# -# Author: TheRocker -# Email: therocker@pawprints.2y.net -#=============================================================== - -TMPFILE=/tmp/qtmp.hndl -TMPTOO=/tmp/qtwo.hndl - -#======================================================================= -# -# This script will also work on AIX 4.2.1 BUT you have to change -# the following line. AIX 4.2.1 does not support the -W option -# with lpstat. For AIX 4.2.1 just remove the -W option and it should -# work just fine. -# -#======================================================================= - -`rsh $1 -l root lpstat -W | grep -e "DOWN" | tr -s ' ' | cut -d' ' -f1,3 > /tmp/qtmp.hndl 2> /tmp/q_err` - -if [ -s $TMPFILE ] -then - -#======================================================= -# -# If you've seen the other AIX scripts I wrote you may -# notice that I use this bit of code a lot. Well it -# works and appears to be all purpose. -# -#======================================================= - - LINES=`wc -l /tmp/qtmp.hndl | cut -c8` - LINESCTL=`wc -l /tmp/qtmp.hndl | cut -c8` - - echo "Print Queue DOWN --> \c" - - while [ $LINESCTL != 0 ] - do - - cat $TMPFILE | tail -$LINESCTL > $TMPTOO - cat $TMPTOO > $TMPFILE - LINESCTL=$(( $LINESCTL -1 )) - LINES=$(( $LINES -1 )) - DATA=`head -1 /tmp/qtmp.hndl` - echo "( $DATA ) \c" - - - done - - echo "\n" - - rm -f $TMPFILE - rm -f $TMPTOO - exit 2 - -fi - echo "Print Queues Running... OK" - exit 0 -- cgit v1.2.3-74-g34f1