9 Jun
2010
9 Jun
'10
9:01 p.m.
Tom,
For this test the hobbitserver is the client, so client/ext/somescript.sh is where the script is at. Sorry I completely missed that when looking at what you wrote!
So from client/etc/clientlaunch.cfg: [NA2CPU] ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg CMD $HOBBITCLIENTHOME/ext/na2.sh LOGFILE $HOBBITCLIENTHOME/logs/na2.log INTERVAL 2m
Script outputs same data format as yours
...
NA2CPU="$EGREP Busy $datafile | $AWK '{print $2}'"
if [ $NA2CPU -gt 78 ]
then
COLOR=red
MSG="na2 CPU load is high"
fi
$BB $BBDISP "status $MACHINE.$COLUMN $COLOR date
NA2CPU : ${NA2CPU} " ...