not sure exactly how ps runs on suse, but process 3618...java is probably tomcat.
you'll have to check the return status of the tomcat status command; this should do it and it should return 0: tomcat status; echo $?
so what happens when you try telnet localhost 110? what about zmprov gs mail.yellodot.co.za | grep -i pop |