diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2006-06-15 12:52:25 +0000 |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2006-06-15 12:52:25 +0000 |
commit | e5324624caefb201439012d795bebdf46966ec9c (patch) | |
tree | 0d94d5ab9044c1ac6aebf67906e7d7626135c1fb /plugins/check_load.c | |
parent | 180f20d60dde6e2584e2abda4e9f9e4fc6d8c1ae (diff) | |
download | monitoring-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.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/plugins/check_load.c b/plugins/check_load.c index 191f6d30..145b9b01 100644 --- a/plugins/check_load.c +++ b/plugins/check_load.c | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | const char *progname = "check_load"; | 21 | const char *progname = "check_load"; |
22 | const char *revision = "$Revision$"; | 22 | const char *revision = "$Revision$"; |
23 | const char *copyright = "1999-2004"; | 23 | const char *copyright = "1999-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" |
@@ -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\"")); |
286 | the 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")); | |||
291 | void | 292 | void |
292 | print_usage (void) | 293 | print_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 | } |