summaryrefslogtreecommitdiffstats
path: root/plugins/check_overcr.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_overcr.c')
-rw-r--r--plugins/check_overcr.c62
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
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}