summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2006-06-15 12:52:25 (GMT)
committerBenoit Mortier <opensides@users.sourceforge.net>2006-06-15 12:52:25 (GMT)
commite5324624caefb201439012d795bebdf46966ec9c (patch)
tree0d94d5ab9044c1ac6aebf67906e7d7626135c1fb /plugins/check_mysql.c
parent180f20d60dde6e2584e2abda4e9f9e4fc6d8c1ae (diff)
downloadmonitoring-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.c44
1 files changed, 21 insertions, 23 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 9d547dd..a47572d 100644
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
@@ -347,33 +347,32 @@ print_help (void)
347 347
348 printf (_(COPYRIGHT), copyright, email); 348 printf (_(COPYRIGHT), copyright, email);
349 349
350 printf (_("This program tests connections to a mysql server\n")); 350 printf ("%s\n", _("This program tests connections to a mysql server"));
351 351
352 printf ("\n\n");
353
352 print_usage (); 354 print_usage ();
353 355
354 printf (_(UT_HELP_VRSN)); 356 printf (_(UT_HELP_VRSN));
355 357
356 printf (_(UT_HOST_PORT), 'P', myport); 358 printf (_(UT_HOST_PORT), 'P', myport);
357 359
358 printf (_("\ 360 printf (" %s\n", "-d, --database=STRING");
359 -d, --database=STRING\n\ 361 printf (" %s\n", _("Check database with indicated name"));
360 Check database with indicated name\n\ 362 printf (" %s\n", "-u, --username=STRING");
361 -u, --username=STRING\n\ 363 printf (" %s\n", _("Connect using the indicated username"));
362 Connect using the indicated username\n\ 364 printf (" %s\n", "-p, --password=STRING");
363 -p, --password=STRING\n\ 365 printf (" %s\n", _("Use the indicated password to authenticate the connection"));
364 Use the indicated password to authenticate the connection\n\ 366 printf (" %s\n", _("==> IMPORTANT: THIS FORM OF AUTHENTICATION IS NOT SECURE!!! <=="));
365 ==> IMPORTANT: THIS FORM OF AUTHENTICATION IS NOT SECURE!!! <==\n\ 367 printf (" %s\n", _("Your clear-text password will be visible as a process table entry"));
366 Your clear-text password will be visible as a process table entry\n\ 368 printf (" %s\n", "-S, --check-slave");
367 -S, --check-slave\n\ 369 printf (" %s\n", _("Check if the slave thread is running properly."));
368 Check if the slave thread is running properly.\n\ 370 printf (" %s\n", "-w, --warning");
369 -w, --warning\n\ 371 printf (" %s\n", _("Exit with WARNING status if slave server is more then INTEGER seconds behind master"));
370 Exit with WARNING status if slave server is more then INTEGER seconds behind master\n\ 372 printf (" %s\n", "-c, --critical");
371 -c, --critical\n\ 373 printf (" %s\n", _("Exit with CRITICAL status if slave server is more then INTEGER seconds behind master"));
372 Exit with CRITICAL status if slave server is more then INTEGER seconds behind master\n")); 374 printf (" %s\n", _("There are no required arguments. By default, the local database with"));
373 375 printf (_("a server listening on MySQL standard port %d will be checked\n"), MYSQL_PORT);
374 printf (_("\n\
375There are no required arguments. By default, the local database with\n\
376a server listening on MySQL standard port %d will be checked\n"), MYSQL_PORT);
377 376
378 printf (_(UT_SUPPORT)); 377 printf (_(UT_SUPPORT));
379} 378}
@@ -382,7 +381,6 @@ a server listening on MySQL standard port %d will be checked\n"), MYSQL_PORT);
382void 381void
383print_usage (void) 382print_usage (void)
384{ 383{
385 printf ("\ 384 printf (_("Usage:"));
386Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password] [-S]\n", 385 printf ("%s [-d database] [-H host] [-P port] [-u user] [-p password] [-S]\n",progname);
387 progname);
388} 386}