From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/146863-check_http.c.patch | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 web/attachments/146863-check_http.c.patch (limited to 'web/attachments/146863-check_http.c.patch') diff --git a/web/attachments/146863-check_http.c.patch b/web/attachments/146863-check_http.c.patch new file mode 100644 index 0000000..7f340bd --- /dev/null +++ b/web/attachments/146863-check_http.c.patch @@ -0,0 +1,31 @@ +--- check_http.c 2005-08-24 16:08:32.000000000 -0700 ++++ check_http.c.patched 2005-08-24 16:08:42.000000000 -0700 +@@ -173,6 +173,9 @@ + if ((server_cert = SSL_get_peer_certificate (ssl)) != NULL) { + result = check_certificate (&server_cert); + X509_free (server_cert); ++ if (result == STATE_OK) { ++ result = check_http (); ++ } + } + else { + printf (_("CRITICAL - Cannot retrieve server certificate.\n")); +@@ -1369,8 +1372,6 @@ + return STATE_WARNING; + } + +- printf (_("OK - Certificate will expire on %s.\n"), timestamp); +- + return STATE_OK; + } + #endif +@@ -1472,8 +1473,7 @@ + -S, --ssl\n\ + Connect via SSL\n\ + -C, --certificate=INTEGER\n\ +- Minimum number of days a certificate has to be valid.\n\ +- (when this option is used the url is not checked.)\n")); ++ Minimum number of days a certificate has to be valid.\n")); + #endif + + printf (_("\ \ No newline at end of file -- cgit v1.2.3-74-g34f1