diff options
Diffstat (limited to 'plugins/check_swap.c')
| -rw-r--r-- | plugins/check_swap.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c index 1c627ac7..04cc1aee 100644 --- a/plugins/check_swap.c +++ b/plugins/check_swap.c | |||
| @@ -107,6 +107,9 @@ main (int argc, char **argv) | |||
| 107 | 107 | ||
| 108 | status = strdup (""); | 108 | status = strdup (""); |
| 109 | 109 | ||
| 110 | /* Parse extra opts if any */ | ||
| 111 | argv=np_extra_opts (&argc, argv, progname); | ||
| 112 | |||
| 110 | if (process_arguments (argc, argv) == ERROR) | 113 | if (process_arguments (argc, argv) == ERROR) |
| 111 | usage4 (_("Could not parse arguments")); | 114 | usage4 (_("Could not parse arguments")); |
| 112 | 115 | ||
| @@ -530,6 +533,7 @@ print_help (void) | |||
| 530 | print_usage (); | 533 | print_usage (); |
| 531 | 534 | ||
| 532 | printf (_(UT_HELP_VRSN)); | 535 | printf (_(UT_HELP_VRSN)); |
| 536 | printf (_(UT_EXTRA_OPTS)); | ||
| 533 | 537 | ||
| 534 | printf (" %s\n", "-w, --warning=INTEGER"); | 538 | printf (" %s\n", "-w, --warning=INTEGER"); |
| 535 | printf (" %s\n", _("Exit with WARNING status if less than INTEGER bytes of swap space are free")); | 539 | printf (" %s\n", _("Exit with WARNING status if less than INTEGER bytes of swap space are free")); |
| @@ -546,6 +550,11 @@ print_help (void) | |||
| 546 | printf ("\n"); | 550 | printf ("\n"); |
| 547 | printf ("%s\n", _("Notes:")); | 551 | printf ("%s\n", _("Notes:")); |
| 548 | printf (" %s\n", _("On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s.")); | 552 | printf (" %s\n", _("On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s.")); |
| 553 | #ifdef NP_EXTRA_OPTS | ||
| 554 | printf ("\n"); | ||
| 555 | printf (_(UT_EXTRA_OPTS_NOTES)); | ||
| 556 | #endif | ||
| 557 | |||
| 549 | 558 | ||
| 550 | printf (_(UT_SUPPORT)); | 559 | printf (_(UT_SUPPORT)); |
| 551 | } | 560 | } |
