aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_nt.c
diff options
context:
space:
mode:
authorGravatar Benoit Mortier <opensides@users.sourceforge.net> 2004-12-03 23:02:04 +0000
committerGravatar Benoit Mortier <opensides@users.sourceforge.net> 2004-12-03 23:02:04 +0000
commit5e3fc41c6143676cf01b7aad789fc5f2cae5ce84 (patch)
treec6a4be653d48aab261ad1496f9b83f6f17c491e1 /plugins/check_nt.c
parentc6a18d714a1ee49c62eb3b53ebff41ecadf3b7c2 (diff)
downloadmonitoring-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.c18
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) {
void print_help(void)
{
print_revision(progname,revision);
- printf (_("\
-Copyright (c) 2000 Yves Rubin (rubiyz@yahoo.com)\n\n\
-This plugin collects data from the NSClient service running on a\n\
-Windows NT/2000/XP server.\n\n"));
+
+ printf (_("Copyright (c) 2000 Yves Rubin (rubiyz@yahoo.com)\n"));
+ printf (COPYRIGHT, copyright, email);
+
+ printf (_("This plugin collects data from the NSClient service running on a\n\
+Windows NT/2000/XP/2003 server.\n\n"));
+
print_usage();
+
printf (_("\nOptions:\n\
-H, --hostname=HOST\n\
Name of the host to check\n\
@@ -629,8 +633,8 @@ Windows NT/2000/XP server.\n\n"));
-h, --help\n\
Print this help screen\n\
-V, --version\n\
- Print version information\n"),
- PORT, DEFAULT_SOCKET_TIMEOUT);
+ Print version information\n"), PORT, DEFAULT_SOCKET_TIMEOUT);
+
printf (_("\
-v, --variable=STRING\n\
Variable to check. Valid variables are:\n"));
@@ -684,5 +688,5 @@ void print_usage(void)
{
printf("\
Usage: %s -H host -v variable [-p port] [-w warning] [-c critical]\n\
- [-l params] [-d SHOWALL] [-t timeout]\n", progname);
+ [-l params] [-d SHOWALL] [-t timeout]\n", progname);
}