summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_dns.c12
-rw-r--r--plugins/check_dummy.c6
-rw-r--r--plugins/check_fping.c71
-rw-r--r--plugins/check_game.c35
4 files changed, 38 insertions, 86 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index 3b94a7a..081741a 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -398,15 +398,16 @@ print_help (void)
398 printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"); 398 printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
399 printf (COPYRIGHT, copyright, email); 399 printf (COPYRIGHT, copyright, email);
400 400
401 printf (_("This plugin uses the nslookup program to obtain the IP address for the given host/domain query.")); 401 printf ("%s\n", _("This plugin uses the nslookup program to obtain the IP address for the given host/domain query."));
402 printf ("\n"); 402 printf ("%s\n", _("An optional DNS server to use may be specified."));
403 printf (_("An optional DNS server to use may be specified.")); 403 printf ("%s\n", _("If no DNS server is specified, the default server(s) specified in /etc/resolv.conf will be used."));
404 printf ("\n"); 404
405 printf (_("If no DNS server is specified, the default server(s) specified in /etc/resolv.conf will be used."));
406 printf ("\n\n"); 405 printf ("\n\n");
407 406
408 print_usage (); 407 print_usage ();
408
409 printf (_(UT_HELP_VRSN)); 409 printf (_(UT_HELP_VRSN));
410
410 printf (" -H, --hostname=HOST\n"); 411 printf (" -H, --hostname=HOST\n");
411 printf (" %s\n", _("The name or address you want to query")); 412 printf (" %s\n", _("The name or address you want to query"));
412 printf (" -s, --server=HOST\n"); 413 printf (" -s, --server=HOST\n");
@@ -429,6 +430,5 @@ void
429print_usage (void) 430print_usage (void)
430{ 431{
431 printf (_("Usage:")); 432 printf (_("Usage:"));
432
433 printf ("%s -H host [-s server] [-a expected-address] [-A] [-t timeout] [-w warn] [-c crit]\n", progname); 433 printf ("%s -H host [-s server] [-a expected-address] [-A] [-t timeout] [-w warn] [-c crit]\n", progname);
434} 434}
diff --git a/plugins/check_dummy.c b/plugins/check_dummy.c
index 0a7f472..af7f8a3 100644
--- a/plugins/check_dummy.c
+++ b/plugins/check_dummy.c
@@ -90,11 +90,9 @@ print_help (void)
90 printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"); 90 printf ("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n");
91 printf (COPYRIGHT, copyright, email); 91 printf (COPYRIGHT, copyright, email);
92 92
93 printf (_("This plugin will simply return the state corresponding to the numeric value")); 93 printf ("%s\n", _("This plugin will simply return the state corresponding to the numeric value"));
94 94
95 printf ("\n"); 95 printf ("%s\n", _("of the <state> argument with optional text"));
96
97 printf (_("of the <state> argument with optional text"));
98 96
99 printf ("\n\n"); 97 printf ("\n\n");
100 98
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index 49615d1..cdaff97 100644
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
@@ -356,11 +356,9 @@ print_help (void)
356 printf ("Copyright (c) 1999 Didi Rieder <adrieder@sbox.tu-graz.ac.at>\n"); 356 printf ("Copyright (c) 1999 Didi Rieder <adrieder@sbox.tu-graz.ac.at>\n");
357 printf (COPYRIGHT, copyright, email); 357 printf (COPYRIGHT, copyright, email);
358 358
359 printf (_("This plugin will use the fping command to ping the specified host for a fast check")); 359 printf ("%s\n", _("This plugin will use the fping command to ping the specified host for a fast check"));
360 360
361 printf ("\n"); 361 printf ("%s\n", _("Note that it is necessary to set the suid flag on fping."));
362
363 printf (_("Note that it is necessary to set the suid flag on fping."));
364 362
365 printf ("\n\n"); 363 printf ("\n\n");
366 364
@@ -368,58 +366,21 @@ print_help (void)
368 366
369 printf (_(UT_HELP_VRSN)); 367 printf (_(UT_HELP_VRSN));
370 368
371 printf (" -H, --hostname=HOST"); 369 printf (" %s\n", "-H, --hostname=HOST");
372 370 printf (" %s\n", _("name or IP Address of host to ping (IP Address bypasses name lookup, reducing system load)"));
373 printf (_("name or IP Address of host to ping (IP Address bypasses name lookup, reducing system load)")); 371 printf (" %s\n", "-w, --warning=THRESHOLD");
374 372 printf (" %s\n", _("warning threshold pair"));
375 printf ("\n"); 373 printf (" %s\n", "-c, --critical=THRESHOLD");
376 374 printf (" %s\n", _("critical threshold pair"));
377 printf ("-w, --warning=THRESHOLD"); 375 printf (" %s\n", "-b, --bytes=INTEGER");
378 376 printf (" %s\n", _("size of ICMP packet (default: %d)"),PACKET_SIZE);
379 printf ("\n"); 377 printf (" %s\n", "-n, --number=INTEGER");
380 378 printf (" %s\n", _("number of ICMP packets to send (default: %d)"),PACKET_COUNT);
381 printf (_("warning threshold pair"));
382
383 printf ("\n");
384
385 printf (" -c, --critical=THRESHOLD");
386
387 printf ("\n");
388
389 printf (_("critical threshold pair"));
390
391 printf ("\n");
392
393 printf (" -b, --bytes=INTEGER");
394
395 printf (_("size of ICMP packet (default: %d)"),PACKET_SIZE);
396
397 printf ("\n");
398
399 printf (" -n, --number=INTEGER");
400
401 printf ("\n");
402
403 printf (_("number of ICMP packets to send (default: %d)"),PACKET_COUNT);
404
405 printf ("\n");
406
407 printf (_(UT_VERBOSE)); 379 printf (_(UT_VERBOSE));
408
409 printf ("\n"); 380 printf ("\n");
410 381 printf (" %s\n", _("THRESHOLD is <rta>,<pl>%% where <rta> is the round trip average travel time (ms)"));
411 printf (_("THRESHOLD is <rta>,<pl>%% where <rta> is the round trip average travel time (ms)")); 382 printf (" %s\n", _("which triggers a WARNING or CRITICAL state, and <pl> is the percentage of"));
412 383 printf (" %s\n", _("packet loss to trigger an alarm state."));
413 printf ("\n");
414
415 printf (_("which triggers a WARNING or CRITICAL state, and <pl> is the percentage of"));
416
417 printf ("\n");
418
419 printf (_("packet loss to trigger an alarm state."));
420
421 printf ("\n");
422
423 printf (_(UT_SUPPORT)); 384 printf (_(UT_SUPPORT));
424} 385}
425 386
@@ -428,5 +389,5 @@ void
428print_usage (void) 389print_usage (void)
429{ 390{
430 printf (_("Usage:")); 391 printf (_("Usage:"));
431 printf (" %s <host_address>\n", progname); 392 printf (" %s <host_address> -w limit -c limit [-b size] [-n number]\n", progname);
432} 393}
diff --git a/plugins/check_game.c b/plugins/check_game.c
index 9f9ff7d..32f2e6a 100644
--- a/plugins/check_game.c
+++ b/plugins/check_game.c
@@ -282,37 +282,30 @@ print_help (void)
282 282
283 printf (_("This plugin tests game server connections with the specified host.")); 283 printf (_("This plugin tests game server connections with the specified host."));
284 284
285 printf ("\n\n"); 285 printf ("\n\n");
286 286
287 print_usage (); 287 print_usage ();
288 288
289 printf (_(UT_HELP_VRSN)); 289 printf (_(UT_HELP_VRSN));
290 290
291 printf (_("\ 291 printf (" %s\n", "-p");
292<game> = Game type that is recognised by qstat (without the leading dash)\n\ 292 printf (" %s\n", _("Optional port of which to connect"));
293<ip_address> = The IP address of the device you wish to query\n\ 293 printf (" %s\n", "gf");
294 [port] = Optional port of which to connect\n\ 294 printf (" %s\n", _("Field number in raw qstat output that contains game name"));
295 [game_field] = Field number in raw qstat output that contains game name\n\ 295 printf (" %s\n", "-mf");
296 [map_field] = Field number in raw qstat output that contains map name\n\ 296 printf (" %s\n", _("Field number in raw qstat output that contains map name"));
297 [ping_field] = Field number in raw qstat output that contains ping time\n")); 297 printf (" %s\n", "-pf");
298 printf (" %s\n", _("Field number in raw qstat output that contains ping time"));
298 299
299 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); 300 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT);
300 301
301 printf (_("Notes:")); 302 printf ("%s\n", _("Notes:"));
302
303 printf ("\n");
304
305 printf (_("This plugin uses the 'qstat' command, the popular game server status query tool ."));
306
307 printf ("\n");
308 303
309 printf (_("If you don't have the package installed, you will need to download it from")); 304 printf ("%s\n", _("This plugin uses the 'qstat' command, the popular game server status query tool ."));
310
311 printf ("\n");
312 305
313 printf (_("http://www.activesw.com/people/steve/qstat.html before you can use this plugin.")); 306 printf ("%s\n", _("If you don't have the package installed, you will need to download it from"));
314 307
315 printf ("\n"); 308 printf ("%s\n", _("http://www.activesw.com/people/steve/qstat.html before you can use this plugin."));
316 309
317 printf (_(UT_SUPPORT)); 310 printf (_(UT_SUPPORT));
318} 311}