Simple status monitor for CSC systems
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
csc-status/irc

15 lines
271 B

#!/bin/sh
script=`dirname $0`/run
D0=`$script`
R=$?
if [ $R -ne 0 ]; then
sleep 30
D="mimcpher: CSC System Failure: `$script`"
if [ $? -ne 0 ]; then
echo $D
echo $D | $HOME/bin/ircpipe irc.freenode.net \#csc-syscom
else
echo "Intermittent failure: $D0"
fi
fi