[Nagiosplug-devel] Typos in check_disk

Ton Voon ton.voon at opsera.com
Thu May 7 23:39:45 CEST 2009


Chris,

Thanks for the patch. Applied in git.

Ton

On 7 May 2009, at 20:50, Chris Pepper wrote:

> 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/>
> < 
> check_disk 
> .diff 
> > 
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances!  
> Your
> production scanning environment may not be a perfect world - but  
> thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW  
> KODAK i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. http://p.sf.net/sfu/kodak-com_______________________________________________________
> Nagios Plugin Development Mailing List Nagiosplug-devel at lists.sourceforge.net
> Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> ::: Please include plugins version (-v) and OS when reporting any  
> issue.
> ::: Messages without supporting info will risk being sent to /dev/null

Ton Voon
Product Architect




Opsera Limited | Unit 69 Suttons Business Park
Reading | Berkshire | RG6 1AZ | UK

Phone:   +44 (0) 845 057 7887
Mobile:   +44 (0) 7931 365796
Skype:   tonvoon     Email:   ton.voon at opsera.com
www.opsera.com
This e-mail is confidential, intended only for the named recipient(s)  
above and may contain information that is privileged and confidential.  
If you receive this message in error, or are not the named  
recipient(s), please notify the sender at the phone number above, do  
not copy this message, do not disclose its contents to anyone, and  
delete this e-mail message from your computer. Although Opsera  
routinely screens for viruses, addressees should scan this e-mail and  
any attachments for viruses. Opsera makes no representation or  
warranty as to the absence of viruses in this e-mail or any  
attachments. Opsera Limited is registered in the UK under Company  
Number 5396532. Our registered office is Gorse View, Horsell Rise,  
Woking, Surrey, GU21 4RB.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nagios-plugins.org/archive/devel/attachments/20090507/b937a954/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 749 bytes
Desc: not available
URL: <http://nagios-plugins.org/archive/devel/attachments/20090507/b937a954/attachment.gif>


More information about the Devel mailing list