13

need help with a process monitoring script

view full story
linux-howto

http://www.unix.com – GM everyone, I have this script that goes to multiple servers and monitor a certain process and send the output to a file on servers1, the script looks like this Code: exec < server.list while read SERVER do     ssh $SERVER "ps -ef | grep process_name" >> /tmp/report done can someone help ad a line to where if on these servers are down to show it in my /tmp/report, regards ---------- Post updated at 08:04 AM ---------- Previous update was at 07:50 AM ---------- sorry, typo, I meant if one of these servers are down to show it in my /tmp/report, thx (HowTos)