"CRITICAL - Socket timeout" status for check_http

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
srivemp1
Posts: 18
Joined: Thu Sep 19, 2019 7:25 am

"CRITICAL - Socket timeout" status for check_http

Post by srivemp1 »

Hi,

Recently we have changed server ip for hosts after ip change check_http for url monitoring is throwing error as below

[root@nagmonm101 libexec]# ./check_http -H daledhm101.os.s.net.ibm.com -S -u https://daledhm101.os.s.net.ibm.com:8051
CRITICAL - Socket timeout

[[email protected] ~]$ /usr/local/nagios/libexec/check_http -H daledhm101.os.s.net.ibm.com -u /logs -S -p 8051
CRITICAL - Socket timeout

But urls are working absolutely fine.

Any idea why exactly it is showing error
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: "CRITICAL - Socket timeout" status for check_http

Post by benjaminsmith »

Hi,

Please try running that check again directly from the CLI, but this time let's add the verbose (-v) and timeout (-t 60) option, and then post the full output to the thread. It maybe timing out or not connecting (the verbose option will provide more data).

For example:

Code: Select all

usr/local/nagios/libexec/check_http -H daledhm101.os.s.net.ibm.com -u /logs -S -p 8051 -v -t 60
Regards,
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
srivemp1
Posts: 18
Joined: Thu Sep 19, 2019 7:25 am

Re: "CRITICAL - Socket timeout" status for check_http

Post by srivemp1 »

I ran command it throwed same error

[root@nagmonm101 ~]# /usr/local/nagios/libexec/check_http -H daledhm101.os.s.net.ibm.com -u /logs -S -p 8051 -v -t 60
CRITICAL - Socket timeout
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: "CRITICAL - Socket timeout" status for check_http

Post by benjaminsmith »

Hi,

There must be something blocking the connection. Are you able to ping the address from the XI server?

Please run the following curl command against that URL and post the full output to the thread. Thanks, Benjamin

Code: Select all

curl -k -L -v https://example.com/test
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
srivemp1
Posts: 18
Joined: Thu Sep 19, 2019 7:25 am

Re: "CRITICAL - Socket timeout" status for check_http

Post by srivemp1 »

Got it connection was not happening from Nagios server. It got resolved.you can close the ticket.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: "CRITICAL - Socket timeout" status for check_http

Post by scottwilkerson »

srivemp1 wrote:Got it connection was not happening from Nagios server. It got resolved.you can close the ticket.
Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked