Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Background : It's a common question as we can search at google "ping works but http does not"

ping is not a reliable test of network connectivity.

ping working just means enough of the IP stack is up to process ICMP Echo requests (that's not a huge portion of the system compared to what's required for SSH and web servers). We could have had what I call a "partial panic" (Kernel blew up, but the IP code kept running), run out of RAM, or our SSH/HTTPd processes could have fallen over for unspecified reasons.

Resources

My Question : Any command line tool for ping HTTP?

share|improve this question

closed as not constructive by Ward, John Gardeniers, Magellan, mdpc, sysadmin1138 Nov 26 '12 at 22:30

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

3 Answers

up vote 6 down vote accepted

There's plenty of command line tools that are capable of being a command line HTTP or simple TCP client. netcat and telnet (and yes, nmap) can tell you if the TCP port is responding, and curl or wget can handle attempting a full HTTP request.

But why not get a real monitoring solution in place instead, if you're having problems with the service failing?

share|improve this answer
    
Would you prefer any real monitoring solution? Please suggest me. –  Md. Mahbubur R. Aaman Nov 26 '12 at 6:31
    
+1 for Nice Answer. :) –  Md. Mahbubur R. Aaman Nov 26 '12 at 6:32
1  
@MahbuburRAaman There's some good information on monitoring solutions here and here. –  Shane Madden Nov 26 '12 at 6:34
    
Shane Madden, Thanks a lot. :) –  Md. Mahbubur R. Aaman Nov 26 '12 at 6:37
    
Shane Madden, I have improved my question as your answer. –  Md. Mahbubur R. Aaman Nov 26 '12 at 6:47
add comment
curl -X HEAD http://ipaddress/

is the closest to a ping, in that it is the minimum check that the server is responding to HTTP requests.

Any monitoring system worth its salt has this functionality built in. Nagios is free IIRC

share|improve this answer
add comment

There is a small program to test performances of a remote host using TCP packets it's named echoping. I think that what are you looking for

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.