diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2006-06-15 12:52:25 +0000 |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2006-06-15 12:52:25 +0000 |
commit | e5324624caefb201439012d795bebdf46966ec9c (patch) | |
tree | 0d94d5ab9044c1ac6aebf67906e7d7626135c1fb /plugins/check_mysql.c | |
parent | 180f20d60dde6e2584e2abda4e9f9e4fc6d8c1ae (diff) | |
download | monitoring-plugins-e5324624caefb201439012d795bebdf46966ec9c.tar.gz |
cleaning help and usage
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1432 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_mysql.c')
-rw-r--r-- | plugins/check_mysql.c | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index 9d547ddd..a47572d9 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c @@ -347,33 +347,32 @@ print_help (void) printf (_(COPYRIGHT), copyright, email); - printf (_("This program tests connections to a mysql server\n")); + printf ("%s\n", _("This program tests connections to a mysql server")); + printf ("\n\n"); + print_usage (); printf (_(UT_HELP_VRSN)); printf (_(UT_HOST_PORT), 'P', myport); - printf (_("\ - -d, --database=STRING\n\ - Check database with indicated name\n\ - -u, --username=STRING\n\ - Connect using the indicated username\n\ - -p, --password=STRING\n\ - Use the indicated password to authenticate the connection\n\ - ==> IMPORTANT: THIS FORM OF AUTHENTICATION IS NOT SECURE!!! <==\n\ - Your clear-text password will be visible as a process table entry\n\ - -S, --check-slave\n\ - Check if the slave thread is running properly.\n\ - -w, --warning\n\ - Exit with WARNING status if slave server is more then INTEGER seconds behind master\n\ - -c, --critical\n\ - Exit with CRITICAL status if slave server is more then INTEGER seconds behind master\n")); - - printf (_("\n\ -There are no required arguments. By default, the local database with\n\ -a server listening on MySQL standard port %d will be checked\n"), MYSQL_PORT); + printf (" %s\n", "-d, --database=STRING"); + printf (" %s\n", _("Check database with indicated name")); + printf (" %s\n", "-u, --username=STRING"); + printf (" %s\n", _("Connect using the indicated username")); + printf (" %s\n", "-p, --password=STRING"); + printf (" %s\n", _("Use the indicated password to authenticate the connection")); + printf (" %s\n", _("==> IMPORTANT: THIS FORM OF AUTHENTICATION IS NOT SECURE!!! <==")); + printf (" %s\n", _("Your clear-text password will be visible as a process table entry")); + printf (" %s\n", "-S, --check-slave"); + printf (" %s\n", _("Check if the slave thread is running properly.")); + printf (" %s\n", "-w, --warning"); + printf (" %s\n", _("Exit with WARNING status if slave server is more then INTEGER seconds behind master")); + printf (" %s\n", "-c, --critical"); + printf (" %s\n", _("Exit with CRITICAL status if slave server is more then INTEGER seconds behind master")); + printf (" %s\n", _("There are no required arguments. By default, the local database with")); + printf (_("a server listening on MySQL standard port %d will be checked\n"), MYSQL_PORT); printf (_(UT_SUPPORT)); } @@ -382,7 +381,6 @@ a server listening on MySQL standard port %d will be checked\n"), MYSQL_PORT); void print_usage (void) { - printf ("\ -Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password] [-S]\n", - progname); + printf (_("Usage:")); + printf ("%s [-d database] [-H host] [-P port] [-u user] [-p password] [-S]\n",progname); } |