aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_load.c
diff options
context:
space:
mode:
authorGravatar Benoit Mortier <opensides@users.sourceforge.net> 2006-06-15 12:52:25 +0000
committerGravatar Benoit Mortier <opensides@users.sourceforge.net> 2006-06-15 12:52:25 +0000
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 191f6d30..145b9b01 100644
--- a/plugins/check_load.c
+++ b/plugins/check_load.c
@@ -20,7 +20,7 @@
const char *progname = "check_load";
const char *revision = "$Revision$";
-const char *copyright = "1999-2004";
+const char *copyright = "1999-2006";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
@@ -272,18 +272,19 @@ print_help (void)
printf ("Copyright (c) 1999 Felipe Gustavo de Almeida <galmeida@linux.ime.usp.br>\n");
printf (COPYRIGHT, copyright, email);
- printf (_("This plugin tests the current system load average.\n\n"));
+ printf (_("This plugin tests the current system load average."));
+ printf ("\n\n");
+
print_usage ();
printf (_(UT_HELP_VRSN));
- printf (_("\
- -w, --warning=WLOAD1,WLOAD5,WLOAD15\n\
- Exit with WARNING status if load average exceeds WLOADn\n\
- -c, --critical=CLOAD1,CLOAD5,CLOAD15\n\
- Exit with CRITICAL status if load average exceed CLOADn\n\n\
-the load average format is the same used by \"uptime\" and \"w\"\n\n"));
+ printf (" %s\n", "-w, --warning=WLOAD1,WLOAD5,WLOAD15");
+ printf (" %s\n", _("Exit with WARNING status if load average exceeds WLOADn"));
+ printf (" %s\n", "-c, --critical=CLOAD1,CLOAD5,CLOAD15");
+ printf (" %s\n", _("Exit with CRITICAL status if load average exceed CLOADn"));
+ printf (" %s\n", _("the load average format is the same used by \"uptime\" and \"w\""));
printf (_(UT_SUPPORT));
}
@@ -291,5 +292,6 @@ the load average format is the same used by \"uptime\" and \"w\"\n\n"));
void
print_usage (void)
{
- printf ("Usage: %s -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15\n", progname);
+ printf (_("Usage:"));
+ printf ("%s -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15\n", progname);
}