You may be interested in nagios check_whatever plugins. They are command line utilities and return output on stdout. For instance, the check_http plugin returns:
Code:
# check_http -H intranet
HTTP OK HTTP/1.1 200 OK - 518 bytes in 0.003 seconds |time=0.002892s;;;0.000000 size=518B;;;0
check_http has cmd line options that can be used to test a specific page or returned value.
There are plugins for services like oracle, mail, ftp, ldap, postfix, smtp, etc....
There is also, check_nrpe, which allows you to check for a specific service on a server even this service is not networked-based. Basically you create a script or program in any language that check for the status of the service and return the status on stdout. Then you configure nrpe to call this program when check_nrpe is run from a remote host.
You don't need to install and setup the whole nagios if you are interested in having basic checking on a terminal.