summaryrefslogtreecommitdiffstats
path: root/plugins/check_swap.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2006-10-19 23:53:28 +0000
committerBenoit Mortier <opensides@users.sourceforge.net>2006-10-19 23:53:28 +0000
commitd8ecf6bfc264717c611a983fe8ccb0488669791a (patch)
treec1f9842859604cbabf72efa3f9adc22f82ad293e /plugins/check_swap.c
parentcace0753b9a1801be97cbbf0320ea136543c3ec9 (diff)
downloadmonitoring-plugins-d8ecf6bfc264717c611a983fe8ccb0488669791a.tar.gz
another round of localization cleaning
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1509 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_swap.c')
-rw-r--r--plugins/check_swap.c100
1 files changed, 54 insertions, 46 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index fa989746..db8ebf95 100644
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
@@ -1,33 +1,40 @@
1/****************************************************************************** 1/******************************************************************************
2 * 2*
3 * Program: Swap space plugin for Nagios 3* Nagios check_disk plugin
4 * License: GPL 4*
5 * 5* License: GPL
6 * License Information: 6* Copyright (c) 2000 Karl DeBisschop (kdebisschop@users.sourceforge.net)
7 * 7* Copyright (c) 2000-2006 nagios-plugins team
8 * This program is free software; you can redistribute it and/or modify 8*
9 * it under the terms of the GNU General Public License as published by 9* Last Modified: $Date$
10 * the Free Software Foundation; either version 2 of the License, or 10*
11 * (at your option) any later version. 11* Description:
12 * 12*
13 * This program is distributed in the hope that it will be useful, 13* This file contains the check_disk plugin
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14*
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15* License Information:
16 * GNU General Public License for more details. 16*
17 * 17* This program is free software; you can redistribute it and/or modify
18 * You should have received a copy of the GNU General Public License 18* it under the terms of the GNU General Public License as published by
19 * along with this program; if not, write to the Free Software 19* the Free Software Foundation; either version 2 of the License, or
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20* (at your option) any later version.
21 * 21*
22 * Copyright (c) 2000 Karl DeBisschop (kdebisschop@users.sourceforge.net) 22* This program is distributed in the hope that it will be useful,
23 * 23* but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * $Id$ 24* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * 25* GNU General Public License for more details.
26 *****************************************************************************/ 26*
27* You should have received a copy of the GNU General Public License
28* along with this program; if not, write to the Free Software
29* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
30*
31* $Id$
32*
33*****************************************************************************/
27 34
28const char *progname = "check_swap"; 35const char *progname = "check_swap";
29const char *revision = "$Revision$"; 36const char *revision = "$Revision$";
30const char *copyright = "2000-2004"; 37const char *copyright = "2000-2006";
31const char *email = "nagiosplug-devel@lists.sourceforge.net"; 38const char *email = "nagiosplug-devel@lists.sourceforge.net";
32 39
33#include "common.h" 40#include "common.h"
@@ -491,28 +498,29 @@ print_help (void)
491 498
492 printf (_(COPYRIGHT), copyright, email); 499 printf (_(COPYRIGHT), copyright, email);
493 500
494 printf (_("Check swap space on local machine.\n\n")); 501 printf ("%s\n", _("Check swap space on local machine."));
495 502
503 printf ("\n\n");
504
496 print_usage (); 505 print_usage ();
497 506
498 printf (_(UT_HELP_VRSN)); 507 printf (_(UT_HELP_VRSN));
499 508
500 printf (_("\n\ 509 printf (" %s\n", "-w, --warning=INTEGER");
501 -w, --warning=INTEGER\n\ 510 printf (" %s\n", _("Exit with WARNING status if less than INTEGER bytes of swap space are free"));
502 Exit with WARNING status if less than INTEGER bytes of swap space are free\n\ 511 printf (" %s\n", "-w, --warning=PERCENT%%");
503 -w, --warning=PERCENT%%\n\ 512 printf (" %s\n", _("Exit with WARNING status if less than PERCENT of swap space is free"));
504 Exit with WARNING status if less than PERCENT of swap space is free\n\ 513 printf (" %s\n", "-c, --critical=INTEGER");
505 -c, --critical=INTEGER\n\ 514 printf (" %s\n", _("Exit with CRITICAL status if less than INTEGER bytes of swap space are free"));
506 Exit with CRITICAL status if less than INTEGER bytes of swap space are free\n\ 515 printf (" %s\n", "-c, --critical=PERCENT%%");
507 -c, --critical=PERCENT%%\n\ 516 printf (" %s\n", _("Exit with CRITCAL status if less than PERCENT of swap space is free"));
508 Exit with CRITCAL status if less than PERCENT of swap space is free\n\ 517 printf (" %s\n", "-a, --allswaps");
509 -a, --allswaps\n\ 518 printf (" %s\n", _("Conduct comparisons for all swap partitions, one by one"));
510 Conduct comparisons for all swap partitions, one by one\n\ 519 printf (" %s\n", "-v, --verbose");
511 -v, --verbose\n\ 520 printf (" %s\n", _("Verbose output. Up to 3 levels"));
512 Verbose output. Up to 3 levels\n")); 521 printf ("\n");
513 522 printf ("%s\n", _("Notes:"));
514 printf (_("\n\ 523 printf (" %s\n", _("On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s.\n"));
515On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s.\n"));
516 524
517 printf (_(UT_SUPPORT)); 525 printf (_(UT_SUPPORT));
518} 526}
@@ -522,7 +530,7 @@ On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s.\n"));
522void 530void
523print_usage (void) 531print_usage (void)
524{ 532{
525 printf ("\ 533 printf (_("Usage:"));
526Usage: %s [-av] -w <percent_free>%% -c <percent_free>%%\n\ 534 printf ("%s [-av] -w <percent_free>%% -c <percent_free>%%\n",progname);
527 %s [-av] -w <bytes_free> -c <bytes_free>\n", progname, progname); 535 printf ("%s [-av] -w <bytes_free> -c <bytes_free>\n", progname);
528} 536}