summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2006-06-17 12:28:43 +0000
committerBenoit Mortier <opensides@users.sourceforge.net>2006-06-17 12:28:43 +0000
commitcbbfed30eb01a702b2e61c0abcb64c834e73d654 (patch)
treeb9d050fa415733f80306530e1ed028ef3ce9759a
parente5324624caefb201439012d795bebdf46966ec9c (diff)
downloadmonitoring-plugins-cbbfed30eb01a702b2e61c0abcb64c834e73d654.tar.gz
cleaning up help and usage
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1433 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins/check_hpjd.c18
-rw-r--r--plugins/check_nt.c16
-rw-r--r--plugins/check_ntp.c18
-rw-r--r--plugins/check_nwstat.c19
-rw-r--r--plugins/check_overcr.c62
-rw-r--r--plugins/check_pgsql.c54
-rw-r--r--plugins/check_ping.c54
-rw-r--r--plugins/check_procs.c10
8 files changed, 133 insertions, 118 deletions
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c
index b281c33a..632237ac 100644
--- a/plugins/check_hpjd.c
+++ b/plugins/check_hpjd.c
@@ -19,7 +19,7 @@
19 19
20const char *progname = "check_hpjd"; 20const char *progname = "check_hpjd";
21const char *revision = "$Revision$"; 21const char *revision = "$Revision$";
22const char *copyright = "2000-2004"; 22const char *copyright = "2000-2006";
23const char *email = "nagiosplug-devel@lists.sourceforge.net"; 23const char *email = "nagiosplug-devel@lists.sourceforge.net";
24 24
25#include "common.h" 25#include "common.h"
@@ -374,17 +374,18 @@ print_help (void)
374 printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"); 374 printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
375 printf (COPYRIGHT, copyright, email); 375 printf (COPYRIGHT, copyright, email);
376 376
377 printf (_("\ 377 printf ("%s\n", _("This plugin tests the STATUS of an HP printer with a JetDirect card."));
378This plugin tests the STATUS of an HP printer with a JetDirect card.\n\ 378 printf ("%s\n", _("Net-snmp must be installed on the computer running the plugin."));
379Net-snmp must be installed on the computer running the plugin.\n\n"));
380 379
380 printf ("\n\n");
381
381 print_usage (); 382 print_usage ();
382 383
383 printf (_(UT_HELP_VRSN)); 384 printf (_(UT_HELP_VRSN));
384 385
385 printf (_("\ 386 printf (" %s\n", "-C, --community=STRING");
386 -C, --community=STRING\n\ 387 printf (" %s", _("The SNMP community name "));
387 The SNMP community name (default=%s)\n"), DEFAULT_COMMUNITY); 388 printf (_("(default=%s)"), DEFAULT_COMMUNITY);
388 389
389 printf (_(UT_SUPPORT)); 390 printf (_(UT_SUPPORT));
390} 391}
@@ -394,5 +395,6 @@ Net-snmp must be installed on the computer running the plugin.\n\n"));
394void 395void
395print_usage (void) 396print_usage (void)
396{ 397{
397 printf ("Usage: %s -H host [-C community]\n", progname); 398 printf (_("Usage:"));
399 printf ("%s -H host [-C community]\n", progname);
398} 400}
diff --git a/plugins/check_nt.c b/plugins/check_nt.c
index 1bdddc45..2505a0bc 100644
--- a/plugins/check_nt.c
+++ b/plugins/check_nt.c
@@ -32,7 +32,7 @@
32 32
33const char *progname = "check_nt"; 33const char *progname = "check_nt";
34const char *revision = "$Revision$"; 34const char *revision = "$Revision$";
35const char *copyright = "2003-2004"; 35const char *copyright = "2003-2006";
36const char *email = "nagiosplug-devel@lists.sourceforge.net"; 36const char *email = "nagiosplug-devel@lists.sourceforge.net";
37 37
38#include "common.h" 38#include "common.h"
@@ -614,11 +614,15 @@ void print_help(void)
614 printf ("Copyright (c) 2000 Yves Rubin (rubiyz@yahoo.com)\n"); 614 printf ("Copyright (c) 2000 Yves Rubin (rubiyz@yahoo.com)\n");
615 printf (COPYRIGHT, copyright, email); 615 printf (COPYRIGHT, copyright, email);
616 616
617 printf (_("This plugin collects data from the NSClient service running on a\n\ 617 printf ("%s\n", _("This plugin collects data from the NSClient service running on a"));
618Windows NT/2000/XP/2003 server.\n\n")); 618 printf ("%s\n", _("Windows NT/2000/XP/2003 server."));
619 619
620 printf ("\n\n");
621
620 print_usage(); 622 print_usage();
621 623
624 printf (_(UT_HELP_VRSN));
625
622 printf (_("\nOptions:\n\ 626 printf (_("\nOptions:\n\
623-H, --hostname=HOST\n\ 627-H, --hostname=HOST\n\
624 Name of the host to check\n\ 628 Name of the host to check\n\
@@ -689,7 +693,7 @@ Windows NT/2000/XP/2003 server.\n\n"));
689 693
690void print_usage(void) 694void print_usage(void)
691{ 695{
692 printf("\ 696 printf (_("Usage:"));
693Usage: %s -H host -v variable [-p port] [-w warning] [-c critical]\n\ 697 printf ("%s -H host -v variable [-p port] [-w warning] [-c critical]",progname);
694 [-l params] [-d SHOWALL] [-t timeout]\n", progname); 698 printf ("[-l params] [-d SHOWALL] [-t timeout]\n");
695} 699}
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index 655dd4fc..9cda2776 100644
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
@@ -768,23 +768,29 @@ int main(int argc, char *argv[]){
768} 768}
769 769
770 770
771void print_usage(void){
772 printf("\
773Usage: %s -H <host> [-O] [-w <warn>] [-c <crit>] [-j <warn>] [-k <crit>] [-v verbose]\
774\n", progname);
775}
776 771
777void print_help(void){ 772void print_help(void){
778 print_revision(progname, revision); 773 print_revision(progname, revision);
779 774
780 printf ("Copyright (c) 1999 Ethan Galstad\n"); 775 printf ("Copyright (c) 1999 Ethan Galstad\n");
781 printf (COPYRIGHT, copyright, email); 776 printf (COPYRIGHT, copyright, email);
777
778 printf ("%s\n", _("This plugin checks the selected ntp server"));
782 779
780 printf ("\n\n");
781
783 print_usage(); 782 print_usage();
784 printf (_(UT_HELP_VRSN)); 783 printf (_(UT_HELP_VRSN));
785 printf (_(UT_HOST_PORT), 'p', "123"); 784 printf (_(UT_HOST_PORT), 'p', "123");
786 printf (_(UT_WARN_CRIT)); 785 printf (_(UT_WARN_CRIT));
787 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); 786 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT);
788 printf (_(UT_VERBOSE)); 787 printf (_(UT_VERBOSE));
789 printf(_(UT_SUPPORT)); 788 printf (_(UT_SUPPORT));
789}
790
791void
792print_usage(void)
793{
794 printf (_("Usage:"));
795 printf("%s -H <host> [-O] [-w <warn>] [-c <crit>] [-j <warn>] [-k <crit>] [-v verbose]\n", progname);
790} 796}
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c
index 6465daef..7495cae9 100644
--- a/plugins/check_nwstat.c
+++ b/plugins/check_nwstat.c
@@ -20,7 +20,7 @@
20 20
21const char *progname = "check_nwstat"; 21const char *progname = "check_nwstat";
22const char *revision = "$Revision$"; 22const char *revision = "$Revision$";
23const char *copyright = "2000-2004"; 23const char *copyright = "2000-2006";
24const char *email = "nagiosplug-devel@lists.sourceforge.net"; 24const char *email = "nagiosplug-devel@lists.sourceforge.net";
25 25
26#include "common.h" 26#include "common.h"
@@ -1013,9 +1013,10 @@ void print_help(void)
1013 printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"); 1013 printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
1014 printf (COPYRIGHT, copyright, email); 1014 printf (COPYRIGHT, copyright, email);
1015 1015
1016 printf (_("\ 1016 printf ("%s\n", _("This plugin attempts to contact the MRTGEXT NLM running on a"));
1017This plugin attempts to contact the MRTGEXT NLM running on a\n\ 1017 printf ("%s\n", _("Novell server to gather the requested system information."));
1018Novell server to gather the requested system information.\n\n")); 1018
1019 printf ("\n\n");
1019 1020
1020 print_usage(); 1021 print_usage();
1021 1022
@@ -1076,8 +1077,9 @@ Novell server to gather the requested system information.\n\n"));
1076 1077
1077 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); 1078 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT);
1078 1079
1079 printf (_("\n\ 1080 printf ("\n");
1080Notes:\n\ 1081 printf ("%s\n", _("Notes:"));
1082 printf (_("\
1081- This plugin requres that the MRTGEXT.NLM file from James Drews' MRTG\n\ 1083- This plugin requres that the MRTGEXT.NLM file from James Drews' MRTG\n\
1082 extension for NetWare be loaded on the Novell servers you wish to check.\n\ 1084 extension for NetWare be loaded on the Novell servers you wish to check.\n\
1083 (available from http://www.engr.wisc.edu/~drews/mrtg/)\n\ 1085 (available from http://www.engr.wisc.edu/~drews/mrtg/)\n\
@@ -1092,7 +1094,6 @@ Notes:\n\
1092 1094
1093void print_usage(void) 1095void print_usage(void)
1094{ 1096{
1095 printf ("\ 1097 printf (_("Usage:"));
1096Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\ 1098 printf ("%s -H host [-p port] [-v variable] [-w warning] [-c critical] [-t timeout]\n",progname);
1097 [-t timeout].\n", progname);
1098} 1099}
diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c
index a4abf2b9..490490eb 100644
--- a/plugins/check_overcr.c
+++ b/plugins/check_overcr.c
@@ -20,7 +20,7 @@
20 20
21const char *progname = "check_overcr"; 21const char *progname = "check_overcr";
22const char *revision = "$Revision$"; 22const char *revision = "$Revision$";
23const char *copyright = "2000-2004"; 23const char *copyright = "2000-2006";
24const char *email = "nagiosplug-devel@lists.sourceforge.net"; 24const char *email = "nagiosplug-devel@lists.sourceforge.net";
25 25
26#include "common.h" 26#include "common.h"
@@ -403,9 +403,10 @@ print_help (void)
403 printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"); 403 printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
404 printf (COPYRIGHT, copyright, email); 404 printf (COPYRIGHT, copyright, email);
405 405
406 printf (_("\ 406 printf ("%s\n", _("This plugin attempts to contact the Over-CR collector daemon running on the"));
407This plugin attempts to contact the Over-CR collector daemon running on the\n\ 407 printf ("%s\n", _("remote UNIX server in order to gather the requested system information."));
408remote UNIX server in order to gather the requested system information.\n\n")); 408
409 printf ("\n\n");
409 410
410 print_usage (); 411 print_usage ();
411 412
@@ -413,35 +414,33 @@ remote UNIX server in order to gather the requested system information.\n\n"));
413 414
414 printf (_(UT_HOST_PORT), 'p', myport); 415 printf (_(UT_HOST_PORT), 'p', myport);
415 416
416 printf (_("\ 417 printf (" %s\n", "-w, --warning=INTEGER");
417-v, --variable=STRING\n\ 418 printf (" %s\n", _("Threshold which will result in a warning status"));
418 Variable to check. Valid variables include:\n\ 419 printf (" %s\n", "-c, --critical=INTEGER");
419 LOAD1 = 1 minute average CPU load\n\ 420 printf (" %s\n", _("Threshold which will result in a critical status"));
420 LOAD5 = 5 minute average CPU load\n\ 421 printf (" %s\n", "-v, --variable=STRING");
421 LOAD15 = 15 minute average CPU load\n\ 422 printf (" %s\n", _("Variable to check. Valid variables include:"));
422 DPU<filesys> = percent used disk space on filesystem <filesys>\n\ 423 printf (" %s\n", _("LOAD1 = 1 minute average CPU load"));
423 PROC<process> = number of running processes with name <process>\n\ 424 printf (" %s\n", _("LOAD5 = 5 minute average CPU load"));
424 NET<port> = number of active connections on TCP port <port>\n\ 425 printf (" %s\n", _("LOAD15 = 15 minute average CPU load"));
425 UPTIME = system uptime in seconds\n")); 426 printf (" %s\n", _("DPU<filesys> = percent used disk space on filesystem <filesys>"));
426 427 printf (" %s\n", _("PROC<process> = number of running processes with name <process>"));
427 printf (_("\ 428 printf (" %s\n", _("NET<port> = number of active connections on TCP port <port>"));
428 -w, --warning=INTEGER\n\ 429 printf (" %s\n", _("UPTIME = system uptime in seconds"));
429 Threshold which will result in a warning status\n\
430 -c, --critical=INTEGER\n\
431 Threshold which will result in a critical status\n"));
432 430
433 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); 431 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT);
434 432
435 printf (_("\ 433 printf (_(UT_VERBOSE));
436Notes:\n\ 434 printf ("\n");
437 - For the available options, the critical threshold value should always be\n\ 435 printf ("%s\n", _("Notes:"));
438 higher than the warning threshold value, EXCEPT with the uptime variable\n\n")); 436
437 printf ("%s\n", _("For the available options, the critical threshold value should always be"));
438 printf ("%s\n\n", _("higher than the warning threshold value, EXCEPT with the uptime variable"));
439 439
440 printf (_("\ 440 printf ("%s\n", _("This plugin requres that Eric Molitors' Over-CR collector daemon be"));
441 - This plugin requres that Eric Molitors' Over-CR collector daemon be\n\ 441 printf ("%s\n", _("running on the remote server. Over-CR can be downloaded from"));
442 running on the remote server. Over-CR can be downloaded from\n\ 442 printf ("%s\n", _("http://www.molitor.org/overcr (This plugin was tested with version 0.99.53"));
443 http://www.molitor.org/overcr (This plugin was tested with version\n\ 443 printf ("%s\n", _("of the Over-CR collector)"));
444 0.99.53 of the Over-CR collector)\n\n"));
445 444
446 printf (_(UT_SUPPORT)); 445 printf (_(UT_SUPPORT));
447} 446}
@@ -450,7 +449,6 @@ Notes:\n\
450void 449void
451print_usage (void) 450print_usage (void)
452{ 451{
453 printf ("\ 452 printf (_("Usage:"));
454Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\ 453 printf ("%s -H host [-p port] [-v variable] [-w warning] [-c critical] [-t timeout]\n", progname);
455 [-t timeout]\n", progname);
456} 454}
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c
index 8cfc1ab5..f258708c 100644
--- a/plugins/check_pgsql.c
+++ b/plugins/check_pgsql.c
@@ -20,7 +20,7 @@
20 20
21const char *progname = "check_pgsql"; 21const char *progname = "check_pgsql";
22const char *revision = "$Revision$"; 22const char *revision = "$Revision$";
23const char *copyright = "1999-2004"; 23const char *copyright = "1999-2006";
24const char *email = "nagiosplug-devel@lists.sourceforge.net"; 24const char *email = "nagiosplug-devel@lists.sourceforge.net";
25 25
26#include "common.h" 26#include "common.h"
@@ -391,7 +391,9 @@ print_help (void)
391 391
392 printf (COPYRIGHT, copyright, email); 392 printf (COPYRIGHT, copyright, email);
393 393
394 printf (_("Test whether a PostgreSQL Database is accepting connections.\n\n")); 394 printf (_("Test whether a PostgreSQL Database is accepting connections."));
395
396 printf ("\n\n");
395 397
396 print_usage (); 398 print_usage ();
397 399
@@ -401,13 +403,13 @@ print_help (void)
401 403
402 printf (_(UT_IPv46)); 404 printf (_(UT_IPv46));
403 405
404 printf (_("\ 406 printf (" %s\n", "-d, --database=STRING");
405 -d, --database=STRING\n\ 407 printf (" %s", _("Database to check "));
406 Database to check (default: %s)\n\ 408 printf (_("(default: %s)"), DEFAULT_DB);
407 -l, --logname = STRING\n\ 409 printf (" %s\n", "-l, --logname = STRING");
408 Login name of user\n\ 410 printf (" %s\n", _("Login name of user"));
409 -p, --password = STRING\n\ 411 printf (" %s\n", "-p, --password = STRING");
410 Password (BIG SECURITY ISSUE)\n"), DEFAULT_DB); 412 printf (" %s\n", _("Password (BIG SECURITY ISSUE)"));
411 413
412 printf (_(UT_WARN_CRIT)); 414 printf (_(UT_WARN_CRIT));
413 415
@@ -415,21 +417,19 @@ print_help (void)
415 417
416 printf (_(UT_VERBOSE)); 418 printf (_(UT_VERBOSE));
417 419
418 printf (_("\nAll parameters are optional.\n\ 420 printf ("\n");
419\n\ 421 printf (" %s\n", _("All parameters are optional."));
420This plugin tests a PostgreSQL DBMS to determine whether it is active and\n\ 422 printf (" %s\n", _("This plugin tests a PostgreSQL DBMS to determine whether it is active and"));
421accepting queries. In its current operation, it simply connects to the\n\ 423 printf (" %s\n", _("accepting queries. In its current operation, it simply connects to the"));
422specified database, and then disconnects. If no database is specified, it\n\ 424 printf (" %s\n", _("specified database, and then disconnects. If no database is specified, it"));
423connects to the template1 database, which is present in every functioning \n\ 425 printf (" %s\n", _("connects to the template1 database, which is present in every functioning"));
424PostgreSQL DBMS.\n")); 426 printf (" %s\n\n", _("PostgreSQL DBMS."));
425 printf (_("\n\ 427 printf (" %s\n", _("The plugin will connect to a local postmaster if no host is specified. To"));
426The plugin will connect to a local postmaster if no host is specified. To\n\ 428 printf (" %s\n", _("connect to a remote host, be sure that the remote postmaster accepts TCP/IP"));
427connect to a remote host, be sure that the remote postmaster accepts TCP/IP\n\ 429 printf (" %s\n\n", _("connections (start the postmaster with the -i option)."));
428connections (start the postmaster with the -i option).\n")); 430 printf (" %s\n", _("Typically, the nagios user (unless the --logname option is used) should be"));
429 printf (_("\n\ 431 printf (" %s\n", _("able to connect to the database without a password. The plugin can also send"));
430Typically, the nagios user (unless the --logname option is used) should be\n\ 432 printf (" %s\n", _("a password, but no effort is made to obsure or encrypt the password."));
431able to connect to the database without a password. The plugin can also send\n\
432a password, but no effort is made to obsure or encrypt the password.\n"));
433 433
434 printf (_(UT_SUPPORT)); 434 printf (_(UT_SUPPORT));
435} 435}
@@ -439,7 +439,7 @@ a password, but no effort is made to obsure or encrypt the password.\n"));
439void 439void
440print_usage (void) 440print_usage (void)
441{ 441{
442 printf ("\ 442 printf (_("Usage:"));
443Usage: %s [-H <host>] [-P <port>] [-c <critical time>] [-w <warning time>]\n\ 443 printf ("%s [-H <host>] [-P <port>] [-c <critical time>] [-w <warning time>]\n", progname);
444 [-t <timeout>] [-d <database>] [-l <logname>] [-p <password>]\n", progname); 444 printf (" [-t <timeout>] [-d <database>] [-l <logname>] [-p <password>]\n");
445} 445}
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index a7b7d902..4168f352 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -20,7 +20,7 @@
20 20
21const char *progname = "check_ping"; 21const char *progname = "check_ping";
22const char *revision = "$Revision$"; 22const char *revision = "$Revision$";
23const char *copyright = "2000-2004"; 23const char *copyright = "2000-2006";
24const char *email = "nagiosplug-devel@lists.sourceforge.net"; 24const char *email = "nagiosplug-devel@lists.sourceforge.net";
25 25
26#include "common.h" 26#include "common.h"
@@ -518,7 +518,9 @@ print_help (void)
518 printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>"); 518 printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>");
519 printf (COPYRIGHT, copyright, email); 519 printf (COPYRIGHT, copyright, email);
520 520
521 printf (_("Use ping to check connection statistics for a remote host.\n\n")); 521 printf (_("Use ping to check connection statistics for a remote host."));
522
523 printf ("\n\n");
522 524
523 print_usage (); 525 print_usage ();
524 526
@@ -526,31 +528,32 @@ print_help (void)
526 528
527 printf (_(UT_IPv46)); 529 printf (_(UT_IPv46));
528 530
529 printf (_("\ 531 printf (" %s\n", "-H, --hostname=HOST");
530-H, --hostname=HOST\n\ 532 printf (" %s\n", _("host to ping"));
531 host to ping\n\ 533 printf (" %s\n", "-w, --warning=THRESHOLD");
532-w, --warning=THRESHOLD\n\ 534 printf (" %s\n", _("warning threshold pair"));
533 warning threshold pair\n\ 535 printf (" %s\n", "-c, --critical=THRESHOLD");
534-c, --critical=THRESHOLD\n\ 536 printf (" %s\n", _("critical threshold pair"));
535 critical threshold pair\n\ 537 printf (" %s\n", "-p, --packets=INTEGER");
536-p, --packets=INTEGER\n\ 538 printf (" %s\n", _("number of ICMP ECHO packets to send"));
537 number of ICMP ECHO packets to send (Default: %d)\n\ 539 printf (_("(Default: %d)"), DEFAULT_MAX_PACKETS);
538-L, --link\n\ 540 printf (" %s\n", "-L, --link");
539 show HTML in the plugin output (obsoleted by urlize)\n"), 541 printf (" %s\n", _("show HTML in the plugin output (obsoleted by urlize)"));
540 DEFAULT_MAX_PACKETS);
541 542
542 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); 543 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT);
543 544
544 printf (_("\ 545 printf ("%s\n", _("THRESHOLD is <rta>,<pl>%% where <rta> is the round trip average travel"));
545THRESHOLD is <rta>,<pl>%% where <rta> is the round trip average travel\n\ 546 printf ("%s\n", _("time (ms) which triggers a WARNING or CRITICAL state, and <pl> is the"));
546time (ms) which triggers a WARNING or CRITICAL state, and <pl> is the\n\ 547 printf ("%s\n", _("percentage of packet loss to trigger an alarm state."));
547percentage of packet loss to trigger an alarm state.\n\n")); 548
549 printf ("\n\n");
550
551 printf ("%s\n", _("This plugin uses the ping command to probe the specified host for packet loss"));
552 printf ("%s\n", _("(percentage) and round trip average (milliseconds). It can produce HTML output"));
553 printf ("%s\n", _("linking to a traceroute CGI contributed by Ian Cass. The CGI can be found in"));
554 printf ("%s\n", _("the contrib area of the downloads section at http://www.nagios.org/"));
548 555
549 printf (_("\ 556 printf ("\n\n");
550This plugin uses the ping command to probe the specified host for packet loss\n\
551(percentage) and round trip average (milliseconds). It can produce HTML output\n\
552linking to a traceroute CGI contributed by Ian Cass. The CGI can be found in\n\
553the contrib area of the downloads section at http://www.nagios.org\n\n"));
554 557
555 printf (_(UT_SUPPORT)); 558 printf (_(UT_SUPPORT));
556} 559}
@@ -558,6 +561,7 @@ the contrib area of the downloads section at http://www.nagios.org\n\n"));
558void 561void
559print_usage (void) 562print_usage (void)
560{ 563{
561 printf ("Usage: %s -H <host_address> -w <wrta>,<wpl>%% -c <crta>,<cpl>%%\n\ 564 printf (_("Usage:"));
562 [-p packets] [-t timeout] [-L] [-4|-6]\n", progname); 565 printf ("%s -H <host_address> -w <wrta>,<wpl>%% -c <crta>,<cpl>%%\n", progname);
566 printf (" [-p packets] [-t timeout] [-L] [-4|-6]\n");
563} 567}
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index d05020b5..030ef02e 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -20,7 +20,7 @@
20 20
21const char *progname = "check_procs"; 21const char *progname = "check_procs";
22const char *revision = "$Revision$"; 22const char *revision = "$Revision$";
23const char *copyright = "2000-2004"; 23const char *copyright = "2000-2006";
24const char *email = "nagiosplug-devel@lists.sourceforge.net"; 24const char *email = "nagiosplug-devel@lists.sourceforge.net";
25 25
26#include "common.h" 26#include "common.h"
@@ -739,8 +739,8 @@ Examples:\n\
739void 739void
740print_usage (void) 740print_usage (void)
741{ 741{
742 printf ("\ 742 printf (_("Usage:"));
743Usage: %s -w <range> -c <range> [-m metric] [-s state] [-p ppid]\n\ 743 printf ("%s -w <range> -c <range> [-m metric] [-s state] [-p ppid]\n", progname);
744 [-u user] [-r rss] [-z vsz] [-P %%cpu] [-a argument-array]\n\ 744 printf (" [-u user] [-r rss] [-z vsz] [-P %%cpu] [-a argument-array]\n");
745 [-C command] [-t timeout] [-v]\n", progname); 745 printf (" [-C command] [-t timeout] [-v]\n");
746} 746}