#!/bin/sh MEDIUM=3 HIGH=5 MESSAGE=/tmp/p4count$$ CNT=`ps ax | grep p4d | grep -v grep | awk '{print $1}' | wc -l` if [ $CNT -gt $MEDIUM ] then echo "ps reports $CNT p4d's at <"`date`">" > $MESSAGE echo "p4 monitor show -al:" >> $MESSAGE p4 monitor show -al >> $MESSAGE if [ $CNT -gt $HIGH ] then mail -s "p4d count warning" smoon@smtp.perforce.com < $MESSAGE else mail -s "p4d count alert" smoon@smtp.perforce.com < $MESSAGE fi /bin/rm -f $MESSAGE fi
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 8645 | Stephen Moon | removing not up-to-date scripts | ||
#1 | 6465 | Stephen Moon | perl, python, and sh files uploaded to the public depot |