#!/bin/sh
#
#

this_host=`hostname`

remote_host=lincroft

[ "$#" == "1" ] && remote_host=$1


if [ "$this_host" == "$remote_host" ]
then
	echo "check_remote $remote_host is the host itself"
	exit 0
fi

echo check_remote $remote_host

# try ssh
ssh $remote_host pwd > /dev/null
if [ "$?" != "0" ]
then
	$HOME/bin/crm_alarm 2 "ssh $remote_host failed"
fi

exit 0

		
