summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 81071d7..42636cd 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -147,6 +147,9 @@ main (int argc, char **argv)
147 asprintf (&user_agent, "User-Agent: check_http/%s (nagios-plugins %s)", 147 asprintf (&user_agent, "User-Agent: check_http/%s (nagios-plugins %s)",
148 clean_revstring (revision), VERSION); 148 clean_revstring (revision), VERSION);
149 149
150 /* Parse extra opts if any */
151 argv=np_extra_opts (&argc, argv, progname);
152
150 if (process_arguments (argc, argv) == ERROR) 153 if (process_arguments (argc, argv) == ERROR)
151 usage4 (_("Could not parse arguments")); 154 usage4 (_("Could not parse arguments"));
152 155
@@ -1232,6 +1235,7 @@ print_help (void)
1232 printf ("\n"); 1235 printf ("\n");
1233 1236
1234 printf (_(UT_HELP_VRSN)); 1237 printf (_(UT_HELP_VRSN));
1238 printf (_(UT_EXTRA_OPTS));
1235 1239
1236 printf (" %s\n", "-H, --hostname=ADDRESS"); 1240 printf (" %s\n", "-H, --hostname=ADDRESS");
1237 printf (" %s\n", _("Host name argument for servers using host headers (virtual host)")); 1241 printf (" %s\n", _("Host name argument for servers using host headers (virtual host)"));
@@ -1299,19 +1303,24 @@ print_help (void)
1299 1303
1300 printf (_(UT_VERBOSE)); 1304 printf (_(UT_VERBOSE));
1301 1305
1302 printf (_("Notes:")); 1306 printf ("\n");
1307 printf ("%s\n", _("Notes:"));
1303 printf (" %s\n", _("This plugin will attempt to open an HTTP connection with the host.")); 1308 printf (" %s\n", _("This plugin will attempt to open an HTTP connection with the host."));
1304 printf (" %s\n", _("Successful connects return STATE_OK, refusals and timeouts return STATE_CRITICAL")); 1309 printf (" %s\n", _("Successful connects return STATE_OK, refusals and timeouts return STATE_CRITICAL"));
1305 printf (" %s\n", _("other errors return STATE_UNKNOWN. Successful connects, but incorrect reponse")); 1310 printf (" %s\n", _("other errors return STATE_UNKNOWN. Successful connects, but incorrect reponse"));
1306 printf (" %s\n", _("messages from the host result in STATE_WARNING return values. If you are")); 1311 printf (" %s\n", _("messages from the host result in STATE_WARNING return values. If you are"));
1307 printf (" %s\n", _("checking a virtual server that uses 'host headers' you must supply the FQDN")); 1312 printf (" %s\n", _("checking a virtual server that uses 'host headers' you must supply the FQDN"));
1308 printf (" %s\n", _("(fully qualified domain name) as the [host_name] argument.")); 1313 printf (" %s\n", _("(fully qualified domain name) as the [host_name] argument."));
1314 printf ("\n");
1315 printf (_(UT_EXTRA_OPTS_NOTES));
1309 1316
1310#ifdef HAVE_SSL 1317#ifdef HAVE_SSL
1318 printf ("\n");
1311 printf (" %s\n", _("This plugin can also check whether an SSL enabled web server is able to")); 1319 printf (" %s\n", _("This plugin can also check whether an SSL enabled web server is able to"));
1312 printf (" %s\n", _("serve content (optionally within a specified time) or whether the X509 ")); 1320 printf (" %s\n", _("serve content (optionally within a specified time) or whether the X509 "));
1313 printf (" %s\n", _("certificate is still valid for the specified number of days.")); 1321 printf (" %s\n", _("certificate is still valid for the specified number of days."));
1314 printf (_("Examples:")); 1322 printf ("\n");
1323 printf ("%s\n", _("Examples:"));
1315 printf (" %s\n\n", "CHECK CONTENT: check_http -w 5 -c 10 --ssl -H www.verisign.com"); 1324 printf (" %s\n\n", "CHECK CONTENT: check_http -w 5 -c 10 --ssl -H www.verisign.com");
1316 printf (" %s\n", _("When the 'www.verisign.com' server returns its content within 5 seconds,")); 1325 printf (" %s\n", _("When the 'www.verisign.com' server returns its content within 5 seconds,"));
1317 printf (" %s\n", _("a STATE_OK will be returned. When the server returns its content but exceeds")); 1326 printf (" %s\n", _("a STATE_OK will be returned. When the server returns its content but exceeds"));