#!/bin/bash
# Insert a check to see if 192.168.0.205 is on this machine first,
# and if it is not - to then try to ping it.
if ping -c 1 192.168.0.200 >/dev/null;
   then echo "Everything is okay."
	sleep 3
	bash pingtest.sh
   else echo '===================='
	echo "Host server is down @ `date`"
        echo 'Stealing shared IP!'
        echo '===================='
        ifconfig venet0:1 192.168.0.205 netmask 255.255.255.0
	bash pingtest3.sh
fi

