Check via crontab if a certain webserver is responding:
wget -o output.txt --no-check-certificate https://urlofwebserver/test if grep -q "404\|503" "output.txt" ; then echo `date` "M-System not avaiable" >> status.log else echo `date` "M-System ok" >> status.log fi