diff options
Diffstat (limited to 'plugins/check_ssh.c')
-rw-r--r-- | plugins/check_ssh.c | 62 |
1 files changed, 38 insertions, 24 deletions
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index 5617add..1a99e24 100644 --- a/plugins/check_ssh.c +++ b/plugins/check_ssh.c | |||
@@ -1,26 +1,39 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | 2 | * | |
3 | This program is free software; you can redistribute it and/or modify | 3 | * Nagios check_ssh 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_ssh 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 | * License Information: |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | * |
16 | 16 | * This program is free software; you can redistribute it and/or modify | |
17 | $Id$ | 17 | * it under the terms of the GNU General Public License as published by |
18 | 18 | * the Free Software Foundation; either version 2 of the License, or | |
19 | * (at your option) any later version. | ||
20 | * | ||
21 | * This program is distributed in the hope that it will be useful, | ||
22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
24 | * GNU General Public License for more details. | ||
25 | * | ||
26 | * You should have received a copy of the GNU General Public License | ||
27 | * along with this program; if not, write to the Free Software | ||
28 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
29 | * | ||
30 | * $Id$ | ||
31 | * | ||
19 | ******************************************************************************/ | 32 | ******************************************************************************/ |
20 | 33 | ||
21 | const char *progname = "check_ssh"; | 34 | const char *progname = "check_ssh"; |
22 | const char *revision = "$Revision$"; | 35 | const char *revision = "$Revision$"; |
23 | const char *copyright = "2000-2004"; | 36 | const char *copyright = "2000-2006"; |
24 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 37 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
25 | 38 | ||
26 | #include "common.h" | 39 | #include "common.h" |
@@ -258,7 +271,9 @@ print_help (void) | |||
258 | printf ("Copyright (c) 1999 Remi Paulmier <remi@sinfomic.fr>\n"); | 271 | printf ("Copyright (c) 1999 Remi Paulmier <remi@sinfomic.fr>\n"); |
259 | printf (COPYRIGHT, copyright, email); | 272 | printf (COPYRIGHT, copyright, email); |
260 | 273 | ||
261 | printf (_("Try to connect to an SSH server at specified server and port\n\n")); | 274 | printf ("%s\n", _("Try to connect to an SSH server at specified server and port")); |
275 | |||
276 | printf ("\n\n"); | ||
262 | 277 | ||
263 | print_usage (); | 278 | print_usage (); |
264 | 279 | ||
@@ -270,9 +285,8 @@ print_help (void) | |||
270 | 285 | ||
271 | printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); | 286 | printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); |
272 | 287 | ||
273 | printf (_("\ | 288 | printf (" %s\n" "-r, --remote-version=STRING"); |
274 | -r, --remote-version=STRING\n\ | 289 | printf (" %s\n", _("Warn if string doesn't match expected server version (ex: OpenSSH_3.9p1)")); |
275 | Warn if string doesn't match expected server version (ex: OpenSSH_3.9p1)\n")); | ||
276 | 290 | ||
277 | printf (_(UT_VERBOSE)); | 291 | printf (_(UT_VERBOSE)); |
278 | 292 | ||
@@ -284,7 +298,7 @@ print_help (void) | |||
284 | void | 298 | void |
285 | print_usage (void) | 299 | print_usage (void) |
286 | { | 300 | { |
287 | printf ("\ | 301 | printf (_("Usage:")); |
288 | Usage: %s [-46] [-t <timeout>] [-r <remote version>] [-p <port>] <host>\n", progname); | 302 | printf ("%s [-46] [-t <timeout>] [-r <remote version>] [-p <port>] <host>\n", progname); |
289 | } | 303 | } |
290 | 304 | ||