HTTP CRITICAL - Unable to open TCP socket

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
uofcmissouri
Posts: 20
Joined: Wed Apr 07, 2010 3:13 pm

HTTP CRITICAL - Unable to open TCP socket

Post 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
Last edited by uofcmissouri on Thu Jun 09, 2011 1:59 pm, edited 1 time in total.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: HTTP CRITICAL - Unable to open TCP socket

Post 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.
Nicholas Scott
Former Nagios employee
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: HTTP CRITICAL - Unable to open TCP socket

Post 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.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
uofcmissouri
Posts: 20
Joined: Wed Apr 07, 2010 3:13 pm

Re: HTTP CRITICAL - Unable to open TCP socket

Post by uofcmissouri »

I was so close! Thank you for the help!!
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: HTTP CRITICAL - Unable to open TCP socket

Post by tonyyarusso »

No problem - let us know if you need anything else!
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
Locked