diff options
Diffstat (limited to 'plugins/check_ntp_time.c')
-rw-r--r-- | plugins/check_ntp_time.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/check_ntp_time.c b/plugins/check_ntp_time.c index 86530fe..bbcaa0b 100644 --- a/plugins/check_ntp_time.c +++ b/plugins/check_ntp_time.c | |||
@@ -344,7 +344,11 @@ double offset_request(const char *host, int *status){ | |||
344 | die(STATE_UNKNOWN, "can not create new socket"); | 344 | die(STATE_UNKNOWN, "can not create new socket"); |
345 | } | 345 | } |
346 | if(connect(socklist[i], ai_tmp->ai_addr, ai_tmp->ai_addrlen)){ | 346 | if(connect(socklist[i], ai_tmp->ai_addr, ai_tmp->ai_addrlen)){ |
347 | die(STATE_UNKNOWN, "can't create socket connection"); | 347 | /* don't die here, because it is enough if there is one server |
348 | answering in time. This also would break for dual ipv4/6 stacked | ||
349 | ntp servers when the client only supports on of them. | ||
350 | */ | ||
351 | DBG(printf("can't create socket connection on peer %i: %s\n", i, strerror(errno))); | ||
348 | } else { | 352 | } else { |
349 | ufds[i].fd=socklist[i]; | 353 | ufds[i].fd=socklist[i]; |
350 | ufds[i].events=POLLIN; | 354 | ufds[i].events=POLLIN; |