From 24772e755e9d2a255e36eb2a97f545d2cb7ade3c Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Wed, 28 Nov 2012 11:03:11 +0100 Subject: unified ipv4/6 usage and help text --- plugins/check_ldap.c | 5 ----- plugins/check_ntp.c | 3 ++- plugins/check_ntp_peer.c | 3 ++- plugins/check_ntp_time.c | 3 ++- plugins/check_pgsql.c | 2 +- plugins/check_ssh.c | 2 +- 6 files changed, 8 insertions(+), 10 deletions(-) (limited to 'plugins') diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c index 65db8517..b05aca9a 100644 --- a/plugins/check_ldap.c +++ b/plugins/check_ldap.c @@ -445,11 +445,6 @@ print_help (void) printf (UT_SUPPORT); } -/* todo -* add option -4 and -6 to the long manual -* -*/ - void print_usage (void) { diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c index 76d19ba3..7d18919f 100644 --- a/plugins/check_ntp.c +++ b/plugins/check_ntp.c @@ -845,6 +845,7 @@ void print_help(void){ printf (UT_HELP_VRSN); printf (UT_EXTRA_OPTS); printf (UT_HOST_PORT, 'p', "123"); + printf (UT_IPv46); printf (" %s\n", "-w, --warning=THRESHOLD"); printf (" %s\n", _("Offset to result in warning status (seconds)")); printf (" %s\n", "-c, --critical=THRESHOLD"); @@ -881,5 +882,5 @@ print_usage(void) printf ("%s\n", _("WARNING: check_ntp is deprecated. Please use check_ntp_peer or")); printf ("%s\n\n", _("check_ntp_time instead.")); printf ("%s\n", _("Usage:")); - printf(" %s -H [-w ] [-c ] [-j ] [-k ] [-v verbose]\n", progname); + printf(" %s -H [-w ] [-c ] [-j ] [-k ] [-4|-6] [-v verbose]\n", progname); } diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index 50cb7b19..b59c056d 100644 --- a/plugins/check_ntp_peer.c +++ b/plugins/check_ntp_peer.c @@ -660,6 +660,7 @@ void print_help(void){ print_usage(); printf (UT_HELP_VRSN); printf (UT_EXTRA_OPTS); + printf (UT_IPv46); printf (UT_HOST_PORT, 'p', "123"); printf (" %s\n", "-q, --quiet"); printf (" %s\n", _("Returns UNKNOWN instead of CRITICAL or WARNING if server isn't synchronized")); @@ -716,6 +717,6 @@ void print_usage(void) { printf ("%s\n", _("Usage:")); - printf(" %s -H [-w ] [-c ] [-W ] [-C ]\n", progname); + printf(" %s -H [-4|-6] [-w ] [-c ] [-W ] [-C ]\n", progname); printf(" [-j ] [-k ] [-v verbose]\n"); } diff --git a/plugins/check_ntp_time.c b/plugins/check_ntp_time.c index d543d6b5..86530fe5 100644 --- a/plugins/check_ntp_time.c +++ b/plugins/check_ntp_time.c @@ -602,6 +602,7 @@ void print_help(void){ print_usage(); printf (UT_HELP_VRSN); printf (UT_EXTRA_OPTS); + printf (UT_IPv46); printf (UT_HOST_PORT, 'p', "123"); printf (" %s\n", "-q, --quiet"); printf (" %s\n", _("Returns UNKNOWN instead of CRITICAL if offset cannot be found")); @@ -635,6 +636,6 @@ void print_usage(void) { printf ("%s\n", _("Usage:")); - printf(" %s -H [-w ] [-c ] [-v verbose]\n", progname); + printf(" %s -H [-4|-6] [-w ] [-c ] [-v verbose]\n", progname); } diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c index 69edae75..8b0769f1 100644 --- a/plugins/check_pgsql.c +++ b/plugins/check_pgsql.c @@ -475,6 +475,6 @@ void print_usage (void) { printf ("%s\n", _("Usage:")); - printf ("%s [-H ] [-P ] [-c ] [-w ]\n", progname); + printf ("%s [-H ] [-4|-6] [-P ] [-c ] [-w ]\n", progname); printf (" [-t ] [-d ] [-l ] [-p ]\n"); } diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index 4d633949..6e8a5fc5 100644 --- a/plugins/check_ssh.c +++ b/plugins/check_ssh.c @@ -307,6 +307,6 @@ void print_usage (void) { printf ("%s\n", _("Usage:")); - printf ("%s [-46] [-t ] [-r ] [-p ] \n", progname); + printf ("%s [-4|-6] [-t ] [-r ] [-p ] \n", progname); } -- cgit v1.2.3-74-g34f1