4

script to monitor different processes on different Unix servers

view full story
linux-howto

http://www.unix.com – GM, Can you pls help how to write a script to monitor different processes on different unix servers and send the output to a /tmp/report file, earlier my boss asked me to write a script to monitor just one process running on different servers and send the output to a file so I wrote this exec < server.list while read SERVER; do ssh $SERVER "ps -ef | grep process_name" >> /tmp/report done and now he wants to monitor different processes on different servers using ssh and send the output to /tmp/report, scripting is new to me so I am stuck, I appreciate your help. (HowTos)