Monitor pinging multiple targets using the below script (sends 4 pings to each target, one after the other). read the comments for more details (how the output looks like etc.)

Make the script like this

Make sure the script has these contents

Run the script like this

Or nohupped like so (output diverted to a different file other than nohup.out):

Example output:

Notice that each line has the date, and the result of the ping. y for 100% succcess, n for 0 % success, and if you see an s that means 1,2 or 3 pings got thru.

The end.

Leave a Reply

Your email address will not be published. Required fields are marked *