diff options
Diffstat (limited to 'plugins/check_ide_smart.c')
-rw-r--r-- | plugins/check_ide_smart.c | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c index 41724839..611b2652 100644 --- a/plugins/check_ide_smart.c +++ b/plugins/check_ide_smart.c | |||
@@ -39,7 +39,7 @@ | |||
39 | 39 | ||
40 | const char *progname = "check_ide_smart"; | 40 | const char *progname = "check_ide_smart"; |
41 | const char *revision = "$Revision$"; | 41 | const char *revision = "$Revision$"; |
42 | const char *copyright = "2000-2004"; | 42 | const char *copyright = "2000-2006"; |
43 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 43 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
44 | 44 | ||
45 | #include "common.h" | 45 | #include "common.h" |
@@ -501,30 +501,35 @@ print_help (void) | |||
501 | printf ("(C) 1999 Ragnar Hojland Espinosa <ragnar@lightside.dhis.org>\n"); | 501 | printf ("(C) 1999 Ragnar Hojland Espinosa <ragnar@lightside.dhis.org>\n"); |
502 | printf (COPYRIGHT, copyright, email); | 502 | printf (COPYRIGHT, copyright, email); |
503 | 503 | ||
504 | printf(_("This plugin checks a local hard drive with the (Linux specific) SMART interface [http://smartlinux.sourceforge.net/smart/index.php].\n\n")); | 504 | printf (_("This plugin checks a local hard drive with the (Linux specific) SMART interface [http://smartlinux.sourceforge.net/smart/index.php].")); |
505 | |||
506 | printf ("\n\n"); | ||
507 | |||
508 | print_usage (); | ||
509 | |||
510 | printf (_(UT_HELP_VRSN)); | ||
505 | 511 | ||
506 | printf ("\ | 512 | printf (" %s\n", "-d, --device=DEVICE"); |
507 | Usage: %s [OPTION] [DEVICE]\n\ | 513 | printf (" %s\n", _("Select device DEVICE")); |
508 | -d, --device=DEVICE\n\ | 514 | printf (" %s\n", _("Note: if the device is selected with this option, _no_ other options are accepted")); |
509 | Select device DEVICE\n\ | 515 | printf (" %s\n", "-i, --immediate"); |
510 | Note: if the device is selected with this option, _no_ other options are accepted\n\ | 516 | printf (" %s\n", _("Perform immediately offline tests")); |
511 | -i, --immediate\n\ | 517 | printf (" %s\n", "-q, --quiet-check"); |
512 | Perform immediately offline tests\n\ | 518 | printf (" %s\n", _("Returns the number of failed tests")); |
513 | -q, --quiet-check\n\ | 519 | printf (" %s\n", "-1, --auto-on"); |
514 | Returns the number of failed tests\n\ | 520 | printf (" %s\n", _("Turn on automatic offline tests")); |
515 | -1, --auto-on\n\ | 521 | printf (" %s\n", "-0, --auto-off"); |
516 | Turn on automatic offline tests\n\ | 522 | printf (" %s\n", _("Turn off automatic offline tests")); |
517 | -0, --auto-off\n\ | 523 | printf (" %s\n", "-n, --nagios"); |
518 | Turn off automatic offline tests\n\ | 524 | printf (" %s\n", _("Output suitable for Nagios\n")); |
519 | -n, --nagios\n\ | 525 | printf (_(UT_SUPPORT)); |
520 | Output suitable for Nagios\n", progname); | ||
521 | } | 526 | } |
522 | 527 | ||
523 | 528 | ||
524 | void | 529 | void |
525 | print_usage (void) | 530 | print_usage (void) |
526 | { | 531 | { |
527 | printf ("\ | 532 | printf (_("Usage:"); |
528 | Usage: %s [-d <device>] [-i <immediate>] [-q quiet] [-1 <auto-on>]\n\ | 533 | printf ("%s [-d <device>] [-i <immediate>] [-q quiet] [-1 <auto-on>]",progname); |
529 | [-O <auto-off>] [-n <nagios>]\n", progname); | 534 | pritnf (" [-O <auto-off>] [-n <nagios>]\n"); |
530 | } | 535 | } |