[Nagiosplug-devel] [ nagiosplug-Patches-1309349 ] check_http doesn't work with -C (nneds -S too)
SourceForge.net
noreply at sourceforge.net
Fri Sep 30 03:23:07 CEST 2005
Patches item #1309349, was opened at 2005-09-30 11:16
Message generated for change (Comment added) made by asharris
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1309349&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Bugfix
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: asharris (asharris)
Assigned to: Nobody/Anonymous (nobody)
>Summary: check_http doesn't work with -C (nneds -S too)
Initial Comment:
check_http help suggests:
check_http www.verisign.com -C 14
but this does not check the certificate as the -S
options is also required. However, to conform to the
help, the following patch can be applied:
313c313,315
< check_cert = TRUE;
---
> use_ssl = check_cert =
TRUE;
> if (specify_port == FALSE)
> server_port =
HTTPS_PORT;
This ensures that SSL is enabled for certificate checking.
Antony
----------------------------------------------------------------------
>Comment By: asharris (asharris)
Date: 2005-09-30 11:21
Message:
Logged In: YES
user_id=1354360
Sorry, didn't realise I needed to use "diff -u".
--- check_http.org 2005-09-30 11:14:40.000000000 +0100
+++ check_http.c 2005-09-30 10:44:07.000000000 +0100
@@ -310,7 +310,9 @@
usage2 (_("Invalid
certificate expiration period"), optarg);
else {
days_till_exp = atoi (optarg);
- check_cert = TRUE;
+ use_ssl = check_cert = TRUE;
+ if (specify_port == FALSE)
+ server_port =
HTTPS_PORT;
}
#else
usage4 (_("Invalid option - SSL is
not available"));
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1309349&group_id=29880
More information about the Devel
mailing list