diff options
author | Sven Nierlein <sven@nierlein.de> | 2020-05-18 12:08:27 (GMT) |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2020-05-18 12:08:27 (GMT) |
commit | 7d2582deb36d5bc1dd961be83bedc1e8fc8cb3c7 (patch) | |
tree | 409912673ce427e588bac5bcbdccd7f768a280c2 | |
parent | 84fd9ae893b53c7dfde78845817d4e1c87b7fed5 (diff) | |
download | monitoring-plugins-7d2582deb36d5bc1dd961be83bedc1e8fc8cb3c7.tar.gz |
update test parameter according to check_http
-rw-r--r-- | plugins/t/check_curl.t | 35 |
1 files changed, 9 insertions, 26 deletions
diff --git a/plugins/t/check_curl.t b/plugins/t/check_curl.t index 050416c..4bff538 100644 --- a/plugins/t/check_curl.t +++ b/plugins/t/check_curl.t | |||
@@ -17,32 +17,15 @@ my $res; | |||
17 | my $plugin = 'check_http'; | 17 | my $plugin = 'check_http'; |
18 | $plugin = 'check_curl' if $0 =~ m/check_curl/mx; | 18 | $plugin = 'check_curl' if $0 =~ m/check_curl/mx; |
19 | 19 | ||
20 | my $host_tcp_http = getTestParameter( "NP_HOST_TCP_HTTP", | 20 | my $host_tcp_http = getTestParameter("NP_HOST_TCP_HTTP", "A host providing the HTTP Service (a web server)", "localhost"); |
21 | "A host providing the HTTP Service (a web server)", | 21 | my $host_tls_http = getTestParameter("NP_HOST_TLS_HTTP", "A host providing the HTTPS Service (a tls web server)", "localhost"); |
22 | "localhost" ); | 22 | my $host_tls_cert = getTestParameter("NP_HOST_TLS_CERT", "the common name of the certificate.", "localhost"); |
23 | 23 | my $host_nonresponsive = getTestParameter("NP_HOST_NONRESPONSIVE", "The hostname of system not responsive to network requests", "10.0.0.1"); | |
24 | my $host_tls_http = getTestParameter( "host_tls_http", "NP_HOST_TLS_HTTP", "localhost", | 24 | my $hostname_invalid = getTestParameter("NP_HOSTNAME_INVALID", "An invalid (not known to DNS) hostname", "nosuchhost"); |
25 | "A host providing the HTTPS Service (a tls web server)" ); | 25 | my $internet_access = getTestParameter("NP_INTERNET_ACCESS", "Is this system directly connected to the internet?", "yes"); |
26 | 26 | my $host_tcp_http2 = getTestParameter("NP_HOST_TCP_HTTP2", "A host providing an index page containing the string 'monitoring'", "test.monitoring-plugins.org"); | |
27 | my $host_tls_cert = getTestParameter( "host_tls_cert", "NP_HOST_TLS_CERT", "localhost", | 27 | my $host_tcp_proxy = getTestParameter("NP_HOST_TCP_PROXY", "A host providing a HTTP proxy with CONNECT support", "localhost"); |
28 | "the common name of the certificate." ); | 28 | my $port_tcp_proxy = getTestParameter("NP_PORT_TCP_PROXY", "Port of the proxy with HTTP and CONNECT support", "3128"); |
29 | |||
30 | |||
31 | my $host_nonresponsive = getTestParameter( "NP_HOST_NONRESPONSIVE", | ||
32 | "The hostname of system not responsive to network requests", | ||
33 | "10.0.0.1" ); | ||
34 | |||
35 | my $hostname_invalid = getTestParameter( "NP_HOSTNAME_INVALID", | ||
36 | "An invalid (not known to DNS) hostname", | ||
37 | "nosuchhost"); | ||
38 | |||
39 | my $internet_access = getTestParameter( "NP_INTERNET_ACCESS", | ||
40 | "Is this system directly connected to the internet?", | ||
41 | "yes"); | ||
42 | |||
43 | my $host_tcp_http2 = getTestParameter( "NP_HOST_TCP_HTTP2", | ||
44 | "A host providing an index page containing the string 'monitoring'", | ||
45 | "test.monitoring-plugins.org" ); | ||
46 | 29 | ||
47 | my $faketime = -x '/usr/bin/faketime' ? 1 : 0; | 30 | my $faketime = -x '/usr/bin/faketime' ? 1 : 0; |
48 | 31 | ||