2 processes running with the same name

Hi,

I encounter this problem, i have 2 processes running with the same name in a server.
so how can i configure and differentiate each process in the check_procs.sh?
any1 able to help.?

Thanks.