summaryrefslogtreecommitdiffstats
path: root/plugins/check_nagios.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_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 45514f1..c7be780 100644
--- a/plugins/check_nagios.c
+++ b/plugins/check_nagios.c
@@ -20,7 +20,7 @@
20 20
21const char *progname = "check_nagios"; 21const char *progname = "check_nagios";
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"
@@ -262,27 +262,28 @@ print_help (void)
262 262
263 printf (_(COPYRIGHT), copyright, email); 263 printf (_(COPYRIGHT), copyright, email);
264 264
265 printf (_("\ 265 printf ("%s\n", _("This plugin checks the status of the Nagios process on the local machine"));
266This plugin checks the status of the Nagios process on the local\n\ 266 printf ("%s\n", _("The plugin will check to make sure the Nagios status log is no older than"));
267machine. The plugin will check to make sure the Nagios status log is no older\n\ 267 printf ("%s\n", _("the number of minutes specified by the expires option."));
268than the number of minutes specified by the expires option. It also\n\ 268 printf ("%s\n", _("It also checks the process table for a process matching the command argument."));
269checks the process table for a process matching the command argument.\n\n"));
270 269
270 printf ("\n\n");
271
271 print_usage (); 272 print_usage ();
272 273
273 printf (_(UT_HELP_VRSN)); 274 printf (_(UT_HELP_VRSN));
274 275
275 printf (_("\ 276 printf (" %s\n", "-F, --filename=FILE");
276 -F, --filename=FILE\n\ 277 printf (" %s\n", _("Name of the log file to check"));
277 Name of the log file to check\n\ 278 printf (" %s\n", "-e, --expires=INTEGER");
278 -e, --expires=INTEGER\n\ 279 printf (" %s\n", _("Minutes aging after which logfile is considered stale"));
279 Minutes aging after which logfile is considered stale\n\ 280 printf (" %s\n", "-C, --command=STRING");
280 -C, --command=STRING\n\ 281 printf (" %s\n", _("Substring to search for in process arguments"));
281 Substring to search for in process arguments\n")); 282 printf (_(UT_VERBOSE));
282 283 printf ("\n");
283 printf (_("\ 284 printf ("%s\n", _("Examples:"));
284Example:\n\ 285 printf (" %s\n", "check_nagios -e 5 -F /usr/local/nagios/var/status.log -C /usr/local/nagios/bin/nagios");
285 ./check_nagios -e 5 -F /usr/local/nagios/var/status.log -C /usr/local/nagios/bin/nagios\n")); 286 printf (_(UT_SUPPORT));
286} 287}
287 288
288 289
@@ -290,6 +291,6 @@ Example:\n\
290void 291void
291print_usage (void) 292print_usage (void)
292{ 293{
293 printf ("\ 294 printf (_("Usage:"));
294Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n", progname); 295 printf ("%s -F <status log file> -e <expire_minutes> -C <process_string>\n", progname);
295} 296}