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_kerberos | 49 ---------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 contrib/aix/check_kerberos (limited to 'contrib/aix/check_kerberos') 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 -- cgit v1.2.3-74-g34f1