aboutsummaryrefslogtreecommitdiff
path: root/contrib/aix
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
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')
-rw-r--r--contrib/aix/check_failed48
-rw-r--r--contrib/aix/check_io69
-rw-r--r--contrib/aix/check_kerberos49
-rw-r--r--contrib/aix/check_queue67
-rw-r--r--contrib/aix/pg_stat45
5 files changed, 0 insertions, 278 deletions
diff --git a/contrib/aix/check_failed b/contrib/aix/check_failed
deleted file mode 100644
index 50cdf7e1..00000000
--- a/contrib/aix/check_failed
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/perl
-#======================
-# Created May 25, 2000
-#======================
-
-# This scripts is for checking for failed root login attempts on
-# any machine running AIX which has a failedlogin file in /etc/security
-# The purpose is to thwart (good word) any unauthorised people from
-# even trying to log in as root. This plugin has been developed for Nagios
-# running on AIX.
-# Lonny Selinger SpEnTBoY lonny@abyss.za.org
-# May
-
-
-my $server = $ARGV[0];
-
-if (!$ARGV[0]) {
- print "You must specify a server to check\n";
- print "usage: ./check_failed <Server Name>\n";
- exit (-1);
- } else {
- open (DATE, "/bin/date '+%b %d' |");
- while (<DATE>) {
- $dline = $_;
- @dresults = $dline;
- chop $dresults[0];
- }
- open (SULOG, "rsh $server -l root who /etc/security/failedlogin | grep root |");
- while (<SULOG>) {
- $line = $_;
- @results = split (/\s+/,$line);
- if ($line =~ /^root/) {
- if (join(' ', @results[2,3]) eq $dresults[0]) {
- print "FAILED root login on $dresults[0], node: $ARGV[0] from $results[5]\n";
- exit(2);
- }
- }
- }
-}
-if (join(' ', @results[2,3]) ne $dresults[0]) {
- print "No Failed Root Logins on This Node\n";
- exit(0);
-}
-exit(0);
-close(SULOG);
-close(DATE);
-
-
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
diff --git a/contrib/aix/check_kerberos b/contrib/aix/check_kerberos
deleted file mode 100644
index 443ab109..00000000
--- a/contrib/aix/check_kerberos
+++ /dev/null
@@ -1,49 +0,0 @@
-#! /bin/sh
-
-#=========================================================================
-# Kerberos Ticket Checker
-#
-# This script is handy if you allow kerberos tickets to expire
-# on your nodes. The script will simply warn you when a node has
-# kerberos tickets expiring on the current date. This will allow to
-# re-initialize the tickets if you wish to do so.
-#
-# Nothing fancy here, all Nagios will show is the number of tickets
-# that are going to (or already have) expired.
-#
-# An item of note:
-#
-# We made no provisions for the weekend. If tickets expire on the
-# weekend and nobody is around, you won't see a warning on the
-# Nagios console because we look for expired on the current day
-# only. It's a good idea to have this warning emailed to the
-# appropriate admin and if there is something critical that relies
-# on Kerberos, you might want to send a page.
-#
-# Authors: TheRocker
-# SpEnTBoY
-#
-# Email: therocker@pawprints.2y.net
-# lonny@abyss.za.org
-#=========================================================================
-
-TMPFILE=/tmp/kerbtmp.hndl
-DATE=`date +%b' '%d`
-
-rsh $1 -l root /usr/lpp/ssp/kerberos/bin/klist | tr -s ' ' | cut -d' ' -f4,5,6 | grep -e "$DATE" > $TMPFILE
-
-
-if [ -s $TMPFILE ]
-then
-
- LINES=`wc -l /tmp/kerbtmp.hndl | cut -c7-8`
- echo "Kerberos Tickets set to expire --> \c"
- echo "$LINES \c"
- echo "\n"
-
- rm -f $TMPFILE
- exit 1
-
-fi
- echo "Kerberos Tickets are valid"
- exit 0
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
diff --git a/contrib/aix/pg_stat b/contrib/aix/pg_stat
deleted file mode 100644
index e0603ec4..00000000
--- a/contrib/aix/pg_stat
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/ksh
-
-#==============================================================================
-# Script was originally created to collect stats and dump then to a log file
-# every five minutes. But we like this better (the log file thing is still
-# good if you want to track availability).
-#
-# Authors: SpEnTBoY
-# TheRocker
-#
-# Email: lonny@abyss.za.org
-# therocker@pawprints.2y.net
-#==============================================================================
-
-#=========================================================================================
-#
-# The best way to do this is to use Kerberos but we use rsh here because our monitoring
-# workstation doesn't have Kerberos installed. In order for this to work, the remote
-# host ($1) must have a .rhosts file that contains a line like:
-#
-# monitorhost nagiosuser
-#
-#=========================================================================================
-
-PAGING2=`rsh $1 -l root lsps -a -s | grep -v Paging | tr -s ' '| cut -d' ' -f3 | cut -d'%' -f1`
-
-
-if [ "$PAGING2" -gt "35" ] && [ "$PAGING2" -lt "50" ]
-then
- echo "Paging Space is over 35% ("$PAGING2")%"
-exit 1
-fi
-
-if [ "$PAGING2" -gt "49" ]
-then
- echo "WARNING! Paging Space is over 50% ("$PAGING2")%"
-exit 2
-fi
-
-if [ "$PAGING2" -lt "34" ]
-then
- echo "Paging Space is less than 34% ("$PAGING2")%"
-exit 0
-fi
-