Page 1 of 1

"CRITICAL - Socket timeout" status for check_http

Posted: Wed Feb 17, 2021 2:44 am
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

Re: "CRITICAL - Socket timeout" status for check_http

Posted: Wed Feb 17, 2021 2:03 pm
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

Re: "CRITICAL - Socket timeout" status for check_http

Posted: Thu Feb 18, 2021 12:20 am
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

Re: "CRITICAL - Socket timeout" status for check_http

Posted: Thu Feb 18, 2021 3:27 pm
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

Re: "CRITICAL - Socket timeout" status for check_http

Posted: Fri Feb 19, 2021 12:03 am
by srivemp1
Got it connection was not happening from Nagios server. It got resolved.you can close the ticket.

Re: "CRITICAL - Socket timeout" status for check_http

Posted: Fri Feb 19, 2021 7:56 am
by scottwilkerson
srivemp1 wrote:Got it connection was not happening from Nagios server. It got resolved.you can close the ticket.
Locking thread