You could do a simple script that ping to google DNS (8.8.8.8) and that when this ping fails a message by mailutils.
Unaweza kufanya hati rahisi kwamba ping kwa google DNS (8.8.8.8) na kwamba wakati ping hii inashindwa ujumbe kwa mailutils.