aboutsummaryrefslogtreecommitdiff
path: root/contrib/aix/check_queue
diff options
context:
space:
mode:
authorGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2013-09-02 13:16:24 +0200
committerGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2013-09-02 13:16:24 +0200
commitb15adb7762b6caaecaa83637abfcf5fdb4802092 (patch)
tree64eddbe2aa1a7f98a140be0f7973f05d7a781ae0 /contrib/aix/check_queue
parentc4d5882b9e1d07c7b61091062b7d085fa5f00284 (diff)
downloadmonitoring-plugins-b15adb7762b6caaecaa83637abfcf5fdb4802092.tar.gz
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.
Diffstat (limited to 'contrib/aix/check_queue')
-rw-r--r--contrib/aix/check_queue67
1 files changed, 0 insertions, 67 deletions
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