#! /bin/sh
find /usr/local/bcnu/data/hosts -type f -print | xargs cut -d: -f3,7 | tee /tmp/bcstatus.out
if grep "error" /tmp/bcstatus.out
	then
		echo "----------------------ERROR FOUND--------------------"
	elif grep "warning" /tmp/bcstatus.out
		then
			echo "----------------------WARNING FOUND------------------"
	else
		echo "----------------------ALL SYSTEMS OK-----------------"
fi
