Friday 12 September 2008

work work ...

Work's been busy. Checking status also evening/night and morning.

Scripting satyup/monitoring scripts and doing manual monitoring of site to keep data coming.
A couple of apps are regularily hanging or crashing.
1 because of using too much memory
2 because of a couple of bugs (hang+crash).

For now scripting fun monitors things, restarts anything (including monitor scripts! if they die (happens when all memory used on box)). Hackery jiggery pokery.

And raid where all user accounts had something going on - was SLOOOOOW for 2 days.
Everyone moved to working on local disk which was full faster than two blinks of an ethernet-status-led.


STATFILEINFO2=$STATFILEINFO1
STATFILEINFO1=$STATFILEINFO
STATFILEINFO=`ls -al status.txt`
if [[ "$STATFILEINFO" == "$STATFILEINFO1" ]] ; then
if [[ -z $STATFILEALERT ]] ; then
date
echo "WARNING: status.txt file no change STATFILEINFO=$STATFILEINFO"
fi
STATFILEALERT=$(date)
else
STATFILECHANGING=$(date)
if [[ -n $STATFILEALERT ]] ; then
date
echo "CLEAR WARNING: status.txt file no change STATFILEINFO=$STATFILEINFO"
fi
STATFILEALERT=

fi

No comments: