aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_nagios.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_nagios.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_nagios.c')
-rw-r--r--plugins/check_nagios.c39
1 files changed, 20 insertions, 19 deletions
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c
index 45514f1a..c7be780f 100644
--- a/plugins/check_nagios.c
+++ b/plugins/check_nagios.c
@@ -20,7 +20,7 @@
const char *progname = "check_nagios";
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"
@@ -262,27 +262,28 @@ print_help (void)
printf (_(COPYRIGHT), copyright, email);
- printf (_("\
-This plugin checks the status of the Nagios process on the local\n\
-machine. The plugin will check to make sure the Nagios status log is no older\n\
-than the number of minutes specified by the expires option. It also\n\
-checks the process table for a process matching the command argument.\n\n"));
+ printf ("%s\n", _("This plugin checks the status of the Nagios process on the local machine"));
+ printf ("%s\n", _("The plugin will check to make sure the Nagios status log is no older than"));
+ printf ("%s\n", _("the number of minutes specified by the expires option."));
+ printf ("%s\n", _("It also checks the process table for a process matching the command argument."));
+ printf ("\n\n");
+
print_usage ();
printf (_(UT_HELP_VRSN));
- printf (_("\
- -F, --filename=FILE\n\
- Name of the log file to check\n\
- -e, --expires=INTEGER\n\
- Minutes aging after which logfile is considered stale\n\
- -C, --command=STRING\n\
- Substring to search for in process arguments\n"));
-
- printf (_("\
-Example:\n\
- ./check_nagios -e 5 -F /usr/local/nagios/var/status.log -C /usr/local/nagios/bin/nagios\n"));
+ printf (" %s\n", "-F, --filename=FILE");
+ printf (" %s\n", _("Name of the log file to check"));
+ printf (" %s\n", "-e, --expires=INTEGER");
+ printf (" %s\n", _("Minutes aging after which logfile is considered stale"));
+ printf (" %s\n", "-C, --command=STRING");
+ printf (" %s\n", _("Substring to search for in process arguments"));
+ printf (_(UT_VERBOSE));
+ printf ("\n");
+ printf ("%s\n", _("Examples:"));
+ printf (" %s\n", "check_nagios -e 5 -F /usr/local/nagios/var/status.log -C /usr/local/nagios/bin/nagios");
+ printf (_(UT_SUPPORT));
}
@@ -290,6 +291,6 @@ Example:\n\
void
print_usage (void)
{
- printf ("\
-Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n", progname);
+ printf (_("Usage:"));
+ printf ("%s -F <status log file> -e <expire_minutes> -C <process_string>\n", progname);
}