#!/bin/bash #Simple script for 1 single host to be checked. Uses fping. #Childsplay. #Digital Ebola HOST=""; MAIL=""; MERCS=`fping $HOST`; if [ "$MERCS" = "$HOST is alive" ] ; then echo else echo "$HOST is down, please assist" |mail "$MAIL" fi