[Nagiosplug-devel] Typos in check_disk
Chris Pepper
pepper at reppep.com
Thu May 7 21:50:22 CEST 2009
You cannot post to the Nagios Plugin Development mailing list as you
are not subscribed. Due to the amount of spam and the administrative
burden, all emails from non-members will be automatically discarded.
Please subscribe at
https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel and
repost your message.
Subject:
Typos in check_disk
From:
Chris Pepper <pepper at cbio.mskcc.org>
Date:
Thu, 07 May 2009 15:39:08 -0400
To:
nagiosplug-devel at lists.sourceforge.net
s/pathes/paths/
> Index: check_disk.c
> ===================================================================
> --- check_disk.c (revision 2189)
> +++ check_disk.c (working copy)
> @@ -661,19 +661,19 @@
> break;
> case 'E':
> if (path_selected)
> - die (STATE_UNKNOWN, "DISK %s: %s", _("UNKNOWN"), _("Must set
-E before selecting pathes\n"));
> + die (STATE_UNKNOWN, "DISK %s: %s", _("UNKNOWN"), _("Must set
-E before selecting paths\n"));
> exact_match = TRUE;
> break;
> case 'g':
> if (path_selected)
> - die (STATE_UNKNOWN, "DISK %s: %s", _("UNKNOWN"), _("Must set
group value before selecting pathes \n"));
> + die (STATE_UNKNOWN, "DISK %s: %s", _("UNKNOWN"), _("Must set
group value before selecting paths \n"));
> group = optarg;
> break;
> case 'I':
> cflags |= REG_ICASE;
> case 'i':
> if (!path_selected)
> - die (STATE_UNKNOWN, "DISK %s: %s\n", _("UNKNOWN"), _("Pathes
need to be selected before using -i/-I. Use -A to select all pathes
explicitly"));
> + die (STATE_UNKNOWN, "DISK %s: %s\n", _("UNKNOWN"), _("Paths
need to be selected before using -i/-I. Use -A to select all paths
explicitly"));
> err = regcomp(&re, optarg, cflags);
> if (err != 0) {
> regerror (err, &re, errbuf, MAX_INPUT_BUFFER);
> @@ -930,7 +930,7 @@
> printf (" %s\n", "-e, --errors-only");
> printf (" %s\n", _("Display only devices/mountpoints with
errors"));
> printf (" %s\n", "-g, --group=NAME");
> - printf (" %s\n", _("Group pathes. Thresholds apply to
(free-)space of all partitions together"));
> + printf (" %s\n", _("Group paths. Thresholds apply to
(free-)space of all partitions together"));
> printf (" %s\n", "-k, --kilobytes");
> printf (" %s\n", _("Same as '--units kB'"));
> printf (" %s\n", "-l, --local");
> @@ -943,7 +943,7 @@
> printf (" %s\n", "-m, --megabytes");
> printf (" %s\n", _("Same as '--units MB'"));
> printf (" %s\n", "-A, --all");
> - printf (" %s\n", _("Explicitly select all pathes. This is
equivalent to -R '.*'"));
> + printf (" %s\n", _("Explicitly select all paths. This is
equivalent to -R '.*'"));
> printf (" %s\n", "-R, --eregi-path=PATH,
--eregi-partition=PARTITION");
> printf (" %s\n", _("Case insensitive regular expression for
path/partition (may be repeated)"));
> printf (" %s\n", "-r, --ereg-path=PATH, --ereg-partition=PARTITION");
Index: check_disk.c
===================================================================
--- check_disk.c (revision 2189)
+++ check_disk.c (working copy)
@@ -661,19 +661,19 @@
break;
case 'E':
if (path_selected)
- die (STATE_UNKNOWN, "DISK %s: %s", _("UNKNOWN"), _("Must set -E
before selecting pathes\n"));
+ die (STATE_UNKNOWN, "DISK %s: %s", _("UNKNOWN"), _("Must set -E
before selecting paths\n"));
exact_match = TRUE;
break;
case 'g':
if (path_selected)
- die (STATE_UNKNOWN, "DISK %s: %s", _("UNKNOWN"), _("Must set
group value before selecting pathes \n"));
+ die (STATE_UNKNOWN, "DISK %s: %s", _("UNKNOWN"), _("Must set
group value before selecting paths \n"));
group = optarg;
break;
case 'I':
cflags |= REG_ICASE;
case 'i':
if (!path_selected)
- die (STATE_UNKNOWN, "DISK %s: %s\n", _("UNKNOWN"), _("Pathes
need to be selected before using -i/-I. Use -A to select all pathes
explicitly"));
+ die (STATE_UNKNOWN, "DISK %s: %s\n", _("UNKNOWN"), _("Paths
need to be selected before using -i/-I. Use -A to select all paths
explicitly"));
err = regcomp(&re, optarg, cflags);
if (err != 0) {
regerror (err, &re, errbuf, MAX_INPUT_BUFFER);
@@ -930,7 +930,7 @@
printf (" %s\n", "-e, --errors-only");
printf (" %s\n", _("Display only devices/mountpoints with errors"));
printf (" %s\n", "-g, --group=NAME");
- printf (" %s\n", _("Group pathes. Thresholds apply to (free-)space
of all partitions together"));
+ printf (" %s\n", _("Group paths. Thresholds apply to (free-)space
of all partitions together"));
printf (" %s\n", "-k, --kilobytes");
printf (" %s\n", _("Same as '--units kB'"));
printf (" %s\n", "-l, --local");
@@ -943,7 +943,7 @@
printf (" %s\n", "-m, --megabytes");
printf (" %s\n", _("Same as '--units MB'"));
printf (" %s\n", "-A, --all");
- printf (" %s\n", _("Explicitly select all pathes. This is
equivalent to -R '.*'"));
+ printf (" %s\n", _("Explicitly select all paths. This is
equivalent to -R '.*'"));
printf (" %s\n", "-R, --eregi-path=PATH, --eregi-partition=PARTITION");
printf (" %s\n", _("Case insensitive regular expression for
path/partition (may be repeated)"));
printf (" %s\n", "-r, --ereg-path=PATH, --ereg-partition=PARTITION");
--
Chris Pepper: <http://cbio.mskcc.org/>
<http://www.extrapepperoni.com/>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: check_disk.diff
URL: <http://nagios-plugins.org/archive/devel/attachments/20090507/01535451/attachment.ksh>
More information about the Devel
mailing list