3 #=========================================================================
4 # Kerberos Ticket Checker
6 # This script is handy if you allow kerberos tickets to expire
7 # on your nodes. The script will simply warn you when a node has
8 # kerberos tickets expiring on the current date. This will allow to
9 # re-initialize the tickets if you wish to do so.
11 # Nothing fancy here, all Nagios will show is the number of tickets
12 # that are going to (or already have) expired.
16 # We made no provisions for the weekend. If tickets expire on the
17 # weekend and nobody is around, you won't see a warning on the
18 # Nagios console because we look for expired on the current day
19 # only. It's a good idea to have this warning emailed to the
20 # appropriate admin and if there is something critical that relies
21 # on Kerberos, you might want to send a page.
26 # Email: therocker@pawprints.2y.net
28 #=========================================================================
30 TMPFILE
=/tmp
/kerbtmp.hndl
33 rsh $1 -l root
/usr
/lpp
/ssp
/kerberos
/bin
/klist |
tr -s ' ' | cut
-d' ' -f4,5,6 |
grep -e "$DATE" > $TMPFILE
39 LINES
=`wc -l /tmp/kerbtmp.hndl | cut -c7-8`
40 echo "Kerberos Tickets set to expire --> \c"
48 echo "Kerberos Tickets are valid"