You can simply monitor your remote system hosted in some remote IDC. There may be many reasons for which system may out of the network. This simple script is useful to monitor your own small network at home or work.
1. chmod +x /path/to/your/bashscript.sh
run it by
-
./yourscriptname.sh
-
Install the monitorHost script as crontab using the editor:
$ crontab -e
30 * * * * /home/alok/bin/monitorHost
Save and close the file.