summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_ide_smart.c45
1 files changed, 25 insertions, 20 deletions
diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c
index 4172483..611b265 100644
--- a/plugins/check_ide_smart.c
+++ b/plugins/check_ide_smart.c
@@ -39,7 +39,7 @@
39 39
40const char *progname = "check_ide_smart"; 40const char *progname = "check_ide_smart";
41const char *revision = "$Revision$"; 41const char *revision = "$Revision$";
42const char *copyright = "2000-2004"; 42const char *copyright = "2000-2006";
43const char *email = "nagiosplug-devel@lists.sourceforge.net"; 43const 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");
507Usage: %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
524void 529void
525print_usage (void) 530print_usage (void)
526{ 531{
527 printf ("\ 532 printf (_("Usage:");
528Usage: %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}