Page 1 of 1

HTTP CRITICAL - Unable to open TCP socket

Posted: Thu Jun 09, 2011 10:52 am
by uofcmissouri
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
32bit
Manual Install of XI


My ultimate goal is to set up a certificate check for a url. The problem lies in that the server the page is being ran on is not on my network.
The certificate is muleaccounts.ucmo.edu
The url that hosts this certificate is https://muleaccounts.ucmo.edu/C20040_tsa/web/login.jsp

The IP address of the site does not accept ICMP, neither does the root muleaccounts.ucmo.edu. I have been unable to find a host check pattern that does not return:
Name or service not known
HTTP CRITICAL - Unable to open TCP socket

I have been working with versions of the following command:
check_http -H muleaccounts.ucmo.edu -u https://muleaccounts.ucmo.edu/C20040_tsa/web/login.jsp
I have also tried using --ssl and -p 443 options.

Can anyone help me with this? Or point me to a different check command that would work better?

Thanks

Re: HTTP CRITICAL - Unable to open TCP socket

Posted: Thu Jun 09, 2011 11:56 am
by nscott
Go into your /usr/local/nagios/libexec/ and try:

./check_http -H 'muleaccounts.ucmo.edu' -u '/C20040_tsa/web/login.jsp' -S

That should return what you want. Then thats the command you want. Let us know how it goes.

Re: HTTP CRITICAL - Unable to open TCP socket

Posted: Thu Jun 09, 2011 12:12 pm
by tonyyarusso

Code: Select all

[root@demo libexec]# ./check_http -H muleaccounts.ucmo.edu -u /C20040_tsa/web/login.jsp --ssl -t 30 -C 30
OK - Certificate will expire on 08/01/2011 23:59.

Re: HTTP CRITICAL - Unable to open TCP socket

Posted: Thu Jun 09, 2011 1:58 pm
by uofcmissouri
I was so close! Thank you for the help!!

Re: HTTP CRITICAL - Unable to open TCP socket

Posted: Thu Jun 09, 2011 2:11 pm
by tonyyarusso
No problem - let us know if you need anything else!