

nproc=1.
let nproc=2+0
echo nproc=$proc
outp=1.
xmlp=1.
let xmlold=0
send=0
sleep 30
nproc=`ps -ef | grep multimon | grep -v grep -c`
nfiles=`find * -mmin -1 -maxdepth 0 |grep moni -c`
echo Start multimon - $nproc processes, $nfiles DOMs
while [ $nproc -gt 0 ]
do
	nproc=`ps -ef | grep multimon | grep -v grep -c`
        nfiles=`find * -mmin -1 -maxdepth 0 |grep moni -c`
	let doms=$FAT_NDOMS+2
	if [ $nfiles -ne $doms ]; then
	        echo  missing files $nfiles  proc=$nproc
		find * -mmin +1 -maxdepth 0 | grep moni
		echo $me
	if [ $send -ne 1 ]; then
	    find * -mmin +1 -maxdepth 0 |grep moni | mail "$FAT_OPERATOR" -s "ERROR_multimon_$FAT_HUB_doms missing"
	    let send=1
	fi
	fi
	sleep 60
done
exit
