Create prod_server_hbeat.py

This script requires Python 2.7 or greater, as it uses the subproces.check_output, which is availablen in Python >= 2.7
We therefore use a local install of Python2.7 & we use the python2.7 binary to execute this script using cron.
It is run using crotab, every 30 minutes, using the following entry in user backup01's crontab, on the machine 10.22.5.46, using crontab -e
*/30 * * * * cd /home/backup01/monitoring && localpy273/bin/python2.7 prod_server_hbeat.py 2>> /home/backup01/monitoring/cron_monitoring.log
Path to this script on 10.22.5.46
/home/backup01/monitoring/prod_server_hbeat.py
It logs it's output in (appends to the following file, after every 30 minutes) :
/home/backup01/monitoring/monitor.log
This script runs on 10.22.5.46, on the main production server inside the iit n/w, every 30 minutes.
   It performs 2 main tasks :
   a. It runs the command 'wanrouter status | grep Disconnected'
      If the above command returns 0, i.e. currently wanrouter is Disconnected,it sends an email to the admins
   b. It also runs the command 'wanrouter status | grep Connected'
      If wanrouter is neither connected or disconnected, it send an email to the admins