summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2004-12-03 20:28:53 (GMT)
committerBenoit Mortier <opensides@users.sourceforge.net>2004-12-03 20:28:53 (GMT)
commitedf60f6dceba48555f2534d9a217a8c5913ce029 (patch)
treee49b58832bc1d9252c3a8eeeadd65b4a85efc140 /plugins
parent5d420d68fa25dd1b48d1b3f1a067fb45d98e67c2 (diff)
downloadmonitoring-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
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_by_ssh.c7
-rw-r--r--plugins/check_dig.c2
-rw-r--r--plugins/check_disk.c4
-rw-r--r--plugins/check_dns.c2
-rw-r--r--plugins/check_dummy.c2
-rw-r--r--plugins/check_fping.c1
-rw-r--r--plugins/check_game.c5
-rw-r--r--plugins/check_hpjd.c2
-rw-r--r--plugins/check_http.c14
-rw-r--r--plugins/check_ide-smart.c2
-rw-r--r--plugins/check_ldap.c7
-rw-r--r--plugins/check_load.c2
-rw-r--r--plugins/check_mrtg.c8
-rw-r--r--plugins/check_mrtgtraf.c5
-rw-r--r--plugins/check_mysql.c1
-rw-r--r--plugins/check_nagios.c5
-rw-r--r--plugins/check_nt.c4
-rw-r--r--plugins/check_nwstat.c4
-rw-r--r--plugins/check_overcr.c22
-rw-r--r--plugins/check_pgsql.c4
-rw-r--r--plugins/check_ping.c4
-rw-r--r--plugins/check_procs.c6
-rw-r--r--plugins/check_radius.c3
-rw-r--r--plugins/check_real.c4
-rw-r--r--plugins/check_smtp.c3
-rw-r--r--plugins/check_snmp.c12
-rw-r--r--plugins/check_ssh.c2
-rw-r--r--plugins/check_swap.c2
-rw-r--r--plugins/check_tcp.c10
-rw-r--r--plugins/check_time.c4
-rw-r--r--plugins/check_udp.c4
-rw-r--r--plugins/check_ups.c4
-rw-r--r--plugins/check_users.c2
-rw-r--r--plugins/negate.c10
-rw-r--r--plugins/urlize.c2
35 files changed, 50 insertions, 125 deletions
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index 7080c69..cc2ec75 100644
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
@@ -410,9 +410,6 @@ void
410print_usage (void) 410print_usage (void)
411{ 411{
412 printf ("\n\ 412 printf ("\n\
413Usage: %s [-f46] [-t timeout] [-i identity] [-l user] -H <host> \n\ 413Usage: %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 823ea01..5bed80d 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -357,6 +357,4 @@ print_usage (void)
357Usage: %s -H host -l lookup [-p <server port>] [-T <query type>]\n\ 357Usage: %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 70cd548..109420a 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -638,7 +638,5 @@ print_usage (void)
638{ 638{
639 printf ("\ 639 printf ("\
640Usage: %s -w limit -c limit [-p path | -x device] [-t timeout] [-m] [-e]\n\ 640Usage: %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 579c51a..492fa17 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -427,6 +427,4 @@ print_usage (void)
427{ 427{
428 printf ("\ 428 printf ("\
429Usage: %s -H host [-s server] [-a expected-address] [-A] [-t timeout]\n", progname); 429Usage: %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 c621b9f..e0c38d3 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 3baf52f..0b23f79 100644
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
@@ -400,5 +400,4 @@ void
400print_usage (void) 400print_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 a194ab2..9b13d94 100644
--- a/plugins/check_game.c
+++ b/plugins/check_game.c
@@ -329,15 +329,12 @@ Notes:\n\
329 329
330 330
331 331
332
333void 332void
334print_usage (void) 333print_usage (void)
335{ 334{
336 printf ("\ 335 printf ("\
337Usage: %s <game> <ip_address> [-p port] [-gf game_field] [-mf map_field]\n\ 336Usage: %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 b9b3f7f..816ce19 100644
--- a/plugins/check_hpjd.c
+++ b/plugins/check_hpjd.c
@@ -400,6 +400,4 @@ print_usage (void)
400{ 400{
401 printf (_("\ 401 printf (_("\
402Usage: %s -H host [-C community]\n"), progname); 402Usage: %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 125052f..f334026 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -1491,12 +1491,10 @@ void
1491print_usage (void) 1491print_usage (void)
1492{ 1492{
1493 printf (_("\ 1493 printf (_("\
1494Usage: %s (-H <vhost> | -I <IP-address>) [-u <uri>] [-p <port>]\n\ 1494Usage: %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 aa74f98..9ebef6c 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 80c0907..9664c0f 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
333void 332void
334print_usage (void) 333print_usage (void)
335{ 334{
336 printf ("\ 335 printf ("\
337Usage: %s -H <host> -b <base_dn> [-p <port>] [-a <attr>] [-D <binddn>]\n\ 336Usage: %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 2112d1c..d9833b6 100644
--- a/plugins/check_load.c
+++ b/plugins/check_load.c
@@ -320,6 +320,4 @@ void
320print_usage (void) 320print_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 cc4714c..5dfee72 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
312void 309void
313print_help (void) 310print_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 ("\
383Usage: %s -F log_file -a <AVG | MAX> -v variable -w warning -c critical\n\ 379Usage: %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 69778e3..9b408a4 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
363void 362void
364print_usage (void) 363print_usage (void)
365{ 364{
366 printf ("\ 365 printf ("\
367Usage: %s -F <log_file> -a <AVG | MAX> -v <variable> -w <warning_pair> -c <critical_pair>\n\ 366Usage: %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 5863e1a..1061fab 100644
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
@@ -311,5 +311,4 @@ print_usage (void)
311 printf ("\ 311 printf ("\
312Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password] [-S]\n", 312Usage: %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 694c069..8a10c4a 100644
--- a/plugins/check_nagios.c
+++ b/plugins/check_nagios.c
@@ -303,8 +303,5 @@ void
303print_usage (void) 303print_usage (void)
304{ 304{
305 printf ("\ 305 printf ("\
306Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n", 306Usage: %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 2cc45cd..67c3017 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("\
686Usage: %s -H host -v variable [-p port] [-w warning] [-c critical]\n\ 686Usage: %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 98b06d9..b791640 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 ("\
991Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\ 991Usage: %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 ddaebdb..2ebf62e 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
407void 407void
408print_usage (void)
409{
410 printf (_("\
411Usage: %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
419void
420print_help (void) 408print_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
463void
464print_usage (void)
465{
466 printf ("\
467Usage: %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 f97ef66..53f9e96 100644
--- a/plugins/check_pgsql.c
+++ b/plugins/check_pgsql.c
@@ -443,7 +443,5 @@ print_usage (void)
443{ 443{
444 printf ("\ 444 printf ("\
445Usage: %s [-H <host>] [-P <port>] [-c <critical time>] [-w <warning time>]\n\ 445Usage: %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 c04fb02..9fe7183 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -533,7 +533,5 @@ void
533print_usage (void) 533print_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 ee168db..7770dda 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -751,8 +751,6 @@ print_usage (void)
751{ 751{
752 printf ("\ 752 printf ("\
753Usage: %s -w <range> -c <range> [-m metric] [-s state] [-p ppid]\n\ 753Usage: %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 5474614..90653a2 100644
--- a/plugins/check_radius.c
+++ b/plugins/check_radius.c
@@ -335,6 +335,5 @@ print_usage (void)
335{ 335{
336 printf ("\ 336 printf ("\
337Usage: %s -H host -F config_file -u username -p password [-n nas-id] [-P port]\n\ 337Usage: %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 8df68d9..9fad2a8 100644
--- a/plugins/check_real.c
+++ b/plugins/check_real.c
@@ -438,7 +438,5 @@ print_usage (void)
438{ 438{
439 printf ("\ 439 printf ("\
440Usage: %s -H host [-e expect] [-p port] [-w warn] [-c crit]\n\ 440Usage: %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 748edfc..ac20853 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -468,6 +468,5 @@ print_usage (void)
468{ 468{
469 printf ("\ 469 printf ("\
470Usage: %s -H host [-p port] [-e expect] [-C command] [-f from addr]\n\ 470Usage: %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 ca6d7a3..fa4f56c 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -950,11 +950,9 @@ print_usage (void)
950{ 950{
951 printf ("\ 951 printf ("\
952Usage: %s -H <ip_address> -o <OID> [-w warn_range] [-c crit_range] \n\ 952Usage: %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 d1ae46b..04916a5 100644
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
@@ -289,7 +289,5 @@ print_usage (void)
289{ 289{
290 printf ("\ 290 printf ("\
291Usage: %s [-46] [-t <timeout>] [-r <remote version>] [-p <port>] <host>\n", progname); 291Usage: %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 6a448e1..3a3ec35 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 405a762..41feb97 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -795,10 +795,8 @@ print_usage (void)
795{ 795{
796 printf ("\ 796 printf ("\
797Usage: %s -H host -p port [-w <warning time>] [-c <critical time>]\n\ 797Usage: %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 94c33b6..5d07f54 100644
--- a/plugins/check_time.c
+++ b/plugins/check_time.c
@@ -359,7 +359,5 @@ print_usage (void)
359{ 359{
360 printf ("\ 360 printf ("\
361Usage: %s -H <host_address> [-p port] [-u] [-w variance] [-c variance]\n\ 361Usage: %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 6551ed4..ea91f41 100644
--- a/plugins/check_udp.c
+++ b/plugins/check_udp.c
@@ -264,7 +264,5 @@ print_usage (void)
264{ 264{
265 printf ("\ 265 printf ("\
266Usage: %s -H <host_address> [-p port] [-w warn_time] [-c crit_time]\n\ 266Usage: %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 ee373cb..23fb8d2 100644
--- a/plugins/check_ups.c
+++ b/plugins/check_ups.c
@@ -32,7 +32,6 @@ const char *revision = "$Revision$";
32const char *copyright = "2000-2004"; 32const char *copyright = "2000-2004";
33const char *email = "nagiosplug-devel@lists.sourceforge.net"; 33const 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 ("\
651Usage: %s -H host -u ups [-p port] [-v variable]\n\ 650Usage: %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 05ef86f..2c24623 100644
--- a/plugins/check_users.c
+++ b/plugins/check_users.c
@@ -215,6 +215,4 @@ void
215print_usage (void) 215print_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 e03f7e6..74a9a9d 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 (_("\
245Negates the status of a plugin (returns OK for CRITICAL, and vice-versa).\n\ 245Negates 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"));
274void 273void
275print_usage (void) 274print_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 e1d02ef..3564e46 100644
--- a/plugins/urlize.c
+++ b/plugins/urlize.c
@@ -163,6 +163,4 @@ void
163print_usage (void) 163print_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}