summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2006-10-19 00:25:16 +0000
committerBenoit Mortier <opensides@users.sourceforge.net>2006-10-19 00:25:16 +0000
commit082cfc29e3673abf595d70cd05f0a483947c22d5 (patch)
treead3b7e973e4cb01c1fc02999da2ad3b0640f1b99 /plugins/check_http.c
parent584562a48ea731a3bf98d66c6602c64e1e72c63a (diff)
downloadmonitoring-plugins-082cfc29e3673abf595d70cd05f0a483947c22d5.tar.gz
first pass at cleaning localization for new release
first pass at making all the headre be the same licence, plugin, etc... git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1499 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c60
1 files changed, 39 insertions, 21 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 8eadc62e..6810f5c1 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -1,18 +1,37 @@
1/****************************************************************************** 1/******************************************************************************
2 2*
3 This program is free software; you can redistribute it and/or modify 3* Nagios check_http plugin
4 it under the terms of the GNU General Public License as published by 4*
5 the Free Software Foundation; either version 2 of the License, or 5* License: GPL
6 (at your option) any later version. 6* Copyright (c) 1999-2006 nagios-plugins team
7 7*
8 This program is distributed in the hope that it will be useful, 8* Last Modified: $Date$
9 but WITHOUT ANY WARRANTY; without even the implied warranty of 9*
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10* Description:
11 GNU General Public License for more details. 11*
12 12* This file contains the check_http plugin
13 You should have received a copy of the GNU General Public License 13*
14 along with this program; if not, write to the Free Software 14* This plugin tests the HTTP service on the specified host. It can test
15 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 15* normal (http) and secure (https) servers, follow redirects, search for
16* strings and regular expressions, check connection times, and report on
17* certificate expiration times.
18*
19*
20* License Information:
21*
22* This program is free software; you can redistribute it and/or modify
23* it under the terms of the GNU General Public License as published by
24* the Free Software Foundation; either version 2 of the License, or
25* (at your option) any later version.
26*
27* This program is distributed in the hope that it will be useful,
28* but WITHOUT ANY WARRANTY; without even the implied warranty of
29* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30* GNU General Public License for more details.
31*
32* You should have received a copy of the GNU General Public License
33* along with this program; if not, write to the Free Software
34* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16 35
17 $Id$ 36 $Id$
18 37
@@ -21,7 +40,7 @@
21 40
22const char *progname = "check_http"; 41const char *progname = "check_http";
23const char *revision = "$Revision$"; 42const char *revision = "$Revision$";
24const char *copyright = "1999-2005"; 43const char *copyright = "1999-2006";
25const char *email = "nagiosplug-devel@lists.sourceforge.net"; 44const char *email = "nagiosplug-devel@lists.sourceforge.net";
26 45
27#include "common.h" 46#include "common.h"
@@ -1217,11 +1236,10 @@ print_help (void)
1217 printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"); 1236 printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
1218 printf (COPYRIGHT, copyright, email); 1237 printf (COPYRIGHT, copyright, email);
1219 1238
1220 printf (_("\ 1239 printf ("%s\n", _("This plugin tests the HTTP service on the specified host. It can test"));
1221This plugin tests the HTTP service on the specified host. It can test\n\ 1240 printf ("%s\n", _("normal (http) and secure (https) servers, follow redirects, search for"));
1222normal (http) and secure (https) servers, follow redirects, search for\n\ 1241 printf ("%s\n", _("strings and regular expressions, check connection times, and report on"));
1223strings and regular expressions, check connection times, and report on\n\ 1242 printf ("%s\n", _("certificate expiration times."));
1224certificate expiration times."));
1225 1243
1226 printf ("\n\n"); 1244 printf ("\n\n");
1227 1245
@@ -1302,7 +1320,7 @@ certificate expiration times."));
1302 1320
1303 printf (_(UT_VERBOSE)); 1321 printf (_(UT_VERBOSE));
1304 1322
1305 printf (_("\ 1323 printf (_("\
1306This plugin will attempt to open an HTTP connection with the host. Successful\n\ 1324This plugin will attempt to open an HTTP connection with the host. Successful\n\
1307connects return STATE_OK, refusals and timeouts return STATE_CRITICAL, other\n\ 1325connects return STATE_OK, refusals and timeouts return STATE_CRITICAL, other\n\
1308errors return STATE_UNKNOWN. Successful connects, but incorrect reponse\n\ 1326errors return STATE_UNKNOWN. Successful connects, but incorrect reponse\n\