summaryrefslogtreecommitdiffstats
path: root/plugins/check_load.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2006-06-15 12:52:25 (GMT)
committerBenoit Mortier <opensides@users.sourceforge.net>2006-06-15 12:52:25 (GMT)
commite5324624caefb201439012d795bebdf46966ec9c (patch)
tree0d94d5ab9044c1ac6aebf67906e7d7626135c1fb /plugins/check_load.c
parent180f20d60dde6e2584e2abda4e9f9e4fc6d8c1ae (diff)
downloadmonitoring-plugins-e5324624caefb201439012d795bebdf46966ec9c.tar.gz
cleaning help and usage
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1432 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_load.c')
-rw-r--r--plugins/check_load.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/plugins/check_load.c b/plugins/check_load.c
index 191f6d3..145b9b0 100644
--- a/plugins/check_load.c
+++ b/plugins/check_load.c
@@ -20,7 +20,7 @@
20 20
21const char *progname = "check_load"; 21const char *progname = "check_load";
22const char *revision = "$Revision$"; 22const char *revision = "$Revision$";
23const char *copyright = "1999-2004"; 23const char *copyright = "1999-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"
@@ -272,18 +272,19 @@ print_help (void)
272 printf ("Copyright (c) 1999 Felipe Gustavo de Almeida <galmeida@linux.ime.usp.br>\n"); 272 printf ("Copyright (c) 1999 Felipe Gustavo de Almeida <galmeida@linux.ime.usp.br>\n");
273 printf (COPYRIGHT, copyright, email); 273 printf (COPYRIGHT, copyright, email);
274 274
275 printf (_("This plugin tests the current system load average.\n\n")); 275 printf (_("This plugin tests the current system load average."));
276 276
277 printf ("\n\n");
278
277 print_usage (); 279 print_usage ();
278 280
279 printf (_(UT_HELP_VRSN)); 281 printf (_(UT_HELP_VRSN));
280 282
281 printf (_("\ 283 printf (" %s\n", "-w, --warning=WLOAD1,WLOAD5,WLOAD15");
282 -w, --warning=WLOAD1,WLOAD5,WLOAD15\n\ 284 printf (" %s\n", _("Exit with WARNING status if load average exceeds WLOADn"));
283 Exit with WARNING status if load average exceeds WLOADn\n\ 285 printf (" %s\n", "-c, --critical=CLOAD1,CLOAD5,CLOAD15");
284 -c, --critical=CLOAD1,CLOAD5,CLOAD15\n\ 286 printf (" %s\n", _("Exit with CRITICAL status if load average exceed CLOADn"));
285 Exit with CRITICAL status if load average exceed CLOADn\n\n\ 287 printf (" %s\n", _("the load average format is the same used by \"uptime\" and \"w\""));
286the load average format is the same used by \"uptime\" and \"w\"\n\n"));
287 288
288 printf (_(UT_SUPPORT)); 289 printf (_(UT_SUPPORT));
289} 290}
@@ -291,5 +292,6 @@ the load average format is the same used by \"uptime\" and \"w\"\n\n"));
291void 292void
292print_usage (void) 293print_usage (void)
293{ 294{
294 printf ("Usage: %s -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15\n", progname); 295 printf (_("Usage:"));
296 printf ("%s -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15\n", progname);
295} 297}