diff options
| author | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-03 23:02:04 +0000 |
|---|---|---|
| committer | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-03 23:02:04 +0000 |
| commit | 5e3fc41c6143676cf01b7aad789fc5f2cae5ce84 (patch) | |
| tree | c6a4be653d48aab261ad1496f9b83f6f17c491e1 /plugins/check_nt.c | |
| parent | c6a18d714a1ee49c62eb3b53ebff41ecadf3b7c2 (diff) | |
| download | monitoring-plugins-5e3fc41c6143676cf01b7aad789fc5f2cae5ce84.tar.gz | |
print_help and print_usage() cleanup
other misc cleanups
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@996 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_nt.c')
| -rw-r--r-- | plugins/check_nt.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/plugins/check_nt.c b/plugins/check_nt.c index 67c3017e..4826d687 100644 --- a/plugins/check_nt.c +++ b/plugins/check_nt.c | |||
| @@ -608,11 +608,15 @@ void preparelist(char *string) { | |||
| 608 | void print_help(void) | 608 | void print_help(void) |
| 609 | { | 609 | { |
| 610 | print_revision(progname,revision); | 610 | print_revision(progname,revision); |
| 611 | printf (_("\ | 611 | |
| 612 | Copyright (c) 2000 Yves Rubin (rubiyz@yahoo.com)\n\n\ | 612 | printf (_("Copyright (c) 2000 Yves Rubin (rubiyz@yahoo.com)\n")); |
| 613 | This plugin collects data from the NSClient service running on a\n\ | 613 | printf (COPYRIGHT, copyright, email); |
| 614 | Windows NT/2000/XP server.\n\n")); | 614 | |
| 615 | printf (_("This plugin collects data from the NSClient service running on a\n\ | ||
| 616 | Windows NT/2000/XP/2003 server.\n\n")); | ||
| 617 | |||
| 615 | print_usage(); | 618 | print_usage(); |
| 619 | |||
| 616 | printf (_("\nOptions:\n\ | 620 | printf (_("\nOptions:\n\ |
| 617 | -H, --hostname=HOST\n\ | 621 | -H, --hostname=HOST\n\ |
| 618 | Name of the host to check\n\ | 622 | Name of the host to check\n\ |
| @@ -629,8 +633,8 @@ Windows NT/2000/XP server.\n\n")); | |||
| 629 | -h, --help\n\ | 633 | -h, --help\n\ |
| 630 | Print this help screen\n\ | 634 | Print this help screen\n\ |
| 631 | -V, --version\n\ | 635 | -V, --version\n\ |
| 632 | Print version information\n"), | 636 | Print version information\n"), PORT, DEFAULT_SOCKET_TIMEOUT); |
| 633 | PORT, DEFAULT_SOCKET_TIMEOUT); | 637 | |
| 634 | printf (_("\ | 638 | printf (_("\ |
| 635 | -v, --variable=STRING\n\ | 639 | -v, --variable=STRING\n\ |
| 636 | Variable to check. Valid variables are:\n")); | 640 | Variable to check. Valid variables are:\n")); |
| @@ -684,5 +688,5 @@ void print_usage(void) | |||
| 684 | { | 688 | { |
| 685 | printf("\ | 689 | printf("\ |
| 686 | Usage: %s -H host -v variable [-p port] [-w warning] [-c critical]\n\ | 690 | Usage: %s -H host -v variable [-p port] [-w warning] [-c critical]\n\ |
| 687 | [-l params] [-d SHOWALL] [-t timeout]\n", progname); | 691 | [-l params] [-d SHOWALL] [-t timeout]\n", progname); |
| 688 | } | 692 | } |
