diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2006-06-17 12:28:43 (GMT) |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2006-06-17 12:28:43 (GMT) |
commit | cbbfed30eb01a702b2e61c0abcb64c834e73d654 (patch) | |
tree | b9d050fa415733f80306530e1ed028ef3ce9759a /plugins/check_overcr.c | |
parent | e5324624caefb201439012d795bebdf46966ec9c (diff) | |
download | monitoring-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
Diffstat (limited to 'plugins/check_overcr.c')
-rw-r--r-- | plugins/check_overcr.c | 62 |
1 files changed, 30 insertions, 32 deletions
diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c index a4abf2b..490490e 100644 --- a/plugins/check_overcr.c +++ b/plugins/check_overcr.c | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | const char *progname = "check_overcr"; | 21 | const char *progname = "check_overcr"; |
22 | const char *revision = "$Revision$"; | 22 | const char *revision = "$Revision$"; |
23 | const char *copyright = "2000-2004"; | 23 | const char *copyright = "2000-2006"; |
24 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 24 | const 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")); |
407 | This 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.")); |
408 | remote 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)); |
436 | Notes:\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\ | |||
450 | void | 449 | void |
451 | print_usage (void) | 450 | print_usage (void) |
452 | { | 451 | { |
453 | printf ("\ | 452 | printf (_("Usage:")); |
454 | Usage: %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 | } |