HTTPS - Socket timeout after 10 seconds

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
Locked
sonico2015
Posts: 2
Joined: Thu Feb 04, 2016 7:13 pm

HTTPS - Socket timeout after 10 seconds

Post by sonico2015 »

Hi,

Daily I received this alarm:

[02-04-2016 16:59:25] SERVICE ALERT: sitecom;HTTPS;CRITICAL;HARD;3;CRITICAL - Socket timeout after 10 seconds
[02-04-2016 16:58:25] SERVICE ALERT: sitecom;HTTPS;CRITICAL;SOFT;2;CRITICAL - Socket timeout after 10 seconds
[02-04-2016 16:57:26] SERVICE ALERT: sitecom;HTTPS;CRITICAL;SOFT;1;CRITICAL - Socket timeout after 10 seconds

The service is monitoring HTTP & HTTPS a site that a certain time (always @ the same hour), appears and after of 15 minutes aprox. disappear.

I've been looking at forums a solution or fix for this issue, and only got the same commentary about the problem... increase the nrpe_check to -t to 20 or 30 seconds.
Obviously I did it, but without good results.

I've try also find a patron about the time when it is alarmed, but I couldn't find nothing backing up, or a overload the site, but nothing...

Really I don't know where can I find the problem.

Any ideas where to find a way to resolve this issue?

The server where the site is located has:

Mysql
php 5.4.26
apache 5.3.28
python 2.6

Changes did it:

Before:

# 'check_https' command definition
define command{
command_name check_https
command_line $USER1$/check_http -I $HOSTADDRESS$ -S
}

After #1:

# 'check_https' command definition
define command{
command_name check_https
command_line $USER1$/check_http -I $HOSTADDRESS$ -S -t 20
}
After #2:


# 'check_https' command definition
define command{
command_name check_https
command_line $USER1$/check_http -I $HOSTADDRESS$ -S -t 30
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: HTTPS - Socket timeout after 10 seconds

Post by rkennedy »

To clarify, when you say it "disappears" do you mean that the service check goes back to normal without issue?

Also, do you have control of the remote server or are you monitoring an external website? I wonder if it goes down for maintenance / backups once a day.
Former Nagios Employee
sonico2015
Posts: 2
Joined: Thu Feb 04, 2016 7:13 pm

Re: HTTPS - Socket timeout after 10 seconds

Post by sonico2015 »

I found something about a cron running at the same time that the alarm appear... I will continue investigating the issue...
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: HTTPS - Socket timeout after 10 seconds

Post by rkennedy »

Sounds good - let us know if you need any further assistance.
Former Nagios Employee
Locked