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
"CRITICAL - Socket timeout" status for check_http
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: "CRITICAL - Socket timeout" status for check_http
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:
Regards,
Benjamin
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
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: "CRITICAL - Socket timeout" status for check_http
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
[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
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
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: "CRITICAL - Socket timeout" status for check_http
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
Locking threadsrivemp1 wrote:Got it connection was not happening from Nagios server. It got resolved.you can close the ticket.