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
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
---------- Post updated at 08:24 AM ---------- Previous update was at 08:04 AM ----------
Usage
- value
Example Output
- list item 1