if [ ! "`ps -ef | grep sbin/monit`" = "" ] ; 
then 
   if [ ! "`DCMOMS -g | grep monit.log`" = "" ] ; then exit 1 ; fi
fi

if [ ! "`ps -ef | grep apcupsd.conf`" = "" ] ; 
then 
   if [ ! "`upsOMS -g | grep apcupsd.events`" = "" ] ; then 
	exit 1 ; fi
fi

exit 0

