The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 06-22-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
Well, a few members probably do, but you may have to make slight or even major changes in order to get it working at your site. I suggest that you write a script of your own customised to your setup. You can use rsh to connect to connect between servers though ssh is probably a better choice.
Something like:

Code:
rsh/ssh -l username hostname "ps -ef"|grep process_being_monitored

or

Code:
rsh/ssh -l username hostname "ps -ef" > /tmp/filename #on local node
grep process1 /tmp/filename
grep process2 /tmp/filename # and so on

Remember to setup password-less rsh or ssh access between any two users (not root!) on the two hosts.

Cheers.