Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 .

share|improve this question
1  
The your question is meaningless and unanswerable. What counts as "additional" varies not only from Linux distribution to Linux distribution but also according to system administrator taste, depending from what packages xe might have chosen to install. –  JdeBP Jun 22 '11 at 15:23
    
I am using RHEL 5 distro, i mean i can just use basic linux commands –  vnix27 Jun 23 '11 at 3:35
    
Do you have inotify-tools installed ? Most linux distros already have support for inotify. Every process that starts let it's PID in /var/run/<something>.pid. Inotify tools has a small tool called inotifywatch that can monitor a directory for changes in the contents and alert through email –  Feiticeir0 Jun 29 '11 at 20:54
    
If you can't install anything, then I guess you have to write something yourself or use an external machine to monitor it... –  CrackerJack9 Nov 9 '11 at 4:29

1 Answer 1

you can use monit

http://mmonit.com/monit/

share|improve this answer
    
As i mentioned , i can't install any additional tool –  vnix27 Jun 22 '11 at 12:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.