summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Eble <psychotrahe@gmx.de>2009-06-01 22:47:34 +0200
committerMatthias Eble <psychotrahe@gmx.de>2009-06-01 22:47:34 +0200
commitaff6140989777cbf128e9e4d6e35531372c284c1 (patch)
tree5aca0966e646c77e3cae82d7748d647606753a0b
parent0a5cd15e75d512a9cbb84480b820ee787cbbdcb5 (diff)
downloadmonitoring-plugins-aff6140989777cbf128e9e4d6e35531372c284c1.tar.gz
Whitespace indent fixes for check_pgsql
-rw-r--r--plugins/check_pgsql.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c
index 925751b1..40c104eb 100644
--- a/plugins/check_pgsql.c
+++ b/plugins/check_pgsql.c
@@ -425,7 +425,7 @@ print_help (void)
425 425
426 printf (_("Test whether a PostgreSQL Database is accepting connections.")); 426 printf (_("Test whether a PostgreSQL Database is accepting connections."));
427 427
428 printf ("\n\n"); 428 printf ("\n\n");
429 429
430 print_usage (); 430 print_usage ();
431 431
@@ -437,12 +437,12 @@ print_help (void)
437 printf (_(UT_IPv46)); 437 printf (_(UT_IPv46));
438 438
439 printf (" %s\n", "-d, --database=STRING"); 439 printf (" %s\n", "-d, --database=STRING");
440 printf (" %s", _("Database to check ")); 440 printf (" %s", _("Database to check "));
441 printf (_("(default: %s)"), DEFAULT_DB); 441 printf (_("(default: %s)"), DEFAULT_DB);
442 printf (" %s\n", "-l, --logname = STRING"); 442 printf (" %s\n", "-l, --logname = STRING");
443 printf (" %s\n", _("Login name of user")); 443 printf (" %s\n", _("Login name of user"));
444 printf (" %s\n", "-p, --password = STRING"); 444 printf (" %s\n", "-p, --password = STRING");
445 printf (" %s\n", _("Password (BIG SECURITY ISSUE)")); 445 printf (" %s\n", _("Password (BIG SECURITY ISSUE)"));
446 446
447 printf (_(UT_WARN_CRIT)); 447 printf (_(UT_WARN_CRIT));
448 448
@@ -450,26 +450,26 @@ print_help (void)
450 450
451 printf (_(UT_VERBOSE)); 451 printf (_(UT_VERBOSE));
452 452
453 printf ("\n"); 453 printf ("\n");
454 printf (" %s\n", _("All parameters are optional.")); 454 printf (" %s\n", _("All parameters are optional."));
455 printf (" %s\n", _("This plugin tests a PostgreSQL DBMS to determine whether it is active and")); 455 printf (" %s\n", _("This plugin tests a PostgreSQL DBMS to determine whether it is active and"));
456 printf (" %s\n", _("accepting queries. In its current operation, it simply connects to the")); 456 printf (" %s\n", _("accepting queries. In its current operation, it simply connects to the"));
457 printf (" %s\n", _("specified database, and then disconnects. If no database is specified, it")); 457 printf (" %s\n", _("specified database, and then disconnects. If no database is specified, it"));
458 printf (" %s\n", _("connects to the template1 database, which is present in every functioning")); 458 printf (" %s\n", _("connects to the template1 database, which is present in every functioning"));
459 printf (" %s\n\n", _("PostgreSQL DBMS.")); 459 printf (" %s\n\n", _("PostgreSQL DBMS."));
460 460
461 printf (" %s\n", _("The plugin will connect to a local postmaster if no host is specified. To")); 461 printf (" %s\n", _("The plugin will connect to a local postmaster if no host is specified. To"));
462 printf (" %s\n", _("connect to a remote host, be sure that the remote postmaster accepts TCP/IP")); 462 printf (" %s\n", _("connect to a remote host, be sure that the remote postmaster accepts TCP/IP"));
463 printf (" %s\n\n", _("connections (start the postmaster with the -i option).")); 463 printf (" %s\n\n", _("connections (start the postmaster with the -i option)."));
464 464
465 printf (" %s\n", _("Typically, the nagios user (unless the --logname option is used) should be")); 465 printf (" %s\n", _("Typically, the nagios user (unless the --logname option is used) should be"));
466 printf (" %s\n", _("able to connect to the database without a password. The plugin can also send")); 466 printf (" %s\n", _("able to connect to the database without a password. The plugin can also send"));
467 printf (" %s\n", _("a password, but no effort is made to obsure or encrypt the password.")); 467 printf (" %s\n", _("a password, but no effort is made to obsure or encrypt the password."));
468 468
469#ifdef NP_EXTRA_OPTS 469#ifdef NP_EXTRA_OPTS
470 printf ("\n"); 470 printf ("\n");
471 printf ("%s\n", _("Notes:")); 471 printf ("%s\n", _("Notes:"));
472 printf (_(UT_EXTRA_OPTS_NOTES)); 472 printf (_(UT_EXTRA_OPTS_NOTES));
473#endif 473#endif
474 474
475 printf (_(UT_SUPPORT)); 475 printf (_(UT_SUPPORT));
@@ -480,7 +480,7 @@ print_help (void)
480void 480void
481print_usage (void) 481print_usage (void)
482{ 482{
483 printf (_("Usage:")); 483 printf (_("Usage:"));
484 printf ("%s [-H <host>] [-P <port>] [-c <critical time>] [-w <warning time>]\n", progname); 484 printf ("%s [-H <host>] [-P <port>] [-c <critical time>] [-w <warning time>]\n", progname);
485 printf (" [-t <timeout>] [-d <database>] [-l <logname>] [-p <password>]\n"); 485 printf (" [-t <timeout>] [-d <database>] [-l <logname>] [-p <password>]\n");
486} 486}