SUMMARY: Checking remote inet daemons

From: Ben Tshin (ben@foundmoney.com)
Date: Thu Jun 27 2002 - 09:39:41 EDT


Thanks to the many that responded with a solution.

I am now able to create a script that can check the status of a service.
Obviously this script can only check to see if a port (connected to a
particular service) is open.

##START SCRIPT##
#/bin/sh
telnet $HOST $PORT > /dev/null 2>&1 << END

clo
END

RETVAL=$?

if [ $RETVAL = 0 ]; then
   echo FAILED
else
   echo SUCCESS
fi
##END SCRIPT##

Ben
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:31 EDT