I have a requirement to raise alert when a particular process(suppose abc) start or stop. One of idea is to write a script that monitor process , Can you suggest any better idea. I can't install any additional tools or softwares .
It really depends on how this process is started or stopped. If the process is run from a startup script, you could have it send email from the script when either happens.
You could also run cron job that checks every X amount of minutes to see if the process is running, then send email.
There are many different ways to accomplish this depending on your situation and what you are trying to monitor the process for.
you can use monit
http://mmonit.com/monit/
It really depends on how this process is started or stopped. If the process is run from a startup script, you could have it send email from the script when either happens.
You could also run cron job that checks every X amount of minutes to see if the process is running, then send email.
There are many different ways to accomplish this depending on your situation and what you are trying to monitor the process for.