diff options
| author | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-03 20:28:53 +0000 |
|---|---|---|
| committer | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-03 20:28:53 +0000 |
| commit | edf60f6dceba48555f2534d9a217a8c5913ce029 (patch) | |
| tree | e49b58832bc1d9252c3a8eeeadd65b4a85efc140 | |
| parent | 5d420d68fa25dd1b48d1b3f1a067fb45d98e67c2 (diff) | |
| download | monitoring-plugins-edf60f6dceba48555f2534d9a217a8c5913ce029.tar.gz | |
remove UT_HLP_VRS from print_usage
this was not a good idea ;-)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@994 f882894a-f735-0410-b71e-b25c423dba1c
35 files changed, 50 insertions, 125 deletions
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c index 7080c695..cc2ec75b 100644 --- a/plugins/check_by_ssh.c +++ b/plugins/check_by_ssh.c | |||
| @@ -410,9 +410,6 @@ void | |||
| 410 | print_usage (void) | 410 | print_usage (void) |
| 411 | { | 411 | { |
| 412 | printf ("\n\ | 412 | printf ("\n\ |
| 413 | Usage: %s [-f46] [-t timeout] [-i identity] [-l user] -H <host> \n\ | 413 | Usage: %s [-f46] [-t timeout] [-i identity] [-l user] -H <host> -C <command>\n\ |
| 414 | -C <command> [-n name] [-s servicelist] [-O outputfile] [-p port]\n", | 414 | [-n name] [-s servicelist] [-O outputfile] [-p port]\n", progname); |
| 415 | progname); | ||
| 416 | |||
| 417 | printf (_(UT_HLP_VRS), progname, progname); | ||
| 418 | } | 415 | } |
diff --git a/plugins/check_dig.c b/plugins/check_dig.c index 823ea01c..5bed80d4 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c | |||
| @@ -357,6 +357,4 @@ print_usage (void) | |||
| 357 | Usage: %s -H host -l lookup [-p <server port>] [-T <query type>]\n\ | 357 | Usage: %s -H host -l lookup [-p <server port>] [-T <query type>]\n\ |
| 358 | [-w <warning interval>] [-c <critical interval>] [-t <timeout>]\n\ | 358 | [-w <warning interval>] [-c <critical interval>] [-t <timeout>]\n\ |
| 359 | [-a <expected answer address>] [-v]\n", progname); | 359 | [-a <expected answer address>] [-v]\n", progname); |
| 360 | |||
| 361 | printf (UT_HLP_VRS, progname, progname); | ||
| 362 | } | 360 | } |
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 70cd5480..109420a1 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
| @@ -638,7 +638,5 @@ print_usage (void) | |||
| 638 | { | 638 | { |
| 639 | printf ("\ | 639 | printf ("\ |
| 640 | Usage: %s -w limit -c limit [-p path | -x device] [-t timeout] [-m] [-e]\n\ | 640 | Usage: %s -w limit -c limit [-p path | -x device] [-t timeout] [-m] [-e]\n\ |
| 641 | [-v] [-q]\n", progname); | 641 | [-v] [-q]\n", progname); |
| 642 | |||
| 643 | printf (UT_HLP_VRS, progname, progname); | ||
| 644 | } | 642 | } |
diff --git a/plugins/check_dns.c b/plugins/check_dns.c index 579c51a8..492fa176 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c | |||
| @@ -427,6 +427,4 @@ print_usage (void) | |||
| 427 | { | 427 | { |
| 428 | printf ("\ | 428 | printf ("\ |
| 429 | Usage: %s -H host [-s server] [-a expected-address] [-A] [-t timeout]\n", progname); | 429 | Usage: %s -H host [-s server] [-a expected-address] [-A] [-t timeout]\n", progname); |
| 430 | |||
| 431 | printf (UT_HLP_VRS, progname, progname); | ||
| 432 | } | 430 | } |
diff --git a/plugins/check_dummy.c b/plugins/check_dummy.c index c621b9f1..e0c38d32 100644 --- a/plugins/check_dummy.c +++ b/plugins/check_dummy.c | |||
| @@ -41,7 +41,7 @@ main (int argc, char **argv) | |||
| 41 | textdomain (PACKAGE); | 41 | textdomain (PACKAGE); |
| 42 | 42 | ||
| 43 | if (argc < 2) | 43 | if (argc < 2) |
| 44 | usage4 (_("Incorrect number of arguments supplied")); | 44 | usage4 (_("Could not parse arguments")); |
| 45 | else if (strcmp (argv[1], "-V") == 0 || strcmp (argv[1], "--version") == 0) { | 45 | else if (strcmp (argv[1], "-V") == 0 || strcmp (argv[1], "--version") == 0) { |
| 46 | print_revision (progname, revision); | 46 | print_revision (progname, revision); |
| 47 | exit (STATE_OK); | 47 | exit (STATE_OK); |
diff --git a/plugins/check_fping.c b/plugins/check_fping.c index 3baf52f2..0b23f79e 100644 --- a/plugins/check_fping.c +++ b/plugins/check_fping.c | |||
| @@ -400,5 +400,4 @@ void | |||
| 400 | print_usage (void) | 400 | print_usage (void) |
| 401 | { | 401 | { |
| 402 | printf ("Usage: %s <host_address>\n", progname); | 402 | printf ("Usage: %s <host_address>\n", progname); |
| 403 | printf (UT_HLP_VRS, progname, progname); | ||
| 404 | } | 403 | } |
diff --git a/plugins/check_game.c b/plugins/check_game.c index a194ab25..9b13d94b 100644 --- a/plugins/check_game.c +++ b/plugins/check_game.c | |||
| @@ -329,15 +329,12 @@ Notes:\n\ | |||
| 329 | 329 | ||
| 330 | 330 | ||
| 331 | 331 | ||
| 332 | |||
| 333 | void | 332 | void |
| 334 | print_usage (void) | 333 | print_usage (void) |
| 335 | { | 334 | { |
| 336 | printf ("\ | 335 | printf ("\ |
| 337 | Usage: %s <game> <ip_address> [-p port] [-gf game_field] [-mf map_field]\n\ | 336 | Usage: %s <game> <ip_address> [-p port] [-gf game_field] [-mf map_field]\n\ |
| 338 | [-pf ping_field]\n", progname); | 337 | [-pf ping_field]\n", progname); |
| 339 | |||
| 340 | printf (UT_HLP_VRS, progname, progname); | ||
| 341 | } | 338 | } |
| 342 | 339 | ||
| 343 | /****************************************************************************** | 340 | /****************************************************************************** |
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c index b9b3f7f3..816ce19b 100644 --- a/plugins/check_hpjd.c +++ b/plugins/check_hpjd.c | |||
| @@ -400,6 +400,4 @@ print_usage (void) | |||
| 400 | { | 400 | { |
| 401 | printf (_("\ | 401 | printf (_("\ |
| 402 | Usage: %s -H host [-C community]\n"), progname); | 402 | Usage: %s -H host [-C community]\n"), progname); |
| 403 | |||
| 404 | printf (UT_HLP_VRS, progname, progname); | ||
| 405 | } | 403 | } |
diff --git a/plugins/check_http.c b/plugins/check_http.c index 125052fe..f3340268 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
| @@ -1491,12 +1491,10 @@ void | |||
| 1491 | print_usage (void) | 1491 | print_usage (void) |
| 1492 | { | 1492 | { |
| 1493 | printf (_("\ | 1493 | printf (_("\ |
| 1494 | Usage: %s (-H <vhost> | -I <IP-address>) [-u <uri>] [-p <port>]\n\ | 1494 | Usage: %s -H <vhost> | -I <IP-address>) [-u <uri>] [-p <port>]\n\ |
| 1495 | [-w <warn time>] [-c <critical time>] [-t <timeout>] [-L]\n\ | 1495 | [-w <warn time>] [-c <critical time>] [-t <timeout>] [-L]\n\ |
| 1496 | [-a auth] [-f <ok | warn | critcal | follow>] [-e <expect>]\n\ | 1496 | [-a auth] [-f <ok | warn | critcal | follow>] [-e <expect>]\n\ |
| 1497 | [-s string] [-l] [-r <regex> | -R <case-insensitive regex>]\n\ | 1497 | [-s string] [-l] [-r <regex> | -R <case-insensitive regex>]\n\ |
| 1498 | [-P string] [-m min_pg_size] [-4|-6] [-N] [-M <age>] [-A string]\n\ | 1498 | [-P string] [-m min_pg_size] [-4|-6] [-N] [-M <age>] [-A string]\n\ |
| 1499 | [-k string]\n"), progname); | 1499 | [-k string]\n"), progname); |
| 1500 | |||
| 1501 | printf (UT_HLP_VRS, progname, progname); | ||
| 1502 | } | 1500 | } |
diff --git a/plugins/check_ide-smart.c b/plugins/check_ide-smart.c index aa74f980..9ebef6cd 100644 --- a/plugins/check_ide-smart.c +++ b/plugins/check_ide-smart.c | |||
| @@ -398,8 +398,6 @@ Usage: %s [DEVICE] [OPTION]\n\ | |||
| 398 | Turn off automatic offline tests\n\ | 398 | Turn off automatic offline tests\n\ |
| 399 | -n, --net-saint\n\ | 399 | -n, --net-saint\n\ |
| 400 | Output suitable for Net Saint\n", progname); | 400 | Output suitable for Net Saint\n", progname); |
| 401 | |||
| 402 | printf (UT_HLP_VRS, progname, progname); | ||
| 403 | } | 401 | } |
| 404 | 402 | ||
| 405 | 403 | ||
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c index 80c0907a..9664c0fb 100644 --- a/plugins/check_ldap.c +++ b/plugins/check_ldap.c | |||
| @@ -329,14 +329,13 @@ print_help (void) | |||
| 329 | 329 | ||
| 330 | 330 | ||
| 331 | 331 | ||
| 332 | |||
| 333 | void | 332 | void |
| 334 | print_usage (void) | 333 | print_usage (void) |
| 335 | { | 334 | { |
| 336 | printf ("\ | 335 | printf ("\ |
| 337 | Usage: %s -H <host> -b <base_dn> [-p <port>] [-a <attr>] [-D <binddn>]\n\ | 336 | Usage: %s -H <host> -b <base_dn> [-p <port>] [-a <attr>] [-D <binddn>]\n\ |
| 338 | [-P <password>] [-w <warn_time>] [-c <crit_time>] [-t timeout]%s\n\ | 337 | [-P <password>] [-w <warn_time>] [-c <crit_time>] [-t timeout]%s\n", |
| 339 | (Note: all times are in seconds.)\n", | 338 | //(Note: all times are in seconds.)\n", |
| 340 | progname, | 339 | progname, |
| 341 | #ifdef HAVE_LDAP_SET_OPTION | 340 | #ifdef HAVE_LDAP_SET_OPTION |
| 342 | " [-2|-3] [-4|-6]" | 341 | " [-2|-3] [-4|-6]" |
| @@ -344,6 +343,4 @@ Usage: %s -H <host> -b <base_dn> [-p <port>] [-a <attr>] [-D <binddn>]\n\ | |||
| 344 | "" | 343 | "" |
| 345 | #endif | 344 | #endif |
| 346 | ); | 345 | ); |
| 347 | |||
| 348 | printf (UT_HLP_VRS, progname, progname); | ||
| 349 | } | 346 | } |
diff --git a/plugins/check_load.c b/plugins/check_load.c index 2112d1cf..d9833b64 100644 --- a/plugins/check_load.c +++ b/plugins/check_load.c | |||
| @@ -320,6 +320,4 @@ void | |||
| 320 | print_usage (void) | 320 | print_usage (void) |
| 321 | { | 321 | { |
| 322 | printf ("Usage: %s -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15\n", progname); | 322 | printf ("Usage: %s -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15\n", progname); |
| 323 | |||
| 324 | printf (UT_HLP_VRS, progname, progname); | ||
| 325 | } | 323 | } |
diff --git a/plugins/check_mrtg.c b/plugins/check_mrtg.c index cc4714cf..5dfee720 100644 --- a/plugins/check_mrtg.c +++ b/plugins/check_mrtg.c | |||
| @@ -306,9 +306,6 @@ validate_arguments (void) | |||
| 306 | 306 | ||
| 307 | 307 | ||
| 308 | 308 | ||
| 309 | |||
| 310 | |||
| 311 | |||
| 312 | void | 309 | void |
| 313 | print_help (void) | 310 | print_help (void) |
| 314 | { | 311 | { |
| @@ -372,7 +369,6 @@ this plugin works well for monitoring that kind of data as well.\n\n")); | |||
| 372 | 369 | ||
| 373 | 370 | ||
| 374 | 371 | ||
| 375 | |||
| 376 | /* original command line: | 372 | /* original command line: |
| 377 | <log_file> <expire_minutes> <AVG|MAX> <variable> <vwl> <vcl> <label> [units] */ | 373 | <log_file> <expire_minutes> <AVG|MAX> <variable> <vwl> <vcl> <label> [units] */ |
| 378 | 374 | ||
| @@ -381,7 +377,5 @@ print_usage (void) | |||
| 381 | { | 377 | { |
| 382 | printf ("\ | 378 | printf ("\ |
| 383 | Usage: %s -F log_file -a <AVG | MAX> -v variable -w warning -c critical\n\ | 379 | Usage: %s -F log_file -a <AVG | MAX> -v variable -w warning -c critical\n\ |
| 384 | [-l label] [-u units] [-e expire_minutes] [-t timeout] [-v]\n", progname); | 380 | [-l label] [-u units] [-e expire_minutes] [-t timeout] [-v]\n", progname); |
| 385 | |||
| 386 | printf (UT_HLP_VRS, progname, progname); | ||
| 387 | } | 381 | } |
diff --git a/plugins/check_mrtgtraf.c b/plugins/check_mrtgtraf.c index 69778e35..9b408a42 100644 --- a/plugins/check_mrtgtraf.c +++ b/plugins/check_mrtgtraf.c | |||
| @@ -359,13 +359,10 @@ the <iwl> or <owl> thresholds (in Bytes/sec), a WARNING status results.\n\n")); | |||
| 359 | 359 | ||
| 360 | 360 | ||
| 361 | 361 | ||
| 362 | |||
| 363 | void | 362 | void |
| 364 | print_usage (void) | 363 | print_usage (void) |
| 365 | { | 364 | { |
| 366 | printf ("\ | 365 | printf ("\ |
| 367 | Usage: %s -F <log_file> -a <AVG | MAX> -v <variable> -w <warning_pair> -c <critical_pair>\n\ | 366 | Usage: %s -F <log_file> -a <AVG | MAX> -v <variable> -w <warning_pair> -c <critical_pair>\n\ |
| 368 | [-e expire_minutes] [-t timeout] [-v]\n", progname); | 367 | [-e expire_minutes] [-t timeout] [-v]\n", progname); |
| 369 | |||
| 370 | printf (UT_HLP_VRS, progname, progname); | ||
| 371 | } | 368 | } |
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index 5863e1a7..1061fabd 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c | |||
| @@ -311,5 +311,4 @@ print_usage (void) | |||
| 311 | printf ("\ | 311 | printf ("\ |
| 312 | Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password] [-S]\n", | 312 | Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password] [-S]\n", |
| 313 | progname); | 313 | progname); |
| 314 | printf (UT_HLP_VRS, progname, progname); | ||
| 315 | } | 314 | } |
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c index 694c069c..8a10c4a7 100644 --- a/plugins/check_nagios.c +++ b/plugins/check_nagios.c | |||
| @@ -303,8 +303,5 @@ void | |||
| 303 | print_usage (void) | 303 | print_usage (void) |
| 304 | { | 304 | { |
| 305 | printf ("\ | 305 | printf ("\ |
| 306 | Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n", | 306 | Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n", progname); |
| 307 | progname); | ||
| 308 | |||
| 309 | printf (UT_HLP_VRS, progname, progname); | ||
| 310 | } | 307 | } |
diff --git a/plugins/check_nt.c b/plugins/check_nt.c index 2cc45cda..67c3017e 100644 --- a/plugins/check_nt.c +++ b/plugins/check_nt.c | |||
| @@ -684,7 +684,5 @@ void print_usage(void) | |||
| 684 | { | 684 | { |
| 685 | printf("\ | 685 | printf("\ |
| 686 | Usage: %s -H host -v variable [-p port] [-w warning] [-c critical]\n\ | 686 | Usage: %s -H host -v variable [-p port] [-w warning] [-c critical]\n\ |
| 687 | [-l params] [-d SHOWALL] [-t timeout]\n", progname); | 687 | [-l params] [-d SHOWALL] [-t timeout]\n", progname); |
| 688 | |||
| 689 | printf (UT_HLP_VRS, progname, progname); | ||
| 690 | } | 688 | } |
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c index 98b06d90..b791640f 100644 --- a/plugins/check_nwstat.c +++ b/plugins/check_nwstat.c | |||
| @@ -989,7 +989,5 @@ void print_usage(void) | |||
| 989 | { | 989 | { |
| 990 | printf ("\ | 990 | printf ("\ |
| 991 | Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\ | 991 | Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\ |
| 992 | [-t timeout].\n", progname); | 992 | [-t timeout].\n", progname); |
| 993 | |||
| 994 | printf (UT_HLP_VRS, progname, progname); | ||
| 995 | } | 993 | } |
diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c index ddaebdbd..2ebf62e1 100644 --- a/plugins/check_overcr.c +++ b/plugins/check_overcr.c | |||
| @@ -405,18 +405,6 @@ process_arguments (int argc, char **argv) | |||
| 405 | 405 | ||
| 406 | 406 | ||
| 407 | void | 407 | void |
| 408 | print_usage (void) | ||
| 409 | { | ||
| 410 | printf (_("\ | ||
| 411 | Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\ | ||
| 412 | [-t timeout]\n"), | ||
| 413 | progname); | ||
| 414 | printf (_(UT_HLP_VRS), progname, progname); | ||
| 415 | } | ||
| 416 | |||
| 417 | |||
| 418 | |||
| 419 | void | ||
| 420 | print_help (void) | 408 | print_help (void) |
| 421 | { | 409 | { |
| 422 | char *myport; | 410 | char *myport; |
| @@ -469,3 +457,13 @@ Notes:\n\ | |||
| 469 | 457 | ||
| 470 | printf (_(UT_SUPPORT)); | 458 | printf (_(UT_SUPPORT)); |
| 471 | } | 459 | } |
| 460 | |||
| 461 | |||
| 462 | |||
| 463 | void | ||
| 464 | print_usage (void) | ||
| 465 | { | ||
| 466 | printf ("\ | ||
| 467 | Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\ | ||
| 468 | [-t timeout]\n", progname); | ||
| 469 | } | ||
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c index f97ef66c..53f9e96c 100644 --- a/plugins/check_pgsql.c +++ b/plugins/check_pgsql.c | |||
| @@ -443,7 +443,5 @@ print_usage (void) | |||
| 443 | { | 443 | { |
| 444 | printf ("\ | 444 | printf ("\ |
| 445 | Usage: %s [-H <host>] [-P <port>] [-c <critical time>] [-w <warning time>]\n\ | 445 | Usage: %s [-H <host>] [-P <port>] [-c <critical time>] [-w <warning time>]\n\ |
| 446 | [-t <timeout>] [-d <database>] [-l <logname>] [-p <password>]\n", progname); | 446 | [-t <timeout>] [-d <database>] [-l <logname>] [-p <password>]\n", progname); |
| 447 | |||
| 448 | printf (UT_HLP_VRS, progname, progname); | ||
| 449 | } | 447 | } |
diff --git a/plugins/check_ping.c b/plugins/check_ping.c index c04fb027..9fe71831 100644 --- a/plugins/check_ping.c +++ b/plugins/check_ping.c | |||
| @@ -533,7 +533,5 @@ void | |||
| 533 | print_usage (void) | 533 | print_usage (void) |
| 534 | { | 534 | { |
| 535 | printf ("Usage: %s -H <host_address> -w <wrta>,<wpl>%% -c <crta>,<cpl>%%\n\ | 535 | printf ("Usage: %s -H <host_address> -w <wrta>,<wpl>%% -c <crta>,<cpl>%%\n\ |
| 536 | [-p packets] [-t timeout] [-L] [-4|-6]\n", progname); | 536 | [-p packets] [-t timeout] [-L] [-4|-6]\n", progname); |
| 537 | |||
| 538 | printf (UT_HLP_VRS, progname, progname); | ||
| 539 | } | 537 | } |
diff --git a/plugins/check_procs.c b/plugins/check_procs.c index ee168db2..7770ddad 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c | |||
| @@ -751,8 +751,6 @@ print_usage (void) | |||
| 751 | { | 751 | { |
| 752 | printf ("\ | 752 | printf ("\ |
| 753 | Usage: %s -w <range> -c <range> [-m metric] [-s state] [-p ppid]\n\ | 753 | Usage: %s -w <range> -c <range> [-m metric] [-s state] [-p ppid]\n\ |
| 754 | [-u user] [-r rss] [-z vsz] [-P %%cpu] [-a argument-array]\n\ | 754 | [-u user] [-r rss] [-z vsz] [-P %%cpu] [-a argument-array]\n\ |
| 755 | [-C command] [-t timeout] [-v]\n", progname); | 755 | [-C command] [-t timeout] [-v]\n", progname); |
| 756 | |||
| 757 | printf (UT_HLP_VRS, progname, progname); | ||
| 758 | } | 756 | } |
diff --git a/plugins/check_radius.c b/plugins/check_radius.c index 54746144..90653a27 100644 --- a/plugins/check_radius.c +++ b/plugins/check_radius.c | |||
| @@ -335,6 +335,5 @@ print_usage (void) | |||
| 335 | { | 335 | { |
| 336 | printf ("\ | 336 | printf ("\ |
| 337 | Usage: %s -H host -F config_file -u username -p password [-n nas-id] [-P port]\n\ | 337 | Usage: %s -H host -F config_file -u username -p password [-n nas-id] [-P port]\n\ |
| 338 | [-t timeout] [-r retries] [-e expect]\n", progname); | 338 | [-t timeout] [-r retries] [-e expect]\n", progname); |
| 339 | printf (UT_HLP_VRS, progname, progname); | ||
| 340 | } | 339 | } |
diff --git a/plugins/check_real.c b/plugins/check_real.c index 8df68d90..9fad2a83 100644 --- a/plugins/check_real.c +++ b/plugins/check_real.c | |||
| @@ -438,7 +438,5 @@ print_usage (void) | |||
| 438 | { | 438 | { |
| 439 | printf ("\ | 439 | printf ("\ |
| 440 | Usage: %s -H host [-e expect] [-p port] [-w warn] [-c crit]\n\ | 440 | Usage: %s -H host [-e expect] [-p port] [-w warn] [-c crit]\n\ |
| 441 | [-t timeout] [-v]\n", progname); | 441 | [-t timeout] [-v]\n", progname); |
| 442 | |||
| 443 | printf (UT_HLP_VRS, progname, progname); | ||
| 444 | } | 442 | } |
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index 748edfca..ac208535 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c | |||
| @@ -468,6 +468,5 @@ print_usage (void) | |||
| 468 | { | 468 | { |
| 469 | printf ("\ | 469 | printf ("\ |
| 470 | Usage: %s -H host [-p port] [-e expect] [-C command] [-f from addr]\n\ | 470 | Usage: %s -H host [-p port] [-e expect] [-C command] [-f from addr]\n\ |
| 471 | [-w warn] [-c crit] [-t timeout] [-n] [-v] [-4|-6]\n", progname); | 471 | [-w warn] [-c crit] [-t timeout] [-n] [-v] [-4|-6]\n", progname); |
| 472 | printf (UT_HLP_VRS, progname, progname); | ||
| 473 | } | 472 | } |
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index ca6d7a37..fa4f56c5 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
| @@ -950,11 +950,9 @@ print_usage (void) | |||
| 950 | { | 950 | { |
| 951 | printf ("\ | 951 | printf ("\ |
| 952 | Usage: %s -H <ip_address> -o <OID> [-w warn_range] [-c crit_range] \n\ | 952 | Usage: %s -H <ip_address> -o <OID> [-w warn_range] [-c crit_range] \n\ |
| 953 | [-C community] [-s string] [-r regex] [-R regexi] [-t timeout]\n\ | 953 | [-C community] [-s string] [-r regex] [-R regexi] [-t timeout]\n\ |
| 954 | [-l label] [-u units] [-p port-number] [-d delimiter]\n\ | 954 | [-l label] [-u units] [-p port-number] [-d delimiter]\n\ |
| 955 | [-D output-delimiter] [-m miblist] [-P snmp version]\n\ | 955 | [-D output-delimiter] [-m miblist] [-P snmp version]\n\ |
| 956 | [-L seclevel] [-U secname] [-a authproto] [-A authpasswd]\n\ | 956 | [-L seclevel] [-U secname] [-a authproto] [-A authpasswd]\n\ |
| 957 | [-X privpasswd]\n", progname); | 957 | [-X privpasswd]\n", progname); |
| 958 | |||
| 959 | printf (UT_HLP_VRS, progname, progname); | ||
| 960 | } | 958 | } |
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index d1ae46bb..04916a55 100644 --- a/plugins/check_ssh.c +++ b/plugins/check_ssh.c | |||
| @@ -289,7 +289,5 @@ print_usage (void) | |||
| 289 | { | 289 | { |
| 290 | printf ("\ | 290 | printf ("\ |
| 291 | Usage: %s [-46] [-t <timeout>] [-r <remote version>] [-p <port>] <host>\n", progname); | 291 | Usage: %s [-46] [-t <timeout>] [-r <remote version>] [-p <port>] <host>\n", progname); |
| 292 | |||
| 293 | printf (UT_HLP_VRS, progname, progname); | ||
| 294 | } | 292 | } |
| 295 | 293 | ||
diff --git a/plugins/check_swap.c b/plugins/check_swap.c index 6a448e10..3a3ec35c 100644 --- a/plugins/check_swap.c +++ b/plugins/check_swap.c | |||
| @@ -517,6 +517,4 @@ print_usage (void) | |||
| 517 | printf ("Usage:\n\ | 517 | printf ("Usage:\n\ |
| 518 | %s [-av] -w <percent_free>%% -c <percent_free>%%\n\ | 518 | %s [-av] -w <percent_free>%% -c <percent_free>%%\n\ |
| 519 | %s [-av] -w <bytes_free> -c <bytes_free>\n", progname, progname); | 519 | %s [-av] -w <bytes_free> -c <bytes_free>\n", progname, progname); |
| 520 | |||
| 521 | printf (UT_HLP_VRS, progname, progname); | ||
| 522 | } | 520 | } |
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 405a7629..41feb97f 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
| @@ -795,10 +795,8 @@ print_usage (void) | |||
| 795 | { | 795 | { |
| 796 | printf ("\ | 796 | printf ("\ |
| 797 | Usage: %s -H host -p port [-w <warning time>] [-c <critical time>]\n\ | 797 | Usage: %s -H host -p port [-w <warning time>] [-c <critical time>]\n\ |
| 798 | [-s <send string>] [-e <expect string>] [-q <quit string>]\n\ | 798 | [-s <send string>] [-e <expect string>] [-q <quit string>]\n\ |
| 799 | [-m <maximum bytes>] [-d <delay>] [-t <timeout seconds>]\n\ | 799 | [-m <maximum bytes>] [-d <delay>] [-t <timeout seconds>]\n\ |
| 800 | [-r <refuse state>] [-v] [-4|-6] [-j] [-D <days to cert expiry>]\n\ | 800 | [-r <refuse state>] [-v] [-4|-6] [-j] [-D <days to cert expiry>]\n\ |
| 801 | [-S <use SSL>]\n", progname); | 801 | [-S <use SSL>]\n", progname); |
| 802 | |||
| 803 | printf (UT_HLP_VRS, progname, progname); | ||
| 804 | } | 802 | } |
diff --git a/plugins/check_time.c b/plugins/check_time.c index 94c33b6c..5d07f545 100644 --- a/plugins/check_time.c +++ b/plugins/check_time.c | |||
| @@ -359,7 +359,5 @@ print_usage (void) | |||
| 359 | { | 359 | { |
| 360 | printf ("\ | 360 | printf ("\ |
| 361 | Usage: %s -H <host_address> [-p port] [-u] [-w variance] [-c variance]\n\ | 361 | Usage: %s -H <host_address> [-p port] [-u] [-w variance] [-c variance]\n\ |
| 362 | [-W connect_time] [-C connect_time] [-t timeout]\n", progname); | 362 | [-W connect_time] [-C connect_time] [-t timeout]\n", progname); |
| 363 | |||
| 364 | printf (_(UT_HLP_VRS), progname, progname); | ||
| 365 | } | 363 | } |
diff --git a/plugins/check_udp.c b/plugins/check_udp.c index 6551ed40..ea91f417 100644 --- a/plugins/check_udp.c +++ b/plugins/check_udp.c | |||
| @@ -264,7 +264,5 @@ print_usage (void) | |||
| 264 | { | 264 | { |
| 265 | printf ("\ | 265 | printf ("\ |
| 266 | Usage: %s -H <host_address> [-p port] [-w warn_time] [-c crit_time]\n\ | 266 | Usage: %s -H <host_address> [-p port] [-w warn_time] [-c crit_time]\n\ |
| 267 | [-e expect] [-s send] [-t to_sec] [-v]\n", progname); | 267 | [-e expect] [-s send] [-t to_sec] [-v]\n", progname); |
| 268 | |||
| 269 | printf (UT_HLP_VRS, progname, progname); | ||
| 270 | } | 268 | } |
diff --git a/plugins/check_ups.c b/plugins/check_ups.c index ee373cbd..23fb8d2b 100644 --- a/plugins/check_ups.c +++ b/plugins/check_ups.c | |||
| @@ -32,7 +32,6 @@ const char *revision = "$Revision$"; | |||
| 32 | const char *copyright = "2000-2004"; | 32 | const char *copyright = "2000-2004"; |
| 33 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 33 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
| 34 | 34 | ||
| 35 | #include <locale.h> | ||
| 36 | #include "common.h" | 35 | #include "common.h" |
| 37 | #include "netutils.h" | 36 | #include "netutils.h" |
| 38 | #include "utils.h" | 37 | #include "utils.h" |
| @@ -649,6 +648,5 @@ print_usage (void) | |||
| 649 | { | 648 | { |
| 650 | printf ("\ | 649 | printf ("\ |
| 651 | Usage: %s -H host -u ups [-p port] [-v variable]\n\ | 650 | Usage: %s -H host -u ups [-p port] [-v variable]\n\ |
| 652 | [-wv warn_value] [-cv crit_value] [-to to_sec] [-T]\n", progname); | 651 | [-wv warn_value] [-cv crit_value] [-to to_sec] [-T]\n", progname); |
| 653 | printf (UT_HLP_VRS, progname, progname); | ||
| 654 | } | 652 | } |
diff --git a/plugins/check_users.c b/plugins/check_users.c index 05ef86fd..2c24623d 100644 --- a/plugins/check_users.c +++ b/plugins/check_users.c | |||
| @@ -215,6 +215,4 @@ void | |||
| 215 | print_usage (void) | 215 | print_usage (void) |
| 216 | { | 216 | { |
| 217 | printf ("Usage: %s -w <users> -c <users>\n", progname); | 217 | printf ("Usage: %s -w <users> -c <users>\n", progname); |
| 218 | |||
| 219 | printf (UT_HLP_VRS, progname, progname); | ||
| 220 | } | 218 | } |
diff --git a/plugins/negate.c b/plugins/negate.c index e03f7e68..74a9a9dd 100644 --- a/plugins/negate.c +++ b/plugins/negate.c | |||
| @@ -239,11 +239,10 @@ print_help (void) | |||
| 239 | { | 239 | { |
| 240 | print_revision (progname, revision); | 240 | print_revision (progname, revision); |
| 241 | 241 | ||
| 242 | printf (_(COPYRIGHT), copyright, email); | 242 | printf (COPYRIGHT, copyright, email); |
| 243 | 243 | ||
| 244 | printf (_("\ | 244 | printf (_("\ |
| 245 | Negates the status of a plugin (returns OK for CRITICAL, and vice-versa).\n\ | 245 | Negates the status of a plugin (returns OK for CRITICAL, and vice-versa).\n\n")); |
| 246 | \n")); | ||
| 247 | 246 | ||
| 248 | print_usage (); | 247 | print_usage (); |
| 249 | 248 | ||
| @@ -274,8 +273,5 @@ Otherwise, the output state of the wrapped plugin is unchanged.\n")); | |||
| 274 | void | 273 | void |
| 275 | print_usage (void) | 274 | print_usage (void) |
| 276 | { | 275 | { |
| 277 | printf ("Usage: %s [-t timeout] <definition of wrapped plugin>\n", | 276 | printf ("Usage: %s [-t timeout] <definition of wrapped plugin>\n",progname); |
| 278 | progname); | ||
| 279 | |||
| 280 | printf (UT_HLP_VRS, progname, progname); | ||
| 281 | } | 277 | } |
diff --git a/plugins/urlize.c b/plugins/urlize.c index e1d02ef8..3564e469 100644 --- a/plugins/urlize.c +++ b/plugins/urlize.c | |||
| @@ -163,6 +163,4 @@ void | |||
| 163 | print_usage (void) | 163 | print_usage (void) |
| 164 | { | 164 | { |
| 165 | printf ("Usage:\n %s <url> <plugin> <arg1> ... <argN>\n", progname); | 165 | printf ("Usage:\n %s <url> <plugin> <arg1> ... <argN>\n", progname); |
| 166 | |||
| 167 | printf (UT_HLP_VRS, progname, progname); | ||
| 168 | } | 166 | } |
