logo       

SUMMARY: Checking remote inet daemons: msg#00155

os.solaris.managers.summaries

Subject: SUMMARY: Checking remote inet daemons

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise