diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_http.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index d13050a..c0c2b41 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -627,16 +627,21 @@ check_http (void) | |||
627 | pagesize += i; | 627 | pagesize += i; |
628 | } | 628 | } |
629 | 629 | ||
630 | if (i < 0) { | 630 | if (i < 0 && errno != ECONNRESET) { |
631 | #ifdef HAVE_SSL | 631 | #ifdef HAVE_SSL |
632 | sslerr=SSL_get_error(ssl, i); | 632 | if (use_ssl) { |
633 | if ( sslerr == SSL_ERROR_SSL ) { | 633 | sslerr=SSL_get_error(ssl, i); |
634 | terminate (STATE_WARNING, "Client Certificate Required\n"); | 634 | if ( sslerr == SSL_ERROR_SSL ) { |
635 | } else { | 635 | terminate (STATE_WARNING, "Client Certificate Required\n"); |
636 | } else { | ||
637 | terminate (STATE_CRITICAL, "Error in recv()"); | ||
638 | } | ||
639 | } | ||
640 | else { | ||
641 | #endif | ||
636 | terminate (STATE_CRITICAL, "Error in recv()"); | 642 | terminate (STATE_CRITICAL, "Error in recv()"); |
643 | #ifdef HAVE_SSL | ||
637 | } | 644 | } |
638 | #else | ||
639 | terminate (STATE_CRITICAL, "Error in recv()"); | ||
640 | #endif | 645 | #endif |
641 | } | 646 | } |
642 | 647 | ||